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