Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/mail/Makefile
+++ new/usr/src/cmd/mail/Makefile
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21 #
22 22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 23 # Use is subject to license terms.
24 24 #
25 25 # Copyright (c) 2018, Joyent, Inc.
26 26 #
27 27
28 28 BINPROG= mail
29 29
30 30 PROG= $(BINPROG)
31 31
32 32 GREP= grep
33 33
34 34 include ../Makefile.cmd
35 35
36 36 CLOBBERFILES= $(PROG)
37 37 CLEANFILES= $(MAILOBJS)
38 38
39 39 MAILOBJS= add_recip.o cat.o ckdlivopts.o \
40 40 cksaved.o clr_hinfo.o copyback.o copylet.o \
41 41 copymt.o createmf.o del_recipl.o Dout.o delete.o \
42 42 done.o doopen.o dumpaff.o dumprcv.o \
43 43 errmsg.o gendeliv.o getarg.o getcomment.o \
44 44 gethead.o goback.o init.o \
45 45 isheader.o isit.o islocal.o istext.o legal.o \
46 46 lock.o main.o mkdead.o mta_ercode.o \
47 47 new_recipl.o parse.o pckaffspot.o pckrcvspot.o \
48 48 pickFrom.o pipletr.o poplist.o printhdr.o printmail.o \
49 49 pushlist.o savehdrs.o sel_disp.o sendlist.o \
50 50 sendmail.o setsig.o \
51 51 stamp.o Tout.o
52 52
53 53 MAILSRC= $(MAILOBJS:%.o=%.c)
54 54
55 55 CPROG= mail
56 56 CPROGSRC= $(CPROG:%=_%.c)
57 57
58 58 # ROOT directories
59 59 ROOTMAILD= $(ROOTLIB)/mail
60 60 ROOTINC= $(ROOT)/usr/include
61 61
62 62 # installed modules
63 63 ROOTBINPROG= $(BINPROG:%=$(ROOTBIN)/%)
64 64
65 65 ROOTSYMLINKS= $(ROOTBIN)/rmail
↓ open down ↓ |
65 lines elided |
↑ open up ↑ |
66 66
67 67
68 68 EDITPATH= \
69 69 sed -e 's!REAL_PATH!/usr/bin!g' \
70 70 -e 's!USR_SHARE_LIB!/usr/share/lib!g' \
71 71 -e 's!VAR_MAIL!/var/mail!g' < $? > $@
72 72
73 73 CPPFLAGS = -DSVR4 -I. $(CPPFLAGS.master)
74 74 CERRWARN += -_gcc=-Wno-implicit-function-declaration
75 75 CERRWARN += -_gcc=-Wno-unused-variable
76 -CERRWARN += -_gcc=-Wno-uninitialized
76 +CERRWARN += $(CNOWARN_UNINIT)
77 77 CERRWARN += -_gcc=-Wno-clobbered
78 78 CERRWARN += -_gcc=-Wno-extra
79 79
80 80 # missing type declarations for old-style functions
81 81 SMATCH = off
82 82
83 83 LDLIBS += -lmail -lsocket
84 84
85 85 # mail defines its own delete() - reduce symbols to locals to remove name clash.
86 86 LDFLAGS += $(MAPFILE.NGB:%=-M%)
87 87
88 88 # conditional assignments
89 89 #
90 90 all:= TARGET= all
91 91 install:= TARGET= install
92 92 clean:= TARGET= clean
93 93 clobber:= TARGET= clobber
94 94 lint:= TARGET= lint
95 95
96 96 # file modes, owners and groups for the install target
97 97 #
98 98
99 99
100 100 $(ROOTBIN)/mail := FILEMODE = 02511
101 101
102 102
103 103 # install rules
104 104 $(ROOTINC)/% : %
105 105 $(INS.file)
106 106
107 107 .KEEP_STATE:
108 108
109 109 .PARALLEL: $(MAILOBJS) $(OBJS)
110 110
111 111 all: $(PROG)
112 112
113 113 mail: $(MAILOBJS)
114 114 $(LINK.c) -o $@ $(MAILOBJS) $(LDLIBS)
115 115 $(POST_PROCESS)
116 116
117 117 install: all .WAIT $(ROOTBINPROG) $(ROOTSYMLINKS)
118 118
119 119 # ROOTSYMLINKS
120 120 #
121 121 $(ROOTBIN)/rmail:
122 122 $(RM) $@; $(SYMLINK) mail $@
123 123
124 124 lint:
125 125 $(LINT.c) $(MAILSRC)
126 126
127 127 clean:
128 128 $(RM) $(OBJS) $(MAILOBJS)
129 129
130 130 clobber:
131 131 $(RM) $(OBJS) $(MAILOBJS) mail
↓ open down ↓ |
45 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX