Print this page
8114 EOF rwho
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/cmd-inet/usr.sbin/Makefile
+++ new/usr/src/cmd/cmd-inet/usr.sbin/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 #
↓ open down ↓ |
20 lines elided |
↑ open up ↑ |
21 21
22 22 #
23 23 # Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
24 24 # Copyright 2014 Garrett D'Amore <garrett@damore.org>
25 25 #
26 26
27 27 SYNCPROG= syncinit syncloop syncstat
28 28
29 29 PROG= 6to4relay arp if_mpadm \
30 30 in.comsat in.fingerd in.rarpd in.rexecd in.rlogind \
31 - in.rshd in.rwhod in.telnetd in.tftpd ipaddrsel \
31 + in.rshd in.telnetd in.tftpd ipaddrsel \
32 32 ndd ndp $(SYNCPROG) wanbootutil
33 33
34 34 MANIFEST= rarp.xml telnet.xml comsat.xml finger.xml \
35 35 login.xml shell.xml rexec.xml socket-filter-kssl.xml
36 36 SVCMETHOD= svc-sockfilter
37 37
38 38 ROOTFS_PROG= hostconfig route soconfig
39 39 SBINLINKS= hostconfig route
40 40
41 41 RPCSVCPROG= hostconfig
42 42 AUDITPROG= in.rexecd in.rlogind in.rshd in.telnetd
43 43 PAMPROG= in.rexecd in.rlogind in.rshd in.telnetd
44 44 SOCKETPROG= 6to4relay arp hostconfig if_mpadm in.comsat \
45 45 in.fingerd in.rarpd in.rexecd in.rlogind in.rshd \
46 - in.rwhod in.telnetd in.tftpd ipaddrsel ndp route
46 + in.telnetd in.tftpd ipaddrsel ndp route
47 47 NSLPROG= 6to4relay arp hostconfig in.comsat in.rarpd \
48 - in.rexecd in.rlogind in.rshd in.rwhod in.telnetd \
48 + in.rexecd in.rlogind in.rshd in.telnetd \
49 49 in.tftpd ipaddrsel ndp route
50 50 CMDPROG= in.telnetd
51 51 K5PROGS= in.telnetd in.rlogind in.rshd
52 52 TSNETPROG= route
53 53 DLADMPROG= 6to4relay
54 54 DEFAULTFILES= telnetd.dfl
55 55
56 56 PROGSRCS= $(PROG:%=%.c)
57 57 TFTPDOBJS= in.tftpd.o tftpsubs.o
58 58 OTHERSRC= ../usr.bin/tftp/tftpsubs.c
59 59 K5RLOGINOBJS= in.rlogind.o
60 60 K5RSHDOBJS= in.rshd.o
61 61 K5TELNETOBJS= in.telnetd.o
62 62 SRCS= $(PROGSRCS) $(OTHERSRC)
63 63
64 64 SUBDIRS= bootconfchk ifconfig ilbadm in.rdisc in.routed \
65 65 in.talkd inetadm inetconv ipadm ipmpstat ipqosconf ipsecutils \
66 66 kssl/kssladm kssl/ksslcfg nwamadm nwamcfg ping routeadm \
67 67 snoop sppptun traceroute wificonfig
68 68
69 69 MSGSUBDIRS= bootconfchk ifconfig ilbadm in.routed in.talkd \
70 70 inetadm inetconv ipadm ipmpstat ipqosconf ipsecutils \
71 71 kssl/ksslcfg nwamadm nwamcfg routeadm sppptun snoop wificonfig
72 72
73 73 # As programs get lint-clean, add them here and to the 'lint' target.
74 74 # Eventually this hack should go away, and all in PROG should be
75 75 # lint-clean.
76 76 LINTCLEAN= 6to4relay arp in.rlogind in.rshd in.telnetd in.tftpd \
77 77 ipaddrsel ndp route \
78 78 in.rarpd if_mpadm $(SYNCPROG)
79 79 # Likewise, as subdirs get lint-clean, add them here. Once
80 80 # they're all clean, replace the dependency of the lint target
81 81 # with SUBDIRS. Also (sigh) deal with the commented-out build lines
82 82 # for the lint rule.
83 83 LINTSUBDIRS= bootconfchk ilbadm in.rdisc in.routed in.talkd inetadm \
84 84 inetconv ipmpstat ipqosconf ipsecutils kssl/kssladm \
85 85 kssl/ksslcfg nwamadm nwamcfg ping routeadm sppptun traceroute \
86 86 wificonfig
87 87 # And as programs are verified not to attempt to write into constants,
88 88 # -xstrconst should be used to ensure they stay that way.
89 89 CONSTCLEAN=
90 90
91 91 include ../../Makefile.cmd
92 92 ROOTMANIFESTDIR= $(ROOTSVCNETWORK)
93 93 $(ROOTMANIFEST) := FILEMODE= 444
94 94 include ../Makefile.cmd-inet
95 95
96 96 ROOTSBINPROG = $(ROOTFS_PROG:%=$(ROOTSBIN)/%)
97 97 ROOTUSRSBINLINKS = $(SBINLINKS:%=$(ROOTUSRSBIN)/%)
98 98
99 99 COMMONOBJS= addr_match.o kcmd.o store_forw_creds.o
100 100 COMMONSRCS= $(COMMONOBJS:%.o=$(CMDINETCOMMONDIR)/%.c)
101 101 SRCS+= $(COMMONSRCS)
102 102
103 103 CERRWARN += -_gcc=-Wno-implicit-function-declaration
104 104 CERRWARN += -_gcc=-Wno-uninitialized
105 105 CERRWARN += -_gcc=-Wno-unused-variable
106 106 CERRWARN += -_gcc=-Wno-unused-function
107 107 CERRWARN += -_gcc=-Wno-parentheses
108 108 CERRWARN += -_gcc=-Wno-char-subscripts
109 109 CERRWARN += -_gcc=-Wno-extra
110 110 CERRWARN += -_gcc=-Wno-address
111 111
112 112 #
113 113 # Message catalog
114 114 #
115 115 POFILES= 6to4relay.po if_mpadm.po in.comsat.po ipaddrsel.po route.po \
116 116 soconfig.po
117 117 POFILE= usr.sbin.po
118 118
119 119 all:= TARGET= all
120 120 install:= TARGET= install
121 121 clean:= TARGET= clean
122 122 clobber:= TARGET= clobber
123 123 lint:= TARGET= lint
124 124 _msg:= TARGET= _msg
125 125
126 126 CLOBBERFILES += $(ROOTFS_PROG) $(PROG)
127 127 CLEANFILES += $(COMMONOBJS) $(K5RLOGINOBJS) $(K5RSHDOBJS) $(TFTPDOBJS) \
128 128 $(K5TELNETOBJS)
129 129
130 130 CPPFLAGS += -DSYSV -DBSD_COMP -I$(CMDINETCOMMONDIR) -I
131 131
132 132 include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
133 133 K5LIBS=
134 134
135 135 # Eventually just plain CFLAGS should be += -v, but not until all in
136 136 # PROGS are lint clean.
137 137 $(LINTCLEAN) := CFLAGS += $(CCVERBOSE)
138 138 $(CONSTCLEAN) := CFLAGS += $(XSTRCONST)
139 139
140 140 $(SYNCPROG) := LDLIBS += -ldlpi
141 141 $(SOCKETPROG) := LDLIBS += -lsocket
142 142 $(NSLPROG) := LDLIBS += -lnsl
143 143 $(AUDITPROG) := LDLIBS += -lbsm
144 144 $(PAMPROG) := LDLIBS += -lpam
145 145 $(RPCSVCPROG) := LDLIBS += -lrpcsvc
146 146 $(K5PROGS) := LDFLAGS += $(KRUNPATH) \
147 147 -L$(ROOT)$(KLIBDIR_DO) -L$(ROOT)$(KLIBDIR_GL)
148 148 $(K5PROGS) := K5LIBS= -lmech_krb5
149 149 $(K5PROGS) := CPPFLAGS += -I$(SRC)/head \
150 150 -I$(SRC)/uts/common/ \
151 151 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
152 152 -I$(SRC)/lib/gss_mechs/mech_krb5/include \
153 153 -I$(SRC)/lib/pam_modules/krb5
154 154 LDLIBS += $(K5LIBS)
155 155 $(TSNETPROG) := LDLIBS += -ltsnet
156 156 $(DLADMPROG) := LDLIBS += -ldladm
157 157
158 158 in.rarpd := LDLIBS += -linetutil -ldlpi
159 159 if_mpadm := LDLIBS += -linetutil -lipmp
160 160 if_mpadm.po := XGETFLAGS += -a
161 161 route := CPPFLAGS += -DNDEBUG
162 162 ndd := LDLIBS += -ldladm -lipadm
163 163 in.comsat := LDFLAGS += $(MAPFILE.NGB:%=-M%)
164 164
165 165 .KEEP_STATE:
166 166
167 167 .PARALLEL:
168 168
169 169 all: $(PROG) $(ROOTFS_PROG) $(SUBDIRS) THIRDPARTYLICENSE.arp
170 170
171 171 #
172 172 # message catalog
173 173 #
174 174 _msg: $(MSGSUBDIRS) $(POFILE)
175 175
176 176 syncutil: $(SYNCPROG)
177 177
178 178 $(POFILE): $(POFILES)
179 179 $(RM) $@
180 180 cat $(POFILES) > $@
181 181
182 182 %.o: $(CMDINETCOMMONDIR)/%.c
183 183 $(COMPILE.c) -o $@ $<
184 184
185 185 in.telnetd: $(K5TELNETOBJS)
186 186 $(LINK.c) $(K5TELNETOBJS) -o $@ $(LDLIBS)
187 187 $(POST_PROCESS)
188 188
189 189 in.rlogind: $(K5RLOGINOBJS) $(COMMONOBJS)
190 190 $(LINK.c) $(K5RLOGINOBJS) $(COMMONOBJS) -o $@ $(LDLIBS)
191 191 $(POST_PROCESS)
192 192
193 193 in.rshd: $(K5RSHDOBJS) $(COMMONOBJS)
194 194 $(LINK.c) $(K5RSHDOBJS) $(COMMONOBJS) -o $@ $(LDLIBS)
195 195 $(POST_PROCESS)
196 196
197 197 in.tftpd: $(TFTPDOBJS)
198 198 $(LINK.c) $(TFTPDOBJS) -o $@ $(LDLIBS)
199 199 $(POST_PROCESS)
200 200
201 201 tftpsubs.o: $(OTHERSRC)
202 202 $(COMPILE.c) $(OTHERSRC) -o $@
203 203 $(POST_PROCESS_O)
204 204
205 205 $(ROOTUSRSBINLINKS):
206 206 -$(RM) $@; $(SYMLINK) ../../sbin/$(@F) $@
207 207
208 208 install: $(PROG) $(ROOTFS_PROG) $(SUBDIRS) .WAIT $(ROOTUSRSBINPROG) \
209 209 $(ROOTSBINPROG) $(ROOTUSRSBINLINKS) $(ROOTETCDEFAULTFILES) \
210 210 $(ROOTMANIFEST) $(ROOTSVCMETHOD) THIRDPARTYLICENSE.arp
211 211
212 212 THIRDPARTYLICENSE.arp: arp.c
213 213 $(SED) -n '/University of California/,/SUCH DAMAGE/p' arp.c > $@
214 214
215 215 CLOBBERFILES += THIRDPARTYLICENSE.arp
216 216
217 217 #
218 218 # The reason this rule checks for the existence of the
219 219 # Makefile is that some of the directories do not exist
220 220 # in our exportable source builds.
221 221 #
222 222 $(SUBDIRS): FRC
223 223 @if [ -f $@/Makefile ]; then \
224 224 cd $@; pwd; $(MAKE) $(TARGET); \
225 225 else \
226 226 true; \
227 227 fi
228 228
229 229 FRC:
230 230
231 231 check: $(CHKMANIFEST)
232 232
233 233 clean: $(SUBDIRS) clean_local
234 234 clean_local:
235 235 $(RM) $(CLEANFILES)
236 236
237 237 clobber: $(SUBDIRS) clobber_local
238 238 clobber_local: clean_local
239 239 $(RM) $(CLOBBERFILES)
240 240
241 241 lint: $(LINTSUBDIRS)
242 242 $(LINT.c) 6to4relay.c $(LDLIBS) -lsocket -ldladm
243 243 $(LINT.c) arp.c $(LDLIBS) -lsocket -lnsl
244 244 @# $(LINT.c) in.rexecd.c $(LDLIBS) -lbsm -lpam
245 245 $(LINT.c) -erroff=E_NAME_USED_NOT_DEF2 -erroff=E_NAME_DEF_NOT_USED2 \
246 246 -I$(SRC)/head -I$(SRC)/uts/common/ \
247 247 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
248 248 -I$(SRC)/lib/gss_mechs/mech_krb5/include \
249 249 -I$(SRC)/lib/pam_modules/krb5 \
250 250 in.rlogind.c $(COMMONSRCS) $(LDLIBS) -lbsm -lpam -lsocket -lnsl
251 251 $(LINT.c) -erroff=E_NAME_USED_NOT_DEF2 -erroff=E_NAME_DEF_NOT_USED2 \
252 252 -I$(SRC)/head -I$(SRC)/uts/common/ \
253 253 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
254 254 -I$(SRC)/lib/gss_mechs/mech_krb5/include \
255 255 -I$(SRC)/lib/pam_modules/krb5 \
256 256 in.rshd.c $(COMMONSRCS) $(LDLIBS) -lbsm -lpam -lsocket -lnsl
257 257 $(LINT.c) -erroff=E_NAME_USED_NOT_DEF2 \
258 258 -erroff=E_GLOBAL_COULD_BE_STATIC2 \
259 259 -I$(SRC)/head -I$(SRC)/uts/common/ \
260 260 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
261 261 -I$(SRC)/lib/gss_mechs/mech_krb5/include \
262 262 -I$(SRC)/lib/pam_modules/krb5 \
263 263 in.telnetd.c $(LDLIBS) -lbsm -lpam -lsocket -lnsl
264 264 $(LINT.c) if_mpadm.c $(LDLIBS) -lsocket -lnsl -lipmp -linetutil
265 265 $(LINT.c) ipaddrsel.c $(LDLIBS) -lsocket -lnsl
266 266 $(LINT.c) route.c $(LDLIBS) -lsocket -lnsl -ltsnet
267 267 $(LINT.c) syncinit.c $(LDLIBS) -ldlpi
268 268 $(LINT.c) syncloop.c $(LDLIBS) -ldlpi
269 269 $(LINT.c) syncstat.c $(LDLIBS) -ldlpi
270 270 $(LINT.c) -erroff=E_NAME_USED_NOT_DEF2 in.rarpd.c $(LDLIBS) \
271 271 -lsocket -lnsl
272 272 $(LINT.c) ndp.c $(LDLIBS) \
273 273 -lsocket -lnsl
274 274 $(LINT.c) in.tftpd.c ../usr.bin/tftp/tftpsubs.c $(LDLIBS) \
275 275 -lsocket -lnsl
↓ open down ↓ |
217 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX