author | kais |
Sat, 12 Nov 2005 18:58:05 -0800 | |
changeset 898 | 64b2a371a6bd |
parent 515 | 484fe491001b |
child 995 | 044a1b7c2e14 |
permissions | -rw-r--r-- |
0 | 1 |
# |
2 |
# CDDL HEADER START |
|
3 |
# |
|
4 |
# The contents of this file are subject to the terms of the |
|
5 |
# Common Development and Distribution License, Version 1.0 only |
|
6 |
# (the "License"). You may not use this file except in compliance |
|
7 |
# with the License. |
|
8 |
# |
|
9 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
10 |
# or http://www.opensolaris.org/os/licensing. |
|
11 |
# See the License for the specific language governing permissions |
|
12 |
# and limitations under the License. |
|
13 |
# |
|
14 |
# When distributing Covered Code, include this CDDL HEADER in each |
|
15 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
16 |
# If applicable, add the following below this CDDL HEADER, with the |
|
17 |
# fields enclosed by brackets "[]" replaced with your own identifying |
|
18 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
|
19 |
# |
|
20 |
# CDDL HEADER END |
|
21 |
# |
|
22 |
# |
|
23 |
# Copyright 2005 Sun Microsystems, Inc. All rights reserved. |
|
24 |
# Use is subject to license terms. |
|
25 |
# |
|
26 |
# ident "%Z%%M% %I% %E% SMI" |
|
27 |
# |
|
28 |
||
29 |
SYNCPROG= syncinit syncloop syncstat |
|
30 |
DHCPPROG= dhcpconfig dhtadm pntadm |
|
31 |
||
32 |
# EXPORT DELETE START |
|
33 |
XMODPROG= wanbootutil |
|
34 |
# EXPORT DELETE END |
|
35 |
||
36 |
PROG= 6to4relay arp gettable if_mpadm ikeadm ikecert \ |
|
37 |
in.comsat in.fingerd in.rarpd in.rdisc in.rexecd in.rlogind \ |
|
38 |
in.rshd in.rwhod in.telnetd in.tftpd in.tnamed ipaddrsel \ |
|
39 |
ipsecalgs ipsecconf ipseckey ndd $(SYNCPROG) $(DHCPPROG) \ |
|
40 |
$(XMODPROG) |
|
41 |
||
42 |
MANIFEST= rarp.xml telnet.xml comsat.xml finger.xml \ |
|
43 |
login.xml shell.xml rexec.xml tname.xml |
|
44 |
||
45 |
ROOTFS_PROG= hostconfig route routeadm soconfig |
|
46 |
SBINLINKS= hostconfig route routeadm |
|
47 |
||
48 |
RPCSVCPROG= hostconfig |
|
49 |
AUDITPROG= in.rexecd in.rlogind in.rshd in.telnetd |
|
50 |
PAMPROG= in.rexecd in.rlogind in.rshd in.telnetd |
|
51 |
SOCKETPROG= 6to4relay arp gettable hostconfig if_mpadm in.comsat \ |
|
52 |
in.fingerd in.rarpd in.rdisc in.rexecd in.rlogind in.rshd \ |
|
53 |
in.rwhod in.telnetd in.tftpd in.tnamed ipaddrsel \ |
|
54 |
ipsecalgs ipsecconf ipseckey route routeadm |
|
55 |
NSLPROG= 6to4relay arp gettable hostconfig ikeadm in.comsat in.rarpd \ |
|
56 |
in.rdisc in.rexecd in.rlogind in.rshd in.rwhod in.telnetd \ |
|
57 |
in.tftpd in.tnamed ipaddrsel ipsecalgs ipsecconf ipseckey route |
|
58 |
CMDPROG= in.telnetd |
|
59 |
IPSECUTILPROG= ikeadm ipsecalgs ipsecconf ipseckey |
|
60 |
K5PROGS= in.telnetd in.rlogind in.rshd |
|
89
ba4d0152c0bd
4533144 ON needs a single set of rules for installing default files
meem
parents:
0
diff
changeset
|
61 |
DEFAULTFILES= telnetd.dfl |
0 | 62 |
|
63 |
PROGSRCS= $(PROG:%=%.c) |
|
64 |
TFTPDOBJS= in.tftpd.o tftpsubs.o |
|
65 |
OTHERSRC= ../usr.bin/tftp/tftpsubs.c |
|
66 |
K5RLOGINOBJS= in.rlogind.o |
|
67 |
K5RSHDOBJS= in.rshd.o |
|
68 |
SRCS= $(PROGSRCS) $(OTHERSRC) |
|
69 |
||
70 |
SUBDIRS= bootconfchk htable ifconfig in.ftpd in.routed \ |
|
898 | 71 |
in.talkd inetadm inetconv ipqosconf kssl/kssladm \ |
72 |
kssl/ksslcfg mipagentconfig mipagentstat ping snoop \ |
|
73 |
sppptun traceroute |
|
0 | 74 |
|
75 |
MSGSUBDIRS= bootconfchk htable ifconfig in.ftpd in.routed in.talkd \ |
|
898 | 76 |
inetadm inetconv ipqosconf kssl/ksslcfg mipagentconfig \ |
77 |
mipagentstat sppptun snoop |
|
0 | 78 |
|
79 |
# As programs get lint-clean, add them here and to the 'lint' target. |
|
80 |
# Eventually this hack should go away, and all in PROG should be |
|
81 |
# lint-clean. |
|
82 |
LINTCLEAN= 6to4relay arp ikeadm in.rlogind in.rshd in.telnetd in.tftpd \ |
|
83 |
ipaddrsel ipsecalgs ipseckey ipsecconf route routeadm \ |
|
515 | 84 |
in.rarpd if_mpadm $(SYNCPROG) |
0 | 85 |
# Likewise, as subdirs get lint-clean, add them here. Once |
86 |
# they're all clean, replace the dependency of the lint target |
|
87 |
# with SUBDIRS. Also (sigh) deal with the commented-out build lines |
|
88 |
# for the lint rule. |
|
89 |
LINTSUBDIRS= bootconfchk in.routed in.talkd inetadm inetconv ipqosconf \ |
|
90 |
mipagentstat ping sppptun traceroute |
|
91 |
# And as programs are verified not to attempt to write into constants, |
|
92 |
# -xstrconst should be used to ensure they stay that way. |
|
93 |
CONSTCLEAN= ikeadm |
|
94 |
||
95 |
include ../../Makefile.cmd |
|
96 |
ROOTMANIFESTDIR= $(ROOTSVCNETWORK) |
|
97 |
$(ROOTMANIFEST) := FILEMODE= 444 |
|
98 |
include ../Makefile.cmd-inet |
|
99 |
||
100 |
ROOTSBINPROG = $(ROOTFS_PROG:%=$(ROOTSBIN)/%) |
|
101 |
ROOTUSRSBINLINKS = $(SBINLINKS:%=$(ROOTUSRSBIN)/%) |
|
102 |
||
103 |
COMMONOBJS= kcmd.o |
|
104 |
COMMONSRCS= $(CMDINETCOMMONDIR)/$(COMMONOBJS:.o=.c) |
|
105 |
SRCS+= $(COMMONSRCS) |
|
106 |
||
107 |
# |
|
108 |
# Message catalog |
|
109 |
# |
|
110 |
POFILES= 6to4relay.po if_mpadm.po ikeadm.po in.comsat.po ipaddrsel.po \ |
|
111 |
ipsecalgs.po ipsecconf.po ipseckey.po route.po routeadm.po |
|
112 |
POFILE= usr.sbin.po |
|
113 |
||
114 |
all:= TARGET= all |
|
115 |
install:= TARGET= install |
|
116 |
clean:= TARGET= clean |
|
117 |
clobber:= TARGET= clobber |
|
118 |
lint:= TARGET= lint |
|
119 |
_msg:= TARGET= _msg |
|
120 |
||
121 |
CLOBBERFILES += $(ROOTFS_PROG) $(PROG) |
|
122 |
CLEANFILES += $(COMMONOBJS) $(K5RLOGINOBJS) $(K5RSHDOBJS) $(TFTPDOBJS) |
|
123 |
||
124 |
CPPFLAGS += -DSYSV -DBSD_COMP -I$(CMDINETCOMMONDIR) -I. |
|
125 |
||
126 |
include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5 |
|
127 |
K5LIBS= |
|
128 |
||
129 |
# Eventually just plain CFLAGS should be += -v, but not until all in |
|
130 |
# PROGS are lint clean. |
|
131 |
$(LINTCLEAN) := CFLAGS += $(CCVERBOSE) |
|
132 |
$(CONSTCLEAN) := CFLAGS += $(XSTRCONST) |
|
133 |
||
134 |
$(SYNCPROG) := LDLIBS += -ldlpi |
|
135 |
$(SOCKETPROG) := LDLIBS += -lsocket |
|
136 |
$(NSLPROG) := LDLIBS += -lnsl |
|
137 |
$(AUDITPROG) := LDLIBS += -lbsm |
|
138 |
$(PAMPROG) := LDLIBS += -lpam |
|
139 |
$(RPCSVCPROG) := LDLIBS += -lrpcsvc |
|
140 |
$(CMDPROG) := LDLIBS += -lcmd |
|
141 |
$(K5PROGS) := LDFLAGS += $(ZLAZYLOAD) $(KRUNPATH) \ |
|
142 |
-L$(ROOT)$(KLIBDIR_DO) -L$(ROOT)$(KLIBDIR_GL) |
|
143 |
$(K5PROGS) := K5LIBS= -lmech_krb5 |
|
144 |
$(K5PROGS) := CPPFLAGS += -I$(SRC)/head \ |
|
145 |
-I$(SRC)/uts/common/ \ |
|
146 |
-I$(SRC)/uts/common/gssapi/mechs/krb5/include \ |
|
147 |
-I$(SRC)/lib/gss_mechs/mech_krb5/include \ |
|
148 |
-I$(SRC)/lib/pam_modules/krb5 |
|
149 |
LDLIBS += $(K5LIBS) |
|
150 |
$(IPSECUTILPROG) := LDLIBS += -lipsecutil |
|
151 |
||
152 |
in.rarpd := LDLIBS += -linetutil |
|
153 |
route := CPPFLAGS += -DNDEBUG |
|
154 |
||
155 |
.KEEP_STATE: |
|
156 |
||
157 |
.PARALLEL: |
|
158 |
||
159 |
all: $(PROG) $(ROOTFS_PROG) $(SUBDIRS) |
|
160 |
||
161 |
# |
|
162 |
# message catalog |
|
163 |
# |
|
164 |
_msg: $(MSGSUBDIRS) $(POFILE) |
|
165 |
||
166 |
syncutil: $(SYNCPROG) |
|
167 |
||
168 |
$(POFILE): $(POFILES) |
|
169 |
$(RM) $@ |
|
170 |
cat $(POFILES) > $@ |
|
171 |
||
172 |
$(COMMONOBJS): $(COMMONSRCS) |
|
173 |
$(COMPILE.c) $(COMMONSRCS) |
|
174 |
||
175 |
in.rlogind: $(K5RLOGINOBJS) $(COMMONOBJS) |
|
176 |
$(LINK.c) $(K5RLOGINOBJS) $(COMMONOBJS) -o $@ $(LDLIBS) |
|
177 |
$(POST_PROCESS) |
|
178 |
||
179 |
in.rshd: $(K5RSHDOBJS) $(COMMONOBJS) |
|
180 |
$(LINK.c) $(K5RSHDOBJS) $(COMMONOBJS) -o $@ $(LDLIBS) |
|
181 |
$(POST_PROCESS) |
|
182 |
||
183 |
in.tftpd: $(TFTPDOBJS) |
|
184 |
$(LINK.c) $(TFTPDOBJS) -o $@ $(LDLIBS) |
|
185 |
$(POST_PROCESS) |
|
186 |
||
187 |
tftpsubs.o: $(OTHERSRC) |
|
188 |
$(COMPILE.c) $(OTHERSRC) -o $@ |
|
189 |
$(POST_PROCESS_O) |
|
190 |
||
191 |
$(ROOTUSRSBINLINKS): |
|
192 |
-$(RM) $@; $(SYMLINK) ../../sbin/$(@F) $@ |
|
193 |
||
194 |
install: $(PROG) $(ROOTFS_PROG) $(SUBDIRS) .WAIT $(ROOTUSRSBINPROG) \ |
|
195 |
$(ROOTSBINPROG) $(ROOTUSRSBINLINKS) $(ROOTETCDEFAULTFILES) \ |
|
196 |
$(ROOTMANIFEST) |
|
197 |
||
198 |
# |
|
199 |
# The reason this rule checks for the existence of the |
|
200 |
# Makefile is that some of the directories do not exist |
|
201 |
# in our exportable source builds. |
|
202 |
# |
|
203 |
$(SUBDIRS): FRC |
|
204 |
@if [ -f $@/Makefile ]; then \ |
|
205 |
cd $@; pwd; $(MAKE) $(TARGET); \ |
|
206 |
else \ |
|
207 |
true; \ |
|
208 |
fi |
|
209 |
||
210 |
FRC: |
|
211 |
||
212 |
check: $(CHKMANIFEST) |
|
213 |
||
214 |
clean: $(SUBDIRS) |
|
215 |
-$(RM) $(CLEANFILES) |
|
216 |
||
217 |
clobber: $(SUBDIRS) |
|
218 |
-$(RM) $(CLEANFILES) $(CLOBBERFILES) |
|
219 |
||
220 |
lint: $(LINTSUBDIRS) |
|
221 |
$(LINT.c) 6to4relay.c $(LDLIBS) -lsocket -lnsl |
|
222 |
$(LINT.c) arp.c $(LDLIBS) -lsocket -lnsl |
|
223 |
@# $(LINT.c) in.rexecd.c $(LDLIBS) -lbsm -lpam |
|
224 |
$(LINT.c) -erroff=E_NAME_USED_NOT_DEF2 -erroff=E_NAME_DEF_NOT_USED2 \ |
|
225 |
-I$(SRC)/head -I$(SRC)/uts/common/ \ |
|
226 |
-I$(SRC)/uts/common/gssapi/mechs/krb5/include \ |
|
227 |
-I$(SRC)/lib/gss_mechs/mech_krb5/include \ |
|
228 |
-I$(SRC)/lib/pam_modules/krb5 \ |
|
229 |
in.rlogind.c $(COMMONSRCS) $(LDLIBS) -lbsm -lpam -lsocket -lnsl |
|
230 |
$(LINT.c) -erroff=E_NAME_USED_NOT_DEF2 -erroff=E_NAME_DEF_NOT_USED2 \ |
|
231 |
-I$(SRC)/head -I$(SRC)/uts/common/ \ |
|
232 |
-I$(SRC)/uts/common/gssapi/mechs/krb5/include \ |
|
233 |
-I$(SRC)/lib/gss_mechs/mech_krb5/include \ |
|
234 |
-I$(SRC)/lib/pam_modules/krb5 \ |
|
235 |
in.rshd.c $(COMMONSRCS) $(LDLIBS) -lbsm -lpam -lsocket -lnsl |
|
236 |
$(LINT.c) -erroff=E_NAME_USED_NOT_DEF2 \ |
|
237 |
-erroff=E_GLOBAL_COULD_BE_STATIC2 \ |
|
238 |
-I$(SRC)/head -I$(SRC)/uts/common/ \ |
|
239 |
-I$(SRC)/uts/common/gssapi/mechs/krb5/include \ |
|
240 |
-I$(SRC)/lib/gss_mechs/mech_krb5/include \ |
|
241 |
-I$(SRC)/lib/pam_modules/krb5 \ |
|
242 |
in.telnetd.c $(LDLIBS) -lbsm -lpam -lsocket -lnsl |
|
515 | 243 |
$(LINT.c) if_mpadm.c $(LDLIBS) -lsocket -lnsl -lipmp |
0 | 244 |
$(LINT.c) ipaddrsel.c $(LDLIBS) -lsocket -lnsl |
245 |
$(LINT.c) ipsecalgs.c $(LDLIBS) -lsocket -lnsl -lipsecutil |
|
246 |
$(LINT.c) ipsecconf.c $(LDLIBS) -lsocket -lnsl -lipsecutil |
|
247 |
$(LINT.c) ipseckey.c $(LDLIBS) -lsocket -lnsl -lipsecutil |
|
248 |
$(LINT.c) ikeadm.c $(LDLIBS) -lnsl -lipsecutil |
|
249 |
$(LINT.c) route.c $(LDLIBS) -lsocket -lnsl |
|
250 |
$(LINT.c) routeadm.c $(LDLIBS) -lsocket |
|
251 |
$(LINT.c) syncinit.c $(LDLIBS) -ldlpi |
|
252 |
$(LINT.c) syncloop.c $(LDLIBS) -ldlpi |
|
253 |
$(LINT.c) syncstat.c $(LDLIBS) -ldlpi |
|
254 |
$(LINT.c) -erroff=E_NAME_USED_NOT_DEF2 in.rarpd.c $(LDLIBS) \ |
|
255 |
-lsocket -lnsl |
|
256 |
$(LINT.c) in.tftpd.c ../usr.bin/tftp/tftpsubs.c $(LDLIBS) \ |
|
257 |
-lsocket -lnsl |
|
258 |
||
259 |
# EXPORT DELETE START |
|
260 |
EXPORT_SRC: |
|
261 |
$(RM) Makefile+ |
|
262 |
sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \ |
|
263 |
< Makefile > Makefile+ |
|
264 |
$(RM) Makefile |
|
265 |
$(MV) Makefile+ Makefile |
|
266 |
$(CHMOD) 444 Makefile |
|
267 |
# EXPORT DELETE END |