Makefile revision 40537fcc1df6140a9b2be4f959647726f94d43e7
3b4098640dd85040270f39b9a5ee5e22de99d3d6Mark Andrews# CDDL HEADER START
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# The contents of this file are subject to the terms of the
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Common Development and Distribution License (the "License").
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# You may not use this file except in compliance with the License.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# See the License for the specific language governing permissions
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# and limitations under the License.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# When distributing Covered Code, include this CDDL HEADER in each
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If applicable, add the following below this CDDL HEADER, with the
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# fields enclosed by brackets "[]" replaced with your own identifying
f051d76c87e055c6ea3879e0c97a76609df915ccMark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# CDDL HEADER END
cedb0bd0c1e3c461b7e479a16d3adfd5b150f1f4Mark Andrews# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Use is subject to license terms.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# ident "%Z%%M% %I% %E% SMI"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# EXPORT DELETE START
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# EXPORT DELETE END
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinPROG= 6to4relay arp gettable if_mpadm ikeadm ikecert \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein in.comsat in.fingerd in.rarpd in.rexecd in.rlogind \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein in.rshd in.rwhod in.telnetd in.tftpd ipaddrsel \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein ipsecalgs ipsecconf ipseckey ndd $(SYNCPROG) $(DHCPPROG) \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinMANIFEST= rarp.xml telnet.xml comsat.xml finger.xml \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinAUDITPROG= in.rexecd in.rlogind in.rshd in.telnetd
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinSOCKETPROG= 6to4relay arp gettable hostconfig if_mpadm in.comsat \
3b4098640dd85040270f39b9a5ee5e22de99d3d6Mark Andrews in.fingerd in.rarpd in.rexecd in.rlogind in.rshd \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinNSLPROG= 6to4relay arp gettable hostconfig ikeadm in.comsat in.rarpd \
3b4098640dd85040270f39b9a5ee5e22de99d3d6Mark Andrews in.rexecd in.rlogind in.rshd in.rwhod in.telnetd \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein in.tftpd ipaddrsel ipsecalgs ipsecconf ipseckey route
3b4098640dd85040270f39b9a5ee5e22de99d3d6Mark AndrewsIPSECUTILPROG= ikeadm ipsecalgs ipsecconf ipseckey
7329012471d165cd3dc4180ad2a0a43de91e7f01Mark AndrewsSUBDIRS= bootconfchk htable ifconfig in.ftpd in.rdisc in.routed \
7329012471d165cd3dc4180ad2a0a43de91e7f01Mark Andrews in.talkd inetadm inetconv ipqosconf kssl/kssladm \
7329012471d165cd3dc4180ad2a0a43de91e7f01Mark Andrews kssl/ksslcfg mipagentconfig mipagentstat ping routeadm \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinMSGSUBDIRS= bootconfchk htable ifconfig in.ftpd in.routed in.talkd \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein inetadm inetconv ipqosconf kssl/ksslcfg mipagentconfig \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# As programs get lint-clean, add them here and to the 'lint' target.
f051d76c87e055c6ea3879e0c97a76609df915ccMark Andrews# Eventually this hack should go away, and all in PROG should be
f051d76c87e055c6ea3879e0c97a76609df915ccMark Andrews# lint-clean.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinLINTCLEAN= 6to4relay arp ikeadm in.rlogind in.rshd in.telnetd in.tftpd \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Likewise, as subdirs get lint-clean, add them here. Once
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# they're all clean, replace the dependency of the lint target
f051d76c87e055c6ea3879e0c97a76609df915ccMark Andrews# with SUBDIRS. Also (sigh) deal with the commented-out build lines
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# for the lint rule.
f051d76c87e055c6ea3879e0c97a76609df915ccMark AndrewsLINTSUBDIRS= bootconfchk in.rdisc in.routed in.talkd inetadm inetconv \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein ipqosconf mipagentstat ping routeadm sppptun traceroute \
f051d76c87e055c6ea3879e0c97a76609df915ccMark Andrews# And as programs are verified not to attempt to write into constants,
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# -xstrconst should be used to ensure they stay that way.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinROOTUSRSBINLINKS = $(SBINLINKS:%=$(ROOTUSRSBIN)/%)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMMONSRCS= $(COMMONOBJS:%.o=$(CMDINETCOMMONDIR)/%.c)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Message catalog
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinPOFILES= 6to4relay.po if_mpadm.po ikeadm.po in.comsat.po ipaddrsel.po \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLEANFILES += $(COMMONOBJS) $(K5RLOGINOBJS) $(K5RSHDOBJS) $(TFTPDOBJS)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCPPFLAGS += -DSYSV -DBSD_COMP -I$(CMDINETCOMMONDIR) -I
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeininclude $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Eventually just plain CFLAGS should be += -v, but not until all in
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# PROGS are lint clean.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein$(K5PROGS) := LDFLAGS += $(ZLAZYLOAD) $(KRUNPATH) \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein$(TSNETPROG) := LDLIBS += $(ZLAZYLOAD) -ltsnet $(ZNOLAZYLOAD)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# message catalog
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(LINK.c) $(K5RLOGINOBJS) $(COMMONOBJS) -o $@ $(LDLIBS)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(LINK.c) $(K5RSHDOBJS) $(COMMONOBJS) -o $@ $(LDLIBS)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeininstall: $(PROG) $(ROOTFS_PROG) $(SUBDIRS) .WAIT $(ROOTUSRSBINPROG) \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(ROOTSBINPROG) $(ROOTUSRSBINLINKS) $(ROOTETCDEFAULTFILES) \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# The reason this rule checks for the existence of the
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Makefile is that some of the directories do not exist
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# in our exportable source builds.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein @if [ -f $@/Makefile ]; then \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein @# $(LINT.c) in.rexecd.c $(LDLIBS) -lbsm -lpam
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(LINT.c) -erroff=E_NAME_USED_NOT_DEF2 -erroff=E_NAME_DEF_NOT_USED2 \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein in.rlogind.c $(COMMONSRCS) $(LDLIBS) -lbsm -lpam -lsocket -lnsl
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(LINT.c) -erroff=E_NAME_USED_NOT_DEF2 -erroff=E_NAME_DEF_NOT_USED2 \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein in.rshd.c $(COMMONSRCS) $(LDLIBS) -lbsm -lpam -lsocket -lnsl
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein in.telnetd.c $(LDLIBS) -lbsm -lpam -lsocket -lnsl
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(LINT.c) if_mpadm.c $(LDLIBS) -lsocket -lnsl -lipmp
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(LINT.c) ipsecalgs.c $(LDLIBS) -lsocket -lnsl -lipsecutil
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(LINT.c) ipsecconf.c $(LDLIBS) -lsocket -lnsl -lipsecutil
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(LINT.c) ipseckey.c $(LDLIBS) -lsocket -lnsl -lipsecutil
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(LINT.c) route.c $(LDLIBS) -lsocket -lnsl -ltsnet
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(LINT.c) -erroff=E_NAME_USED_NOT_DEF2 in.rarpd.c $(LDLIBS) \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(LINT.c) in.tftpd.c ../usr.bin/tftp/tftpsubs.c $(LDLIBS) \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# EXPORT DELETE START
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# EXPORT DELETE END