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