Print this page
8516 Suppress gcc errors with -Wno- in Makefile for usr/src/cmd
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/sendmail/aux/Makefile
+++ new/usr/src/cmd/sendmail/aux/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
↓ open down ↓ |
10 lines elided |
↑ open up ↑ |
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 +# Copyright 2017 Gary Mills
21 22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
22 23 # Use is subject to license terms.
23 24 #
24 25
25 26 # cmd/sendmail/aux/Makefile
26 27 #
27 28 include ../../Makefile.cmd
28 29 include ../Makefile.cmd
29 30
30 31 PROG= mailstats mconnect vacation mailcompat praliases
31 32
32 33 LIBPROG= mail.local smrsh
33 34
34 35 USRSBINPROG= etrn makemap editmap
35 36
36 37 LIBSMTPSMPROG= mailq
37 38
38 39 # $(PROG) by default
39 40 CLOBBERFILES= $(LIBPROG) $(USRSBINPROG) $(LIBSMTPSMPROG)
40 41
41 42 OBJS= $(PROG:%=%.o)
42 43
43 44 .PARALLEL: $(OBJS) $(PROG) $(LIBPROG) $(USRSBINPROG)
44 45
45 46 SRCS= $(PROG:%=%.c)
46 47
47 48 editmap := LDLIBS += -lldap
↓ open down ↓ |
17 lines elided |
↑ open up ↑ |
48 49 mail.local := LDLIBS += -lsocket -lnsl -lmail -lldap
49 50 mailq := LDLIBS += -lsecdb
50 51 mailstats := LDLIBS += -lldap
51 52 makemap := LDLIBS += -lldap
52 53 mconnect := LDLIBS += -lsocket -lnsl
53 54 praliases := LDLIBS += -lldap
54 55 smrsh := LDLIBS += -lldap
55 56 vacation := LDLIBS += -lldap
56 57 $(ROOTLIBSMTPSM)/mailq := FILEMODE = 4555
57 58
59 +# Suppress the error for: verbose
60 +editmap.o := CERRWARN += -_gcc=-Wno-unused-but-set-variable
61 +
58 62 INCPATH= -I../src -I../db -I../include
59 63
60 64 ENVDEF= -DNOT_SENDMAIL
61 65 SUNENVDEF= -DSUN_EXTENSIONS -DUSE_VENDOR_CF_PATH
62 66 DBMDEF= -DNDBM -DNEWDB
63 67
64 68 CPPFLAGS = $(INCPATH) $(ENVDEF) $(SUNENVDEF) $(DBMDEF) $(CPPFLAGS.sm)
65 69
66 70 # Nearly every support application provides sleep(). This isn't incompatible
67 71 # with libc, but can be confined to the applications themselves.
68 72 LDFLAGS += $(MAPFILE.NGB:%=-M%)
69 73
70 74 .KEEP_STATE:
71 75
72 76 all: $(PROG) $(LIBSMTPSMPROG) $(LIBPROG) $(USRSBINPROG)
73 77
74 78 convtime.o: ../src/convtime.c
75 79 $(COMPILE.c) ../src/convtime.c
76 80 $(POST_PROCESS_O)
77 81
78 82 vacation: vacation.o convtime.o rfc2047.o ../libsm/libsm.a
79 83 $(LINK.c) vacation.o convtime.o rfc2047.o -o $@ $(LDLIBS) \
80 84 ../libsm/libsm.a
81 85 $(POST_PROCESS)
82 86
83 87 mail.local: mail.local.o ../libsmutil/libsmutil.a ../libsm/libsm.a
84 88 $(LINK.c) mail.local.o -o $@ $(LDLIBS) ../libsmutil/libsmutil.a \
85 89 ../libsm/libsm.a
86 90 $(POST_PROCESS)
87 91
88 92 smrsh: smrsh.o ../libsm/libsm.a
89 93 $(LINK.c) smrsh.o -o $@ $(LDLIBS) ../libsm/libsm.a
90 94 $(POST_PROCESS)
91 95
92 96 makemap: makemap.o ../libsmutil/libsmutil.a ../libsmdb/libsmdb.a \
93 97 ../db/libdb.a ../libsm/libsm.a
94 98 $(LINK.c) makemap.o -o $@ $(LDLIBS) ../libsmdb/libsmdb.a \
95 99 ../libsmutil/libsmutil.a ../db/libdb.a ../libsm/libsm.a
96 100 $(POST_PROCESS)
97 101
98 102 editmap: editmap.o ../libsmutil/libsmutil.a ../libsmdb/libsmdb.a \
99 103 ../db/libdb.a ../libsm/libsm.a
100 104 $(LINK.c) editmap.o -o $@ $(LDLIBS) ../libsmdb/libsmdb.a \
101 105 ../libsmutil/libsmutil.a ../db/libdb.a ../libsm/libsm.a
102 106 $(POST_PROCESS)
103 107
104 108 praliases: praliases.o ../libsmutil/libsmutil.a ../libsmdb/libsmdb.a \
105 109 ../libsm/libsm.a
106 110 $(LINK.c) praliases.o -o $@ $(LDLIBS) ../libsmdb/libsmdb.a \
107 111 ../libsmutil/libsmutil.a ../db/libdb.a ../libsm/libsm.a
108 112 $(POST_PROCESS)
109 113
110 114 mailstats: mailstats.o ../libsmutil/libsmutil.a ../libsm/libsm.a
111 115 $(LINK.c) mailstats.o -o $@ $(LDLIBS) ../libsmutil/libsmutil.a \
112 116 ../libsm/libsm.a
113 117 $(POST_PROCESS)
114 118
115 119 install: all $(ROOTPROG) $(ROOTLIB)/mail.local $(ROOTLIB)/smrsh \
116 120 $(ROOTLIBSMTPSM)/mailq $(ROOTUSRSBIN)/makemap \
117 121 $(ROOTUSRSBIN)/etrn $(ROOTUSRSBIN)/editmap
118 122
119 123 clean:
120 124 $(RM) $(OBJS) *.o
121 125
122 126 lint: lint_PROG
123 127
124 128
125 129 include ../../Makefile.targ
↓ open down ↓ |
58 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX