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