Makefile revision 5c0b7edee9bd9fad49038456b16972ff28fa4187
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews#
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# CDDL HEADER START
229ea4644b3a7d9c7fdaa43888e7f55ba01e2ee3Automatic Updater#
229ea4644b3a7d9c7fdaa43888e7f55ba01e2ee3Automatic Updater# The contents of this file are subject to the terms of the
1167fc7904c5f0a472f8df207ac46dd52c7f1ec8Automatic Updater# Common Development and Distribution License (the "License").
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updater# You may not use this file except in compliance with the License.
46da3117812814a29432a8d9a9ccf8acdbfdadceAutomatic Updater#
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0519188c8e1ae76978fc4e0f799620cd36eba07aAutomatic Updater# or http://www.opensolaris.org/os/licensing.
79b273c187a4aa1016a62181983dfdd0521681aeMark Andrews# See the License for the specific language governing permissions
90ff38a0d8deaf5f9c2aa5916d99b2e572d28738Automatic Updater# and limitations under the License.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington#
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
6c6a121295b30772cbf3dd75a51fb9d883051a0eAutomatic Updater# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# If applicable, add the following below this CDDL HEADER, with the
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater# fields enclosed by brackets "[]" replaced with your own identifying
e171a4137c6ba348957e61b7c4c3541493c0da02Automatic Updater# information: Portions Copyright [yyyy] [name of copyright owner]
e171a4137c6ba348957e61b7c4c3541493c0da02Automatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# CDDL HEADER END
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater#
3cc98b8ecedcbc8465f1cf2740b966b315662430Automatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
e171a4137c6ba348957e61b7c4c3541493c0da02Automatic Updater# Use is subject to license terms.
831f79c4310a7d38fc3475ccfff531b2b2535641Automatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# ident "%Z%%M% %I% %E% SMI"
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater#
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterSYNCPROG= syncinit syncloop syncstat
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonDHCPPROG= dhcpconfig dhtadm pntadm
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# EXPORT DELETE START
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonXMODPROG= wanbootutil
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# EXPORT DELETE END
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterPROG= 6to4relay arp gettable if_mpadm \
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt in.comsat in.fingerd in.rarpd in.rexecd in.rlogind \
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater in.rshd in.rwhod in.telnetd in.tftpd ipaddrsel \
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater ndd $(SYNCPROG) $(DHCPPROG) $(XMODPROG)
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterMANIFEST= rarp.xml telnet.xml comsat.xml finger.xml \
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater login.xml shell.xml rexec.xml
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntROOTFS_PROG= hostconfig route soconfig
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic UpdaterSBINLINKS= hostconfig route
2d2dc37599979c83495510f8af8d1756753aa2c5Automatic Updater
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntRPCSVCPROG= hostconfig
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterAUDITPROG= in.rexecd in.rlogind in.rshd in.telnetd
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterPAMPROG= in.rexecd in.rlogind in.rshd in.telnetd
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterSOCKETPROG= 6to4relay arp gettable hostconfig if_mpadm in.comsat \
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater in.fingerd in.rarpd in.rexecd in.rlogind in.rshd \
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater in.rwhod in.telnetd in.tftpd ipaddrsel route
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic UpdaterNSLPROG= 6to4relay arp gettable hostconfig in.comsat in.rarpd \
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater in.rexecd in.rlogind in.rshd in.rwhod in.telnetd \
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater in.tftpd ipaddrsel route
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCMDPROG= in.telnetd
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterK5PROGS= in.telnetd in.rlogind in.rshd
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterTSNETPROG= route
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark AndrewsDEFAULTFILES= telnetd.dfl
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark AndrewsPROGSRCS= $(PROG:%=%.c)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonTFTPDOBJS= in.tftpd.o tftpsubs.o
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic UpdaterOTHERSRC= ../usr.bin/tftp/tftpsubs.c
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsK5RLOGINOBJS= in.rlogind.o
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic UpdaterK5RSHDOBJS= in.rshd.o
8e9f3b69914ee02a80b87c97b1f8093edb3e9ae0Automatic UpdaterSRCS= $(PROGSRCS) $(OTHERSRC)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
930f6069e5aa157cf6987cdafd412f5757a5a558Automatic UpdaterSUBDIRS= bootconfchk htable ifconfig in.ftpd in.rdisc in.routed \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews in.talkd inetadm inetconv ipqosconf kssl/kssladm kssl/ksslcfg \
930f6069e5aa157cf6987cdafd412f5757a5a558Automatic Updater ping routeadm snoop sppptun traceroute wificonfig ipsecutils
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsMSGSUBDIRS= bootconfchk htable ifconfig in.ftpd in.routed in.talkd inetadm \
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater inetconv ipqosconf kssl/ksslcfg routeadm sppptun snoop \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews wificonfig
930f6069e5aa157cf6987cdafd412f5757a5a558Automatic Updater
693c4232dfdffaff672197d4b9fea944c64cf80aAutomatic Updater# As programs get lint-clean, add them here and to the 'lint' target.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Eventually this hack should go away, and all in PROG should be
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# lint-clean.
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonLINTCLEAN= 6to4relay arp in.rlogind in.rshd in.telnetd in.tftpd \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater ipaddrsel route \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater in.rarpd if_mpadm $(SYNCPROG)
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews# Likewise, as subdirs get lint-clean, add them here. Once
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# they're all clean, replace the dependency of the lint target
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# with SUBDIRS. Also (sigh) deal with the commented-out build lines
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# for the lint rule.
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterLINTSUBDIRS= bootconfchk in.rdisc in.routed in.talkd inetadm inetconv \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson ipqosconf ping routeadm sppptun traceroute wificonfig ipsecutils
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# And as programs are verified not to attempt to write into constants,
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater# -xstrconst should be used to ensure they stay that way.
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic UpdaterCONSTCLEAN=
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews
11af78f7dc35741bdab68dbab11b03daab005b28Automatic Updaterinclude ../../Makefile.cmd
11af78f7dc35741bdab68dbab11b03daab005b28Automatic UpdaterROOTMANIFESTDIR= $(ROOTSVCNETWORK)
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews$(ROOTMANIFEST) := FILEMODE= 444
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontinclude ../Makefile.cmd-inet
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater
8ccd7da886e93cd490fcb6f4c4e98a6514f35820Automatic UpdaterROOTSBINPROG = $(ROOTFS_PROG:%=$(ROOTSBIN)/%)
2a31bd531072824ef252c18303859d6af7451b00Francis DupontROOTUSRSBINLINKS = $(SBINLINKS:%=$(ROOTUSRSBIN)/%)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic UpdaterCOMMONOBJS= addr_match.o kcmd.o
a308b69ac66fadf66863484f301314d6e6a3f1d2Automatic UpdaterCOMMONSRCS= $(COMMONOBJS:%.o=$(CMDINETCOMMONDIR)/%.c)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsSRCS+= $(COMMONSRCS)
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews
08e3b6797706a13054bad749dea04e94b514b8e7Automatic Updater#
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater# Message catalog
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews#
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark AndrewsPOFILES= 6to4relay.po if_mpadm.po in.comsat.po ipaddrsel.po route.po
a308b69ac66fadf66863484f301314d6e6a3f1d2Automatic UpdaterPOFILE= usr.sbin.po
a308b69ac66fadf66863484f301314d6e6a3f1d2Automatic Updater
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrewsall:= TARGET= all
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsinstall:= TARGET= install
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updaterclean:= TARGET= clean
82447d835d3ff5c658749b4e9b4f66166407b3eaAutomatic Updaterclobber:= TARGET= clobber
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewslint:= TARGET= lint
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updater_msg:= TARGET= _msg
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updater
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterCLOBBERFILES += $(ROOTFS_PROG) $(PROG)
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic UpdaterCLEANFILES += $(COMMONOBJS) $(K5RLOGINOBJS) $(K5RSHDOBJS) $(TFTPDOBJS)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
fe80a4909bf62b602feaf246866e9d29f7654194Automatic UpdaterCPPFLAGS += -DSYSV -DBSD_COMP -I$(CMDINETCOMMONDIR) -I
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updaterinclude $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
fe80a4909bf62b602feaf246866e9d29f7654194Automatic UpdaterK5LIBS=
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# Eventually just plain CFLAGS should be += -v, but not until all in
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# PROGS are lint clean.
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater$(LINTCLEAN) := CFLAGS += $(CCVERBOSE)
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews$(CONSTCLEAN) := CFLAGS += $(XSTRCONST)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater$(SYNCPROG) := LDLIBS += -ldlpi
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater$(SOCKETPROG) := LDLIBS += -lsocket
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater$(NSLPROG) := LDLIBS += -lnsl
133e6d43fa82e80d3798be4de00f4540f485ec6cAutomatic Updater$(AUDITPROG) := LDLIBS += -lbsm
133e6d43fa82e80d3798be4de00f4540f485ec6cAutomatic Updater$(PAMPROG) := LDLIBS += -lpam
133e6d43fa82e80d3798be4de00f4540f485ec6cAutomatic Updater$(RPCSVCPROG) := LDLIBS += -lrpcsvc
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater$(K5PROGS) := LDFLAGS += $(ZLAZYLOAD) $(KRUNPATH) \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson -L$(ROOT)$(KLIBDIR_DO) -L$(ROOT)$(KLIBDIR_GL)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater$(K5PROGS) := K5LIBS= -lmech_krb5
4104e236f71eb5108fcfda6711878a97f6f4a8e7Automatic Updater$(K5PROGS) := CPPFLAGS += -I$(SRC)/head \
8711e5c73ca872d59810760af0332194cbdd619bAutomatic Updater -I$(SRC)/uts/common/ \
229ea4644b3a7d9c7fdaa43888e7f55ba01e2ee3Automatic Updater -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
0ce87e5749aabb8eef1e0a37e4bd6e6ffa1d7196Automatic Updater -I$(SRC)/lib/gss_mechs/mech_krb5/include \
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater -I$(SRC)/lib/pam_modules/krb5
229ea4644b3a7d9c7fdaa43888e7f55ba01e2ee3Automatic UpdaterLDLIBS += $(K5LIBS)
765c97d56ccddc9d7904c7d9ff2e2d825d9687e4Automatic Updater$(TSNETPROG) := LDLIBS += $(ZLAZYLOAD) -ltsnet $(ZNOLAZYLOAD)
3e5340279d8875d136a4dd815cccad0044aa2644Automatic Updater
8ccd7da886e93cd490fcb6f4c4e98a6514f35820Automatic Updaterin.rarpd := LDLIBS += -linetutil -ldlpi
da82e232161d67b77df2d67898bdac693f647be1Automatic Updaterroute := CPPFLAGS += -DNDEBUG
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updatergettable in.comsat := LDFLAGS += $(MAPFILE.NGB:%=-M%)
d145b64cacc8d9cda51f9924ec70cd4661c3e2cfAutomatic Updater
8711e5c73ca872d59810760af0332194cbdd619bAutomatic Updater.KEEP_STATE:
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater.PARALLEL:
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
da82e232161d67b77df2d67898bdac693f647be1Automatic Updaterall: $(PROG) $(ROOTFS_PROG) $(SUBDIRS) THIRDPARTYLICENSE.arp
9c446b72069d0ab9f710502f4d7048e50875fccbAutomatic Updater
e85565067cf73f8cc21ee29b11761659f1d47ee9Automatic Updater#
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# message catalog
bc0a53583d92309bebcf93c408e2f3247ebd3d3cAutomatic Updater#
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater_msg: $(MSGSUBDIRS) $(POFILE)
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updatersyncutil: $(SYNCPROG)
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater$(POFILE): $(POFILES)
7f79131f9a8e804b93c57f3c679065cce878b726Automatic Updater $(RM) $@
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater cat $(POFILES) > $@
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater
3f616e6f846be57b1717c6beaba0f74de9d5a7c6Automatic Updater%.o: $(CMDINETCOMMONDIR)/%.c
da82e232161d67b77df2d67898bdac693f647be1Automatic Updater $(COMPILE.c) -o $@ $<
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater
19b3dc94bce93fa76bd7e066f9298630dbc9dcb4Automatic Updaterin.rlogind: $(K5RLOGINOBJS) $(COMMONOBJS)
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater $(LINK.c) $(K5RLOGINOBJS) $(COMMONOBJS) -o $@ $(LDLIBS)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater $(POST_PROCESS)
7f94d9a8162c9a96b56e66176702b66e79d8e1a2Automatic Updater
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updaterin.rshd: $(K5RSHDOBJS) $(COMMONOBJS)
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater $(LINK.c) $(K5RSHDOBJS) $(COMMONOBJS) -o $@ $(LDLIBS)
f7a71eef29bcbf892270460269c79664f600cffdAutomatic Updater $(POST_PROCESS)
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updaterin.tftpd: $(TFTPDOBJS)
71bd43eebd9d6e42dbcae62b730f5b6508d5acd8Automatic Updater $(LINK.c) $(TFTPDOBJS) -o $@ $(LDLIBS)
82447d835d3ff5c658749b4e9b4f66166407b3eaAutomatic Updater $(POST_PROCESS)
7262eb86f2b465822206122921e2f357218f0cfdAutomatic Updater
96ea71632887c58a9d00f47eb318bf76b35903c3Mark Andrewstftpsubs.o: $(OTHERSRC)
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater $(COMPILE.c) $(OTHERSRC) -o $@
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater $(POST_PROCESS_O)
bbb069be941f649228760edcc241122933c066d2Automatic Updater
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater$(ROOTUSRSBINLINKS):
4cda4fd158d6ded5586bacea8c388445d99611eaAutomatic Updater -$(RM) $@; $(SYMLINK) ../../sbin/$(@F) $@
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updaterinstall: $(PROG) $(ROOTFS_PROG) $(SUBDIRS) .WAIT $(ROOTUSRSBINPROG) \
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updater $(ROOTSBINPROG) $(ROOTUSRSBINLINKS) $(ROOTETCDEFAULTFILES) \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews $(ROOTMANIFEST) THIRDPARTYLICENSE.arp
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater
8711e5c73ca872d59810760af0332194cbdd619bAutomatic UpdaterTHIRDPARTYLICENSE.arp: arp.c
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews $(SED) -n '/University of California/,/SUCH DAMAGE/p' arp.c > $@
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
765c97d56ccddc9d7904c7d9ff2e2d825d9687e4Automatic UpdaterCLOBBERFILES += THIRDPARTYLICENSE.arp
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
f7c88d61cc1ad2435b0b7cfaedfc9d5248c0be25Automatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# The reason this rule checks for the existence of the
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# Makefile is that some of the directories do not exist
3f616e6f846be57b1717c6beaba0f74de9d5a7c6Automatic Updater# in our exportable source builds.
229ea4644b3a7d9c7fdaa43888e7f55ba01e2ee3Automatic Updater#
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater$(SUBDIRS): FRC
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater @if [ -f $@/Makefile ]; then \
f7a71eef29bcbf892270460269c79664f600cffdAutomatic Updater cd $@; pwd; $(MAKE) $(TARGET); \
3e5340279d8875d136a4dd815cccad0044aa2644Automatic Updater else \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington true; \
8711e5c73ca872d59810760af0332194cbdd619bAutomatic Updater fi
8711e5c73ca872d59810760af0332194cbdd619bAutomatic Updater
cf7e98f59148b559946a7f1ca728471374f1eef3Automatic UpdaterFRC:
930f6069e5aa157cf6987cdafd412f5757a5a558Automatic Updater
8ccd7da886e93cd490fcb6f4c4e98a6514f35820Automatic Updatercheck: $(CHKMANIFEST)
8711e5c73ca872d59810760af0332194cbdd619bAutomatic Updater
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updaterclean: $(SUBDIRS)
cf7e98f59148b559946a7f1ca728471374f1eef3Automatic Updater -$(RM) $(CLEANFILES)
c3fd32ed29e9e419bb56583f4272a506773b1ea0Automatic Updater
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssonclobber: $(SUBDIRS)
c3fd32ed29e9e419bb56583f4272a506773b1ea0Automatic Updater -$(RM) $(CLEANFILES) $(CLOBBERFILES)
c3fd32ed29e9e419bb56583f4272a506773b1ea0Automatic Updater
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updaterlint: $(LINTSUBDIRS)
8711e5c73ca872d59810760af0332194cbdd619bAutomatic Updater $(LINT.c) 6to4relay.c $(LDLIBS) -lsocket -lnsl
099b86fb8136a7dff81df85cf395978c16eb254cAutomatic Updater $(LINT.c) arp.c $(LDLIBS) -lsocket -lnsl
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington @# $(LINT.c) in.rexecd.c $(LDLIBS) -lbsm -lpam
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater $(LINT.c) -erroff=E_NAME_USED_NOT_DEF2 -erroff=E_NAME_DEF_NOT_USED2 \
3857cb6fcabeb79d85de4b3e3e4ab99912b701f8Mark Andrews -I$(SRC)/head -I$(SRC)/uts/common/ \
572cb2c1c931f6bc6a4a019c103ae88239b0eb96Automatic Updater -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
7858b0168b866c0c2878fc4ea31fb5e581c1a6a9Automatic Updater -I$(SRC)/lib/gss_mechs/mech_krb5/include \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews -I$(SRC)/lib/pam_modules/krb5 \
9174e44c14b1cb91a651fa1dc29470438c246ab9Automatic Updater in.rlogind.c $(COMMONSRCS) $(LDLIBS) -lbsm -lpam -lsocket -lnsl
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson $(LINT.c) -erroff=E_NAME_USED_NOT_DEF2 -erroff=E_NAME_DEF_NOT_USED2 \
e2caa7536302de34de6cc04025abcd53dc3a499aAutomatic Updater -I$(SRC)/head -I$(SRC)/uts/common/ \
56e7dc0c24b04210dcbffb180a9e35644fb820daAutomatic Updater -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updater -I$(SRC)/lib/gss_mechs/mech_krb5/include \
8292deab031e7599cd7622aa7675fbe139ca6095Mark Andrews -I$(SRC)/lib/pam_modules/krb5 \
0b57424d28c9a67018107133f9fbc0a7dcf057e2Mark Andrews in.rshd.c $(COMMONSRCS) $(LDLIBS) -lbsm -lpam -lsocket -lnsl
0b57424d28c9a67018107133f9fbc0a7dcf057e2Mark Andrews $(LINT.c) -erroff=E_NAME_USED_NOT_DEF2 \
0b57424d28c9a67018107133f9fbc0a7dcf057e2Mark Andrews -erroff=E_GLOBAL_COULD_BE_STATIC2 \
ca35524ce2b57e6f1b261d23565d1288a355d12fAutomatic Updater -I$(SRC)/head -I$(SRC)/uts/common/ \
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
b109432c3a939bff66a463be86c371bd88efe3aaAutomatic Updater -I$(SRC)/lib/gss_mechs/mech_krb5/include \
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updater -I$(SRC)/lib/pam_modules/krb5 \
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews in.telnetd.c $(LDLIBS) -lbsm -lpam -lsocket -lnsl
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews $(LINT.c) if_mpadm.c $(LDLIBS) -lsocket -lnsl -lipmp
3351ccbd5c1961404044f8273d54dad405f53960Mark Andrews $(LINT.c) ipaddrsel.c $(LDLIBS) -lsocket -lnsl
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updater $(LINT.c) route.c $(LDLIBS) -lsocket -lnsl -ltsnet
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews $(LINT.c) syncinit.c $(LDLIBS) -ldlpi
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews $(LINT.c) syncloop.c $(LDLIBS) -ldlpi
3351ccbd5c1961404044f8273d54dad405f53960Mark Andrews $(LINT.c) syncstat.c $(LDLIBS) -ldlpi
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updater $(LINT.c) -erroff=E_NAME_USED_NOT_DEF2 in.rarpd.c $(LDLIBS) \
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews -lsocket -lnsl
0b57424d28c9a67018107133f9fbc0a7dcf057e2Mark Andrews $(LINT.c) in.tftpd.c ../usr.bin/tftp/tftpsubs.c $(LDLIBS) \
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updater -lsocket -lnsl
0b57424d28c9a67018107133f9fbc0a7dcf057e2Mark Andrews
e8fc8c884b44371784805e1e0d3100da403dd3f1Automatic Updater# EXPORT DELETE START
e8fc8c884b44371784805e1e0d3100da403dd3f1Automatic UpdaterEXPORT_SRC:
e8fc8c884b44371784805e1e0d3100da403dd3f1Automatic Updater $(RM) Makefile+
e8fc8c884b44371784805e1e0d3100da403dd3f1Automatic Updater sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
e8fc8c884b44371784805e1e0d3100da403dd3f1Automatic Updater < Makefile > Makefile+
e8fc8c884b44371784805e1e0d3100da403dd3f1Automatic Updater $(RM) Makefile
e8fc8c884b44371784805e1e0d3100da403dd3f1Automatic Updater $(MV) Makefile+ Makefile
e8fc8c884b44371784805e1e0d3100da403dd3f1Automatic Updater $(CHMOD) 444 Makefile
e8fc8c884b44371784805e1e0d3100da403dd3f1Automatic Updater# EXPORT DELETE END
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updater