Makefile revision 6e91bba0d6c6bdabbba62cefae583715a4a58e2a
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# CDDL HEADER START
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# The contents of this file are subject to the terms of the
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# Common Development and Distribution License (the "License").
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# You may not use this file except in compliance with the License.
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# See the License for the specific language governing permissions
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# and limitations under the License.
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# When distributing Covered Code, include this CDDL HEADER in each
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# If applicable, add the following below this CDDL HEADER, with the
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# fields enclosed by brackets "[]" replaced with your own identifying
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# CDDL HEADER END
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# Use is subject to license terms.
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# EXPORT DELETE START
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# EXPORT DELETE END
f78b12e570284aa8291f4ca1add24937fd107403vboxsync in.comsat in.fingerd in.rarpd in.rexecd in.rlogind \
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncMANIFEST= rarp.xml telnet.xml comsat.xml finger.xml \
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncSOCKETPROG= 6to4relay arp gettable hostconfig if_mpadm in.comsat \
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncNSLPROG= 6to4relay arp gettable hostconfig in.comsat in.rarpd \
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncSUBDIRS= bootconfchk htable ifconfig ilbadm in.ftpd in.rdisc in.routed \
f78b12e570284aa8291f4ca1add24937fd107403vboxsync in.talkd inetadm inetconv ipadm ipmpstat ipqosconf ipsecutils \
f78b12e570284aa8291f4ca1add24937fd107403vboxsync kssl/kssladm kssl/ksslcfg nwamadm nwamcfg ping routeadm \
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncMSGSUBDIRS= bootconfchk htable ifconfig ilbadm in.ftpd in.routed in.talkd \
f78b12e570284aa8291f4ca1add24937fd107403vboxsync inetadm inetconv ipadm ipmpstat ipqosconf ipsecutils kssl/ksslcfg \
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# As programs get lint-clean, add them here and to the 'lint' target.
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# Eventually this hack should go away, and all in PROG should be
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# lint-clean.
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncLINTCLEAN= 6to4relay arp in.rlogind in.rshd in.telnetd in.tftpd \
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# Likewise, as subdirs get lint-clean, add them here. Once
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# they're all clean, replace the dependency of the lint target
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# with SUBDIRS. Also (sigh) deal with the commented-out build lines
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# for the lint rule.
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncLINTSUBDIRS= bootconfchk ilbadm in.rdisc in.routed in.talkd inetadm \
f78b12e570284aa8291f4ca1add24937fd107403vboxsync inetconv ipmpstat ipqosconf ipsecutils nwamadm nwamcfg ping \
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# And as programs are verified not to attempt to write into constants,
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# -xstrconst should be used to ensure they stay that way.
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncCOMMONSRCS= $(COMMONOBJS:%.o=$(CMDINETCOMMONDIR)/%.c)
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# Message catalog
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncPOFILES= 6to4relay.po if_mpadm.po in.comsat.po ipaddrsel.po route.po
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncCLEANFILES += $(COMMONOBJS) $(K5RLOGINOBJS) $(K5RSHDOBJS) $(TFTPDOBJS)
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncCPPFLAGS += -DSYSV -DBSD_COMP -I$(CMDINETCOMMONDIR) -I
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncinclude $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# Eventually just plain CFLAGS should be += -v, but not until all in
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# PROGS are lint clean.
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncgettable in.comsat := LDFLAGS += $(MAPFILE.NGB:%=-M%)
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncall: $(PROG) $(ROOTFS_PROG) $(SUBDIRS) THIRDPARTYLICENSE.arp
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# message catalog
f78b12e570284aa8291f4ca1add24937fd107403vboxsync $(LINK.c) $(K5RLOGINOBJS) $(COMMONOBJS) -o $@ $(LDLIBS)
f78b12e570284aa8291f4ca1add24937fd107403vboxsync $(LINK.c) $(K5RSHDOBJS) $(COMMONOBJS) -o $@ $(LDLIBS)
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncinstall: $(PROG) $(ROOTFS_PROG) $(SUBDIRS) .WAIT $(ROOTUSRSBINPROG) \
f78b12e570284aa8291f4ca1add24937fd107403vboxsync $(ROOTSBINPROG) $(ROOTUSRSBINLINKS) $(ROOTETCDEFAULTFILES) \
f78b12e570284aa8291f4ca1add24937fd107403vboxsync $(SED) -n '/University of California/,/SUCH DAMAGE/p' arp.c > $@
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# The reason this rule checks for the existence of the
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# Makefile is that some of the directories do not exist
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# in our exportable source builds.
f78b12e570284aa8291f4ca1add24937fd107403vboxsync @if [ -f $@/Makefile ]; then \
f78b12e570284aa8291f4ca1add24937fd107403vboxsync @# $(LINT.c) in.rexecd.c $(LDLIBS) -lbsm -lpam
f78b12e570284aa8291f4ca1add24937fd107403vboxsync $(LINT.c) -erroff=E_NAME_USED_NOT_DEF2 -erroff=E_NAME_DEF_NOT_USED2 \
f78b12e570284aa8291f4ca1add24937fd107403vboxsync in.rlogind.c $(COMMONSRCS) $(LDLIBS) -lbsm -lpam -lsocket -lnsl
f78b12e570284aa8291f4ca1add24937fd107403vboxsync $(LINT.c) -erroff=E_NAME_USED_NOT_DEF2 -erroff=E_NAME_DEF_NOT_USED2 \
f78b12e570284aa8291f4ca1add24937fd107403vboxsync in.rshd.c $(COMMONSRCS) $(LDLIBS) -lbsm -lpam -lsocket -lnsl
f78b12e570284aa8291f4ca1add24937fd107403vboxsync $(LINT.c) if_mpadm.c $(LDLIBS) -lsocket -lnsl -lipmp -linetutil
f78b12e570284aa8291f4ca1add24937fd107403vboxsync $(LINT.c) -erroff=E_NAME_USED_NOT_DEF2 in.rarpd.c $(LDLIBS) \
f78b12e570284aa8291f4ca1add24937fd107403vboxsync $(LINT.c) in.tftpd.c ../usr.bin/tftp/tftpsubs.c $(LDLIBS) \
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# EXPORT DELETE START
f78b12e570284aa8291f4ca1add24937fd107403vboxsync sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# EXPORT DELETE END