xref: /titanic_52/usr/src/cmd/cmd-inet/usr.sbin/Makefile (revision c28749e97052f09388969427adf7df641cdcdc22)
17c478bd9Sstevel@tonic-gate#
27c478bd9Sstevel@tonic-gate# CDDL HEADER START
37c478bd9Sstevel@tonic-gate#
47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
57c478bd9Sstevel@tonic-gate# Common Development and Distribution License, Version 1.0 only
67c478bd9Sstevel@tonic-gate# (the "License").  You may not use this file except in compliance
77c478bd9Sstevel@tonic-gate# with the License.
87c478bd9Sstevel@tonic-gate#
97c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
107c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
117c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
127c478bd9Sstevel@tonic-gate# and limitations under the License.
137c478bd9Sstevel@tonic-gate#
147c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
157c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
167c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
177c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
187c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
197c478bd9Sstevel@tonic-gate#
207c478bd9Sstevel@tonic-gate# CDDL HEADER END
217c478bd9Sstevel@tonic-gate#
227c478bd9Sstevel@tonic-gate#
237c478bd9Sstevel@tonic-gate# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
247c478bd9Sstevel@tonic-gate# Use is subject to license terms.
257c478bd9Sstevel@tonic-gate#
267c478bd9Sstevel@tonic-gate# ident	"%Z%%M%	%I%	%E% SMI"
277c478bd9Sstevel@tonic-gate#
287c478bd9Sstevel@tonic-gate
297c478bd9Sstevel@tonic-gateSYNCPROG=	syncinit syncloop syncstat
307c478bd9Sstevel@tonic-gateDHCPPROG=	dhcpconfig dhtadm pntadm
317c478bd9Sstevel@tonic-gate
327c478bd9Sstevel@tonic-gate# EXPORT DELETE START
337c478bd9Sstevel@tonic-gateXMODPROG=	wanbootutil
347c478bd9Sstevel@tonic-gate# EXPORT DELETE END
357c478bd9Sstevel@tonic-gate
367c478bd9Sstevel@tonic-gatePROG=		6to4relay arp gettable if_mpadm ikeadm ikecert \
377c478bd9Sstevel@tonic-gate		in.comsat in.fingerd in.rarpd in.rdisc in.rexecd in.rlogind \
387c478bd9Sstevel@tonic-gate		in.rshd in.rwhod in.telnetd in.tftpd in.tnamed ipaddrsel \
397c478bd9Sstevel@tonic-gate		ipsecalgs ipsecconf ipseckey ndd $(SYNCPROG) $(DHCPPROG) \
407c478bd9Sstevel@tonic-gate		$(XMODPROG)
417c478bd9Sstevel@tonic-gate
427c478bd9Sstevel@tonic-gateMANIFEST=	rarp.xml telnet.xml comsat.xml finger.xml \
437c478bd9Sstevel@tonic-gate		login.xml shell.xml rexec.xml tname.xml
447c478bd9Sstevel@tonic-gate
457c478bd9Sstevel@tonic-gateROOTFS_PROG=	hostconfig route routeadm soconfig
467c478bd9Sstevel@tonic-gateSBINLINKS=	hostconfig route routeadm
477c478bd9Sstevel@tonic-gate
487c478bd9Sstevel@tonic-gateRPCSVCPROG=	hostconfig
497c478bd9Sstevel@tonic-gateAUDITPROG=	in.rexecd in.rlogind in.rshd in.telnetd
507c478bd9Sstevel@tonic-gatePAMPROG=	in.rexecd in.rlogind in.rshd in.telnetd
517c478bd9Sstevel@tonic-gateSOCKETPROG=	6to4relay arp gettable hostconfig if_mpadm in.comsat \
527c478bd9Sstevel@tonic-gate		in.fingerd in.rarpd in.rdisc in.rexecd in.rlogind in.rshd \
537c478bd9Sstevel@tonic-gate		in.rwhod in.telnetd in.tftpd in.tnamed ipaddrsel \
547c478bd9Sstevel@tonic-gate		ipsecalgs ipsecconf ipseckey route routeadm
557c478bd9Sstevel@tonic-gateNSLPROG=	6to4relay arp gettable hostconfig ikeadm in.comsat in.rarpd \
567c478bd9Sstevel@tonic-gate		in.rdisc in.rexecd in.rlogind in.rshd in.rwhod in.telnetd \
577c478bd9Sstevel@tonic-gate		in.tftpd in.tnamed ipaddrsel ipsecalgs ipsecconf ipseckey route
587c478bd9Sstevel@tonic-gateCMDPROG=	in.telnetd
597c478bd9Sstevel@tonic-gateIPSECUTILPROG=	ikeadm ipsecalgs ipsecconf ipseckey
607c478bd9Sstevel@tonic-gateK5PROGS=	in.telnetd in.rlogind in.rshd
61a7872406SmeemDEFAULTFILES=	telnetd.dfl
627c478bd9Sstevel@tonic-gate
637c478bd9Sstevel@tonic-gatePROGSRCS=	$(PROG:%=%.c)
647c478bd9Sstevel@tonic-gateTFTPDOBJS=	in.tftpd.o tftpsubs.o
657c478bd9Sstevel@tonic-gateOTHERSRC=	../usr.bin/tftp/tftpsubs.c
667c478bd9Sstevel@tonic-gateK5RLOGINOBJS=	in.rlogind.o
677c478bd9Sstevel@tonic-gateK5RSHDOBJS=	in.rshd.o
687c478bd9Sstevel@tonic-gateSRCS=		$(PROGSRCS) $(OTHERSRC)
697c478bd9Sstevel@tonic-gate
707c478bd9Sstevel@tonic-gateSUBDIRS=	bootconfchk htable ifconfig in.ftpd in.routed \
71*c28749e9Skais		in.talkd inetadm inetconv ipqosconf kssl/kssladm \
72*c28749e9Skais		kssl/ksslcfg  mipagentconfig mipagentstat ping snoop \
73*c28749e9Skais		sppptun traceroute
747c478bd9Sstevel@tonic-gate
757c478bd9Sstevel@tonic-gateMSGSUBDIRS=	bootconfchk htable ifconfig in.ftpd in.routed in.talkd \
76*c28749e9Skais		inetadm inetconv ipqosconf kssl/ksslcfg mipagentconfig \
77*c28749e9Skais		mipagentstat sppptun snoop
787c478bd9Sstevel@tonic-gate
797c478bd9Sstevel@tonic-gate# As programs get lint-clean, add them here and to the 'lint' target.
807c478bd9Sstevel@tonic-gate# Eventually this hack should go away, and all in PROG should be
817c478bd9Sstevel@tonic-gate# lint-clean.
827c478bd9Sstevel@tonic-gateLINTCLEAN=	6to4relay arp ikeadm in.rlogind in.rshd in.telnetd in.tftpd \
837c478bd9Sstevel@tonic-gate		ipaddrsel ipsecalgs ipseckey ipsecconf route routeadm \
844b908718Smeem		in.rarpd if_mpadm $(SYNCPROG)
857c478bd9Sstevel@tonic-gate# Likewise, as subdirs get lint-clean, add them here.  Once
867c478bd9Sstevel@tonic-gate# they're all clean, replace the dependency of the lint target
877c478bd9Sstevel@tonic-gate# with SUBDIRS.  Also (sigh) deal with the commented-out build lines
887c478bd9Sstevel@tonic-gate# for the lint rule.
897c478bd9Sstevel@tonic-gateLINTSUBDIRS=	bootconfchk in.routed in.talkd inetadm inetconv ipqosconf \
907c478bd9Sstevel@tonic-gate		mipagentstat ping sppptun traceroute
917c478bd9Sstevel@tonic-gate# And as programs are verified not to attempt to write into constants,
927c478bd9Sstevel@tonic-gate# -xstrconst should be used to ensure they stay that way.
937c478bd9Sstevel@tonic-gateCONSTCLEAN=	ikeadm
947c478bd9Sstevel@tonic-gate
957c478bd9Sstevel@tonic-gateinclude ../../Makefile.cmd
967c478bd9Sstevel@tonic-gateROOTMANIFESTDIR=	$(ROOTSVCNETWORK)
977c478bd9Sstevel@tonic-gate$(ROOTMANIFEST)		:= FILEMODE= 444
987c478bd9Sstevel@tonic-gateinclude ../Makefile.cmd-inet
997c478bd9Sstevel@tonic-gate
1007c478bd9Sstevel@tonic-gateROOTSBINPROG = $(ROOTFS_PROG:%=$(ROOTSBIN)/%)
1017c478bd9Sstevel@tonic-gateROOTUSRSBINLINKS = $(SBINLINKS:%=$(ROOTUSRSBIN)/%)
1027c478bd9Sstevel@tonic-gate
1037c478bd9Sstevel@tonic-gateCOMMONOBJS=	kcmd.o
1047c478bd9Sstevel@tonic-gateCOMMONSRCS=	$(CMDINETCOMMONDIR)/$(COMMONOBJS:.o=.c)
1057c478bd9Sstevel@tonic-gateSRCS+=		$(COMMONSRCS)
1067c478bd9Sstevel@tonic-gate
1077c478bd9Sstevel@tonic-gate#
1087c478bd9Sstevel@tonic-gate# Message catalog
1097c478bd9Sstevel@tonic-gate#
1107c478bd9Sstevel@tonic-gatePOFILES=	6to4relay.po if_mpadm.po ikeadm.po in.comsat.po ipaddrsel.po \
1117c478bd9Sstevel@tonic-gate		ipsecalgs.po ipsecconf.po ipseckey.po route.po routeadm.po
1127c478bd9Sstevel@tonic-gatePOFILE=		usr.sbin.po
1137c478bd9Sstevel@tonic-gate
1147c478bd9Sstevel@tonic-gateall:=		TARGET= all
1157c478bd9Sstevel@tonic-gateinstall:=	TARGET= install
1167c478bd9Sstevel@tonic-gateclean:=		TARGET= clean
1177c478bd9Sstevel@tonic-gateclobber:=	TARGET= clobber
1187c478bd9Sstevel@tonic-gatelint:=		TARGET= lint
1197c478bd9Sstevel@tonic-gate_msg:=		TARGET= _msg
1207c478bd9Sstevel@tonic-gate
1217c478bd9Sstevel@tonic-gateCLOBBERFILES +=	$(ROOTFS_PROG) $(PROG)
1227c478bd9Sstevel@tonic-gateCLEANFILES += $(COMMONOBJS) $(K5RLOGINOBJS) $(K5RSHDOBJS) $(TFTPDOBJS)
1237c478bd9Sstevel@tonic-gate
1247c478bd9Sstevel@tonic-gateCPPFLAGS +=	-DSYSV -DBSD_COMP -I$(CMDINETCOMMONDIR) -I.
1257c478bd9Sstevel@tonic-gate
1267c478bd9Sstevel@tonic-gateinclude $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
1277c478bd9Sstevel@tonic-gateK5LIBS=
1287c478bd9Sstevel@tonic-gate
1297c478bd9Sstevel@tonic-gate# Eventually just plain CFLAGS should be += -v, but not until all in
1307c478bd9Sstevel@tonic-gate# PROGS are lint clean.
1317c478bd9Sstevel@tonic-gate$(LINTCLEAN)		:=	CFLAGS += $(CCVERBOSE)
1327c478bd9Sstevel@tonic-gate$(CONSTCLEAN)		:=	CFLAGS += $(XSTRCONST)
1337c478bd9Sstevel@tonic-gate
1347c478bd9Sstevel@tonic-gate$(SYNCPROG)		:=	LDLIBS += -ldlpi
1357c478bd9Sstevel@tonic-gate$(SOCKETPROG)		:=	LDLIBS += -lsocket
1367c478bd9Sstevel@tonic-gate$(NSLPROG)		:=	LDLIBS += -lnsl
1377c478bd9Sstevel@tonic-gate$(AUDITPROG)		:=	LDLIBS += -lbsm
1387c478bd9Sstevel@tonic-gate$(PAMPROG)		:=	LDLIBS += -lpam
1397c478bd9Sstevel@tonic-gate$(RPCSVCPROG)		:=	LDLIBS += -lrpcsvc
1407c478bd9Sstevel@tonic-gate$(CMDPROG)		:=	LDLIBS += -lcmd
1417c478bd9Sstevel@tonic-gate$(K5PROGS)		:=	LDFLAGS += $(ZLAZYLOAD) $(KRUNPATH) \
1427c478bd9Sstevel@tonic-gate				-L$(ROOT)$(KLIBDIR_DO) -L$(ROOT)$(KLIBDIR_GL)
1437c478bd9Sstevel@tonic-gate$(K5PROGS)		:=	K5LIBS=  -lmech_krb5
1447c478bd9Sstevel@tonic-gate$(K5PROGS)		:=	CPPFLAGS += -I$(SRC)/head \
1457c478bd9Sstevel@tonic-gate				-I$(SRC)/uts/common/ \
1467c478bd9Sstevel@tonic-gate				-I$(SRC)/uts/common/gssapi/mechs/krb5/include \
1477c478bd9Sstevel@tonic-gate				-I$(SRC)/lib/gss_mechs/mech_krb5/include \
1487c478bd9Sstevel@tonic-gate				-I$(SRC)/lib/pam_modules/krb5
1497c478bd9Sstevel@tonic-gateLDLIBS +=	$(K5LIBS)
1507c478bd9Sstevel@tonic-gate$(IPSECUTILPROG)	:=	LDLIBS += -lipsecutil
1517c478bd9Sstevel@tonic-gate
1527c478bd9Sstevel@tonic-gatein.rarpd		:=	LDLIBS += -linetutil
1537c478bd9Sstevel@tonic-gateroute			:=	CPPFLAGS += -DNDEBUG
1547c478bd9Sstevel@tonic-gate
1557c478bd9Sstevel@tonic-gate.KEEP_STATE:
1567c478bd9Sstevel@tonic-gate
1577c478bd9Sstevel@tonic-gate.PARALLEL:
1587c478bd9Sstevel@tonic-gate
1597c478bd9Sstevel@tonic-gateall: $(PROG) $(ROOTFS_PROG) $(SUBDIRS)
1607c478bd9Sstevel@tonic-gate
1617c478bd9Sstevel@tonic-gate#
1627c478bd9Sstevel@tonic-gate# message catalog
1637c478bd9Sstevel@tonic-gate#
1647c478bd9Sstevel@tonic-gate_msg: $(MSGSUBDIRS) $(POFILE)
1657c478bd9Sstevel@tonic-gate
1667c478bd9Sstevel@tonic-gatesyncutil: $(SYNCPROG)
1677c478bd9Sstevel@tonic-gate
1687c478bd9Sstevel@tonic-gate$(POFILE): $(POFILES)
1697c478bd9Sstevel@tonic-gate	$(RM) $@
1707c478bd9Sstevel@tonic-gate	cat $(POFILES) > $@
1717c478bd9Sstevel@tonic-gate
1727c478bd9Sstevel@tonic-gate$(COMMONOBJS): $(COMMONSRCS)
1737c478bd9Sstevel@tonic-gate	$(COMPILE.c) $(COMMONSRCS)
1747c478bd9Sstevel@tonic-gate
1757c478bd9Sstevel@tonic-gatein.rlogind: $(K5RLOGINOBJS) $(COMMONOBJS)
1767c478bd9Sstevel@tonic-gate	$(LINK.c) $(K5RLOGINOBJS) $(COMMONOBJS) -o $@ $(LDLIBS)
1777c478bd9Sstevel@tonic-gate	$(POST_PROCESS)
1787c478bd9Sstevel@tonic-gate
1797c478bd9Sstevel@tonic-gatein.rshd: $(K5RSHDOBJS) $(COMMONOBJS)
1807c478bd9Sstevel@tonic-gate	$(LINK.c) $(K5RSHDOBJS) $(COMMONOBJS) -o $@ $(LDLIBS)
1817c478bd9Sstevel@tonic-gate	$(POST_PROCESS)
1827c478bd9Sstevel@tonic-gate
1837c478bd9Sstevel@tonic-gatein.tftpd: $(TFTPDOBJS)
1847c478bd9Sstevel@tonic-gate	$(LINK.c) $(TFTPDOBJS) -o $@ $(LDLIBS)
1857c478bd9Sstevel@tonic-gate	$(POST_PROCESS)
1867c478bd9Sstevel@tonic-gate
1877c478bd9Sstevel@tonic-gatetftpsubs.o: $(OTHERSRC)
1887c478bd9Sstevel@tonic-gate	$(COMPILE.c) $(OTHERSRC) -o $@
1897c478bd9Sstevel@tonic-gate	$(POST_PROCESS_O)
1907c478bd9Sstevel@tonic-gate
1917c478bd9Sstevel@tonic-gate$(ROOTUSRSBINLINKS):
1927c478bd9Sstevel@tonic-gate	-$(RM) $@; $(SYMLINK) ../../sbin/$(@F) $@
1937c478bd9Sstevel@tonic-gate
1947c478bd9Sstevel@tonic-gateinstall: $(PROG) $(ROOTFS_PROG) $(SUBDIRS) .WAIT $(ROOTUSRSBINPROG) \
1957c478bd9Sstevel@tonic-gate	$(ROOTSBINPROG) $(ROOTUSRSBINLINKS) $(ROOTETCDEFAULTFILES) \
1967c478bd9Sstevel@tonic-gate	$(ROOTMANIFEST)
1977c478bd9Sstevel@tonic-gate
1987c478bd9Sstevel@tonic-gate#
1997c478bd9Sstevel@tonic-gate# The reason this rule checks for the existence of the
2007c478bd9Sstevel@tonic-gate# Makefile is that some of the directories do not exist
2017c478bd9Sstevel@tonic-gate# in our exportable source builds.
2027c478bd9Sstevel@tonic-gate#
2037c478bd9Sstevel@tonic-gate$(SUBDIRS): FRC
2047c478bd9Sstevel@tonic-gate	@if [ -f $@/Makefile  ]; then \
2057c478bd9Sstevel@tonic-gate		cd $@; pwd; $(MAKE) $(TARGET); \
2067c478bd9Sstevel@tonic-gate	else \
2077c478bd9Sstevel@tonic-gate		true; \
2087c478bd9Sstevel@tonic-gate	fi
2097c478bd9Sstevel@tonic-gate
2107c478bd9Sstevel@tonic-gateFRC:
2117c478bd9Sstevel@tonic-gate
2127c478bd9Sstevel@tonic-gatecheck:	$(CHKMANIFEST)
2137c478bd9Sstevel@tonic-gate
2147c478bd9Sstevel@tonic-gateclean:	$(SUBDIRS)
2157c478bd9Sstevel@tonic-gate	-$(RM) $(CLEANFILES)
2167c478bd9Sstevel@tonic-gate
2177c478bd9Sstevel@tonic-gateclobber: $(SUBDIRS)
2187c478bd9Sstevel@tonic-gate	-$(RM) $(CLEANFILES) $(CLOBBERFILES)
2197c478bd9Sstevel@tonic-gate
2207c478bd9Sstevel@tonic-gatelint: $(LINTSUBDIRS)
2217c478bd9Sstevel@tonic-gate	$(LINT.c) 6to4relay.c $(LDLIBS) -lsocket -lnsl
2227c478bd9Sstevel@tonic-gate	$(LINT.c) arp.c $(LDLIBS) -lsocket -lnsl
2237c478bd9Sstevel@tonic-gate	@# $(LINT.c) in.rexecd.c $(LDLIBS) -lbsm -lpam
2247c478bd9Sstevel@tonic-gate	$(LINT.c) -erroff=E_NAME_USED_NOT_DEF2 -erroff=E_NAME_DEF_NOT_USED2 \
2257c478bd9Sstevel@tonic-gate		-I$(SRC)/head -I$(SRC)/uts/common/ \
2267c478bd9Sstevel@tonic-gate		-I$(SRC)/uts/common/gssapi/mechs/krb5/include \
2277c478bd9Sstevel@tonic-gate		-I$(SRC)/lib/gss_mechs/mech_krb5/include \
2287c478bd9Sstevel@tonic-gate		-I$(SRC)/lib/pam_modules/krb5 \
2297c478bd9Sstevel@tonic-gate		in.rlogind.c $(COMMONSRCS) $(LDLIBS) -lbsm -lpam -lsocket -lnsl
2307c478bd9Sstevel@tonic-gate	$(LINT.c) -erroff=E_NAME_USED_NOT_DEF2 -erroff=E_NAME_DEF_NOT_USED2 \
2317c478bd9Sstevel@tonic-gate		-I$(SRC)/head -I$(SRC)/uts/common/ \
2327c478bd9Sstevel@tonic-gate		-I$(SRC)/uts/common/gssapi/mechs/krb5/include \
2337c478bd9Sstevel@tonic-gate		-I$(SRC)/lib/gss_mechs/mech_krb5/include \
2347c478bd9Sstevel@tonic-gate		-I$(SRC)/lib/pam_modules/krb5 \
2357c478bd9Sstevel@tonic-gate		in.rshd.c $(COMMONSRCS) $(LDLIBS) -lbsm -lpam -lsocket -lnsl
2367c478bd9Sstevel@tonic-gate	$(LINT.c) -erroff=E_NAME_USED_NOT_DEF2 \
2377c478bd9Sstevel@tonic-gate		-erroff=E_GLOBAL_COULD_BE_STATIC2 \
2387c478bd9Sstevel@tonic-gate		-I$(SRC)/head -I$(SRC)/uts/common/ \
2397c478bd9Sstevel@tonic-gate		-I$(SRC)/uts/common/gssapi/mechs/krb5/include \
2407c478bd9Sstevel@tonic-gate		-I$(SRC)/lib/gss_mechs/mech_krb5/include \
2417c478bd9Sstevel@tonic-gate		-I$(SRC)/lib/pam_modules/krb5 \
2427c478bd9Sstevel@tonic-gate		in.telnetd.c $(LDLIBS) -lbsm -lpam -lsocket -lnsl
2434b908718Smeem	$(LINT.c) if_mpadm.c $(LDLIBS) -lsocket -lnsl -lipmp
2447c478bd9Sstevel@tonic-gate	$(LINT.c) ipaddrsel.c $(LDLIBS) -lsocket -lnsl
2457c478bd9Sstevel@tonic-gate	$(LINT.c) ipsecalgs.c $(LDLIBS) -lsocket -lnsl -lipsecutil
2467c478bd9Sstevel@tonic-gate	$(LINT.c) ipsecconf.c $(LDLIBS) -lsocket -lnsl -lipsecutil
2477c478bd9Sstevel@tonic-gate	$(LINT.c) ipseckey.c $(LDLIBS) -lsocket -lnsl -lipsecutil
2487c478bd9Sstevel@tonic-gate	$(LINT.c) ikeadm.c $(LDLIBS) -lnsl -lipsecutil
2497c478bd9Sstevel@tonic-gate	$(LINT.c) route.c $(LDLIBS) -lsocket -lnsl
2507c478bd9Sstevel@tonic-gate	$(LINT.c) routeadm.c $(LDLIBS) -lsocket
2517c478bd9Sstevel@tonic-gate	$(LINT.c) syncinit.c $(LDLIBS) -ldlpi
2527c478bd9Sstevel@tonic-gate	$(LINT.c) syncloop.c $(LDLIBS) -ldlpi
2537c478bd9Sstevel@tonic-gate	$(LINT.c) syncstat.c $(LDLIBS) -ldlpi
2547c478bd9Sstevel@tonic-gate	$(LINT.c) -erroff=E_NAME_USED_NOT_DEF2 in.rarpd.c $(LDLIBS) \
2557c478bd9Sstevel@tonic-gate	    -lsocket -lnsl
2567c478bd9Sstevel@tonic-gate	$(LINT.c) in.tftpd.c ../usr.bin/tftp/tftpsubs.c $(LDLIBS) \
2577c478bd9Sstevel@tonic-gate	    -lsocket -lnsl
2587c478bd9Sstevel@tonic-gate
2597c478bd9Sstevel@tonic-gate# EXPORT DELETE START
2607c478bd9Sstevel@tonic-gateEXPORT_SRC:
2617c478bd9Sstevel@tonic-gate	$(RM) Makefile+
2627c478bd9Sstevel@tonic-gate	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
2637c478bd9Sstevel@tonic-gate		< Makefile > Makefile+
2647c478bd9Sstevel@tonic-gate	$(RM) Makefile
2657c478bd9Sstevel@tonic-gate	$(MV) Makefile+ Makefile
2667c478bd9Sstevel@tonic-gate	$(CHMOD) 444 Makefile
2677c478bd9Sstevel@tonic-gate# EXPORT DELETE END
268