Makefile revision 5c0b7edee9bd9fad49038456b16972ff28fa4187
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# CDDL HEADER START
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.
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.
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]
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# CDDL HEADER END
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
e171a4137c6ba348957e61b7c4c3541493c0da02Automatic Updater# Use is subject to license terms.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# ident "%Z%%M% %I% %E% SMI"
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# EXPORT DELETE START
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# EXPORT DELETE END
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt in.comsat in.fingerd in.rarpd in.rexecd in.rlogind \
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater in.rshd in.rwhod in.telnetd in.tftpd ipaddrsel \
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterMANIFEST= rarp.xml telnet.xml comsat.xml finger.xml \
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 \
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
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsMSGSUBDIRS= bootconfchk htable ifconfig in.ftpd in.routed in.talkd inetadm \
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater inetconv ipqosconf kssl/ksslcfg routeadm sppptun snoop \
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
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonLINTCLEAN= 6to4relay arp in.rlogind in.rshd in.telnetd in.tftpd \
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.
8ccd7da886e93cd490fcb6f4c4e98a6514f35820Automatic UpdaterROOTSBINPROG = $(ROOTFS_PROG:%=$(ROOTSBIN)/%)
2a31bd531072824ef252c18303859d6af7451b00Francis DupontROOTUSRSBINLINKS = $(SBINLINKS:%=$(ROOTUSRSBIN)/%)
a308b69ac66fadf66863484f301314d6e6a3f1d2Automatic UpdaterCOMMONSRCS= $(COMMONOBJS:%.o=$(CMDINETCOMMONDIR)/%.c)
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater# Message catalog
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark AndrewsPOFILES= 6to4relay.po if_mpadm.po in.comsat.po ipaddrsel.po route.po
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic UpdaterCLEANFILES += $(COMMONOBJS) $(K5RLOGINOBJS) $(K5RSHDOBJS) $(TFTPDOBJS)
fe80a4909bf62b602feaf246866e9d29f7654194Automatic UpdaterCPPFLAGS += -DSYSV -DBSD_COMP -I$(CMDINETCOMMONDIR) -I
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updaterinclude $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# Eventually just plain CFLAGS should be += -v, but not until all in
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# PROGS are lint clean.
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater$(K5PROGS) := LDFLAGS += $(ZLAZYLOAD) $(KRUNPATH) \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson -L$(ROOT)$(KLIBDIR_DO) -L$(ROOT)$(KLIBDIR_GL)
229ea4644b3a7d9c7fdaa43888e7f55ba01e2ee3Automatic Updater -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
0ce87e5749aabb8eef1e0a37e4bd6e6ffa1d7196Automatic Updater -I$(SRC)/lib/gss_mechs/mech_krb5/include \
765c97d56ccddc9d7904c7d9ff2e2d825d9687e4Automatic Updater$(TSNETPROG) := LDLIBS += $(ZLAZYLOAD) -ltsnet $(ZNOLAZYLOAD)
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updatergettable in.comsat := LDFLAGS += $(MAPFILE.NGB:%=-M%)
da82e232161d67b77df2d67898bdac693f647be1Automatic Updaterall: $(PROG) $(ROOTFS_PROG) $(SUBDIRS) THIRDPARTYLICENSE.arp
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# message catalog
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater $(LINK.c) $(K5RLOGINOBJS) $(COMMONOBJS) -o $@ $(LDLIBS)
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater $(LINK.c) $(K5RSHDOBJS) $(COMMONOBJS) -o $@ $(LDLIBS)
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updaterinstall: $(PROG) $(ROOTFS_PROG) $(SUBDIRS) .WAIT $(ROOTUSRSBINPROG) \
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updater $(ROOTSBINPROG) $(ROOTUSRSBINLINKS) $(ROOTETCDEFAULTFILES) \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews $(SED) -n '/University of California/,/SUCH DAMAGE/p' arp.c > $@
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.
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater @if [ -f $@/Makefile ]; then \
8711e5c73ca872d59810760af0332194cbdd619bAutomatic Updater $(LINT.c) 6to4relay.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 \
572cb2c1c931f6bc6a4a019c103ae88239b0eb96Automatic Updater -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
7858b0168b866c0c2878fc4ea31fb5e581c1a6a9Automatic Updater -I$(SRC)/lib/gss_mechs/mech_krb5/include \
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 \
56e7dc0c24b04210dcbffb180a9e35644fb820daAutomatic Updater -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updater -I$(SRC)/lib/gss_mechs/mech_krb5/include \
0b57424d28c9a67018107133f9fbc0a7dcf057e2Mark Andrews in.rshd.c $(COMMONSRCS) $(LDLIBS) -lbsm -lpam -lsocket -lnsl
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
b109432c3a939bff66a463be86c371bd88efe3aaAutomatic Updater -I$(SRC)/lib/gss_mechs/mech_krb5/include \
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews in.telnetd.c $(LDLIBS) -lbsm -lpam -lsocket -lnsl
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews $(LINT.c) if_mpadm.c $(LDLIBS) -lsocket -lnsl -lipmp
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updater $(LINT.c) route.c $(LDLIBS) -lsocket -lnsl -ltsnet
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updater $(LINT.c) -erroff=E_NAME_USED_NOT_DEF2 in.rarpd.c $(LDLIBS) \
0b57424d28c9a67018107133f9fbc0a7dcf057e2Mark Andrews $(LINT.c) in.tftpd.c ../usr.bin/tftp/tftpsubs.c $(LDLIBS) \
e8fc8c884b44371784805e1e0d3100da403dd3f1Automatic Updater# EXPORT DELETE START
e8fc8c884b44371784805e1e0d3100da403dd3f1Automatic Updater sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
e8fc8c884b44371784805e1e0d3100da403dd3f1Automatic Updater# EXPORT DELETE END