Makefile revision a192e900f6d2b0e1a822e3252c0dfd795ed49d76
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding# CDDL HEADER START
33bdcae1f7a1a65e351dda2a766a0cf28b1e695dnd# The contents of this file are subject to the terms of the
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding# Common Development and Distribution License (the "License").
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# You may not use this file except in compliance with the License.
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# See the License for the specific language governing permissions
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# and limitations under the License.
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# When distributing Covered Code, include this CDDL HEADER in each
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# If applicable, add the following below this CDDL HEADER, with the
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# fields enclosed by brackets "[]" replaced with your own identifying
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# information: Portions Copyright [yyyy] [name of copyright owner]
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding# CDDL HEADER END
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding# Use is subject to license terms.
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# ident "%Z%%M% %I% %E% SMI"
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding# EXPORT DELETE START
64185f9824e42f21ca7b9ae6c004484215c031a7rbb# EXPORT DELETE END
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fieldingPROG= 6to4relay arp gettable if_mpadm ikeadm ikecert \
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding in.comsat in.fingerd in.rarpd in.rexecd in.rlogind \
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding in.rshd in.rwhod in.telnetd in.tftpd in.tnamed ipaddrsel \
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding ipsecalgs ipsecconf ipseckey ndd $(SYNCPROG) $(DHCPPROG) \
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fieldingMANIFEST= rarp.xml telnet.xml comsat.xml finger.xml \
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fieldingSOCKETPROG= 6to4relay arp gettable hostconfig if_mpadm in.comsat \
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fieldingNSLPROG= 6to4relay arp gettable hostconfig ikeadm in.comsat in.rarpd \
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding in.tftpd in.tnamed ipaddrsel ipsecalgs ipsecconf ipseckey route
f6e9f5600e77b78fb013bb543d364135961639d1rbbSUBDIRS= bootconfchk htable ifconfig in.ftpd in.rdisc in.routed \
1b21d7b3d97def358b2e923655edeb16613a1c31gstein kssl/ksslcfg mipagentconfig mipagentstat ping routeadm \
024cd9589e52cf11ce765dfddb5b5f0c6e421a48gsteinMSGSUBDIRS= bootconfchk htable ifconfig in.ftpd in.routed in.talkd \
9625528fcf4fa27288f3be080a1979c8ef60d7dfrbb# As programs get lint-clean, add them here and to the 'lint' target.
47d7b9019e57fbf3eaa4d2b19bbbcce087dd8389rbb# Eventually this hack should go away, and all in PROG should be
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# lint-clean.
0f081398cf0eef8cc7c66a535d450110a92dc8aefieldingLINTCLEAN= 6to4relay arp ikeadm in.rlogind in.rshd in.telnetd in.tftpd \
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# Likewise, as subdirs get lint-clean, add them here. Once
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# they're all clean, replace the dependency of the lint target
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# with SUBDIRS. Also (sigh) deal with the commented-out build lines
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# for the lint rule.
0f081398cf0eef8cc7c66a535d450110a92dc8aefieldingLINTSUBDIRS= bootconfchk in.rdisc in.routed in.talkd inetadm inetconv \
b1476ba063e6d9577cd86db3db5dd98ff6bc78b9rbb ipqosconf mipagentstat ping routeadm sppptun traceroute \
31cd7345e3f8257a89ef1f5ab344fb037c0d941fnd# And as programs are verified not to attempt to write into constants,
d2479dc17d5f6041e472fff5ed39a3a7222e9f51nd# -xstrconst should be used to ensure they stay that way.
82b62539f34e8fa7434a95335c4566441c7b5589nd# Message catalog
31cd7345e3f8257a89ef1f5ab344fb037c0d941fndPOFILES= 6to4relay.po if_mpadm.po ikeadm.po in.comsat.po ipaddrsel.po \
31cd7345e3f8257a89ef1f5ab344fb037c0d941fndCLEANFILES += $(COMMONOBJS) $(K5RLOGINOBJS) $(K5RSHDOBJS) $(TFTPDOBJS)
31cd7345e3f8257a89ef1f5ab344fb037c0d941fnd# Eventually just plain CFLAGS should be += -v, but not until all in
31cd7345e3f8257a89ef1f5ab344fb037c0d941fnd# PROGS are lint clean.
19caef6edbd6a814612c8cd7bd8f437f403df210nd$(TSNETPROG) := LDLIBS += $(ZLAZYLOAD) -ltsnet $(ZNOLAZYLOAD)
360fb449fbdd6f7c75b321c7e1612233e828ce77nd# message catalog
360fb449fbdd6f7c75b321c7e1612233e828ce77nd $(COMPILE.c) -o $@ $<
51be7fc538641ed7cb22e959eb31629f7183f70fianh $(LINK.c) $(K5RLOGINOBJS) $(COMMONOBJS) -o $@ $(LDLIBS)
6c4c113ce85934b11c9e78399e1bb8ec7a568af9ndinstall: $(PROG) $(ROOTFS_PROG) $(SUBDIRS) .WAIT $(ROOTUSRSBINPROG) \
6c4c113ce85934b11c9e78399e1bb8ec7a568af9nd $(ROOTSBINPROG) $(ROOTUSRSBINLINKS) $(ROOTETCDEFAULTFILES) \
6c4c113ce85934b11c9e78399e1bb8ec7a568af9nd# The reason this rule checks for the existence of the
d2479dc17d5f6041e472fff5ed39a3a7222e9f51nd# Makefile is that some of the directories do not exist
d2479dc17d5f6041e472fff5ed39a3a7222e9f51nd# in our exportable source builds.
d2479dc17d5f6041e472fff5ed39a3a7222e9f51nd @if [ -f $@/Makefile ]; then \
31cd7345e3f8257a89ef1f5ab344fb037c0d941fnd @# $(LINT.c) in.rexecd.c $(LDLIBS) -lbsm -lpam
6c4c113ce85934b11c9e78399e1bb8ec7a568af9nd $(LINT.c) -erroff=E_NAME_USED_NOT_DEF2 -erroff=E_NAME_DEF_NOT_USED2 \
31cd7345e3f8257a89ef1f5ab344fb037c0d941fnd in.rlogind.c $(COMMONSRCS) $(LDLIBS) -lbsm -lpam -lsocket -lnsl
31cd7345e3f8257a89ef1f5ab344fb037c0d941fnd $(LINT.c) -erroff=E_NAME_USED_NOT_DEF2 -erroff=E_NAME_DEF_NOT_USED2 \
d2479dc17d5f6041e472fff5ed39a3a7222e9f51nd in.rshd.c $(COMMONSRCS) $(LDLIBS) -lbsm -lpam -lsocket -lnsl
82b62539f34e8fa7434a95335c4566441c7b5589nd $(LINT.c) ipsecalgs.c $(LDLIBS) -lsocket -lnsl -lipsecutil
82b62539f34e8fa7434a95335c4566441c7b5589nd $(LINT.c) ipsecconf.c $(LDLIBS) -lsocket -lnsl -lipsecutil
82b62539f34e8fa7434a95335c4566441c7b5589nd $(LINT.c) ipseckey.c $(LDLIBS) -lsocket -lnsl -lipsecutil
82b62539f34e8fa7434a95335c4566441c7b5589nd $(LINT.c) -erroff=E_NAME_USED_NOT_DEF2 in.rarpd.c $(LDLIBS) \
82b62539f34e8fa7434a95335c4566441c7b5589nd $(LINT.c) in.tftpd.c ../usr.bin/tftp/tftpsubs.c $(LDLIBS) \
82b62539f34e8fa7434a95335c4566441c7b5589nd# EXPORT DELETE START
82b62539f34e8fa7434a95335c4566441c7b5589nd sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
d2479dc17d5f6041e472fff5ed39a3a7222e9f51nd# EXPORT DELETE END