Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/mailx/Makefile
+++ new/usr/src/cmd/mailx/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 2018 Joyent, Inc.
26 26 # Copyright 2019 Garrett D'Amore <garrett@damore.org>
27 27 #
28 28 # cmd/mailx/Makefile
29 29
30 30 PROG= mailx
31 31
32 32 OBJS= myfopen.o cmd1.o cmd2.o cmd3.o \
33 33 cmd4.o cmdtab.o collect.o config.o edit.o \
34 34 init.o fio.o getname.o head.o \
35 35 hostname.o lex.o list.o lock.o lpaths.o \
36 36 main.o names.o optim.o popen.o quit.o \
37 37 receipt.o send.o sigretro.o stralloc.o temp.o \
38 38 translate.o tty.o usg.local.o util.o vars.o
39 39
40 40 SRCS= $(OBJS:.o=.c)
41 41
42 42 MISC= misc
43 43
44 44 include ../Makefile.cmd
45 45 #
46 46 # for messaging catalogue file
47 47 #
48 48 POFILE= mailx.po
49 49 POFILES= $(SRCS:%.c=%.po)
50 50
51 51 ROOTMAILXD= $(ROOTSHLIB)/mailx
52 52 ROOTETCMAILD= $(ROOTETC)/mail
53 53 MAILXHELP= mailx.help mailx.help.~
54 54 ROOTMAILXHELP= $(MAILXHELP:%=$(ROOTMAILXD)/%)
55 55 MAILXRC= $(MISC)/mailx.rc
56 56 UCBMAILRC= $(MISC)/Mail.rc
57 57 ROOTMAILXRC= $(MAILXRC:$(MISC)/%=$(ROOTETCMAILD)/%)
58 58 ROOTUCBMAILRC= $(UCBMAILRC:$(MISC)/%=$(ROOTETCMAILD)/%)
↓ open down ↓ |
58 lines elided |
↑ open up ↑ |
59 59 ROOTUCBMAIL= $(ROOT)/usr/ucb/mail
60 60 ROOTUCBCAPMAIL= $(ROOT)/usr/ucb/Mail
61 61
62 62 $(ROOTPROG) := FILEMODE = 02511
63 63 $(ROOTMAILXHELP) := FILEMODE = 0644
64 64 $(ROOTMAILXRC) := FILEMODE = 0644
65 65 $(ROOTUCBMAILRC) := FILEMODE = 0644
66 66
67 67 CPPFLAGS= -Ihdr -DUSG -DOPTIM $(CPPFLAGS.master)
68 68 CERRWARN += -_gcc=-Wno-parentheses
69 -CERRWARN += -_gcc=-Wno-uninitialized
69 +CERRWARN += $(CNOWARN_UNINIT)
70 70 CERRWARN += -_gcc=-Wno-unused-variable
71 71 CERRWARN += -_gcc=-Wno-clobbered
72 72 # not linted
73 73 SMATCH=off
74 74
75 75 LINTFLAGS= -hb
76 76 LDLIBS += -lmail -lcustr
77 77 LDFLAGS += $(MAPFILE.NGB:%=-M%)
78 78
79 79 CLOBBERFILES += $(MAILXHELP)
80 80
81 81 # install rules
82 82 $(ROOTMAILXD)/% : %
83 83 $(INS.file)
84 84
85 85 $(ROOTETCMAILD)/% : $(MISC)/%
86 86 $(INS.file)
87 87
88 88 .KEEP_STATE:
89 89
90 90 all: $(PROG) $(MAILXHELP) $(MAILXRC) $(UCBMAILRC)
91 91
92 92 $(PROG): $(OBJS) $(LIBMAIL)
93 93 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
94 94 $(POST_PROCESS)
95 95
96 96 install: all $(ROOTMAILXD) $(ROOTPROG) $(ROOTMAILXHELP) \
97 97 $(ROOTMAILXRC) $(ROOTUCBMAIL) $(ROOTUCBCAPMAIL) $(ROOTUCBMAILRC)
98 98
99 99 $(ROOTUCBMAIL) $(ROOTUCBCAPMAIL):
100 100 $(RM) $@; $(SYMLINK) ../bin/mailx $@
101 101
102 102 $(ROOTMAILXD):
103 103 $(INS.dir)
104 104
105 105 $(MAILXHELP): $(MISC)/$$@
106 106 $(GREP) -v '^#.*@(' $(MISC)/$@ > $@
107 107
108 108 $(POFILE): $(POFILES)
109 109 $(RM) $@
110 110 cat $(POFILES) > $@
111 111
112 112 clean:
113 113 $(RM) $(OBJS)
114 114
115 115 lint: lint_SRCS
116 116
117 117 include ../Makefile.targ
118 118
119 119 FRC:
↓ open down ↓ |
40 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX