Makefile revision c28749e97052f09388969427adf7df641cdcdc22
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# CDDL HEADER START
3e14f97f673e8a630f076077de35afdd43dc1587Roger A. Faulkner# The contents of this file are subject to the terms of the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Common Development and Distribution License, Version 1.0 only
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# (the "License"). You may not use this file except in compliance
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin# with the License.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# See the License for the specific language governing permissions
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# and limitations under the License.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# When distributing Covered Code, include this CDDL HEADER in each
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# If applicable, add the following below this CDDL HEADER, with the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# fields enclosed by brackets "[]" replaced with your own identifying
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# information: Portions Copyright [yyyy] [name of copyright owner]
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# CDDL HEADER END
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Use is subject to license terms.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# ident "%Z%%M% %I% %E% SMI"
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# EXPORT DELETE START
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# EXPORT DELETE END
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin in.comsat in.fingerd in.rarpd in.rdisc in.rexecd in.rlogind \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin in.rshd in.rwhod in.telnetd in.tftpd in.tnamed ipaddrsel \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin ipsecalgs ipsecconf ipseckey ndd $(SYNCPROG) $(DHCPPROG) \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinSOCKETPROG= 6to4relay arp gettable hostconfig if_mpadm in.comsat \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin in.fingerd in.rarpd in.rdisc in.rexecd in.rlogind in.rshd \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinNSLPROG= 6to4relay arp gettable hostconfig ikeadm in.comsat in.rarpd \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin in.rdisc in.rexecd in.rlogind in.rshd in.rwhod in.telnetd \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin in.tftpd in.tnamed ipaddrsel ipsecalgs ipsecconf ipseckey route
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinSUBDIRS= bootconfchk htable ifconfig in.ftpd in.routed \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinMSGSUBDIRS= bootconfchk htable ifconfig in.ftpd in.routed in.talkd \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin inetadm inetconv ipqosconf kssl/ksslcfg mipagentconfig \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# As programs get lint-clean, add them here and to the 'lint' target.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Eventually this hack should go away, and all in PROG should be
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# lint-clean.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinLINTCLEAN= 6to4relay arp ikeadm in.rlogind in.rshd in.telnetd in.tftpd \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin ipaddrsel ipsecalgs ipseckey ipsecconf route routeadm \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Likewise, as subdirs get lint-clean, add them here. Once
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# they're all clean, replace the dependency of the lint target
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# with SUBDIRS. Also (sigh) deal with the commented-out build lines
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# for the lint rule.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinLINTSUBDIRS= bootconfchk in.routed in.talkd inetadm inetconv ipqosconf \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# And as programs are verified not to attempt to write into constants,
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# -xstrconst should be used to ensure they stay that way.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Message catalog
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinPOFILES= 6to4relay.po if_mpadm.po ikeadm.po in.comsat.po ipaddrsel.po \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin ipsecalgs.po ipsecconf.po ipseckey.po route.po routeadm.po
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCLEANFILES += $(COMMONOBJS) $(K5RLOGINOBJS) $(K5RSHDOBJS) $(TFTPDOBJS)
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chininclude $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Eventually just plain CFLAGS should be += -v, but not until all in
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# PROGS are lint clean.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# message catalog
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(LINK.c) $(K5RLOGINOBJS) $(COMMONOBJS) -o $@ $(LDLIBS)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chininstall: $(PROG) $(ROOTFS_PROG) $(SUBDIRS) .WAIT $(ROOTUSRSBINPROG) \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(ROOTSBINPROG) $(ROOTUSRSBINLINKS) $(ROOTETCDEFAULTFILES) \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# The reason this rule checks for the existence of the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Makefile is that some of the directories do not exist
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# in our exportable source builds.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin @if [ -f $@/Makefile ]; then \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin @# $(LINT.c) in.rexecd.c $(LDLIBS) -lbsm -lpam
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(LINT.c) -erroff=E_NAME_USED_NOT_DEF2 -erroff=E_NAME_DEF_NOT_USED2 \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin in.rlogind.c $(COMMONSRCS) $(LDLIBS) -lbsm -lpam -lsocket -lnsl
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(LINT.c) -erroff=E_NAME_USED_NOT_DEF2 -erroff=E_NAME_DEF_NOT_USED2 \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin in.rshd.c $(COMMONSRCS) $(LDLIBS) -lbsm -lpam -lsocket -lnsl
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(LINT.c) ipsecalgs.c $(LDLIBS) -lsocket -lnsl -lipsecutil
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(LINT.c) ipsecconf.c $(LDLIBS) -lsocket -lnsl -lipsecutil
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(LINT.c) ipseckey.c $(LDLIBS) -lsocket -lnsl -lipsecutil
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(LINT.c) -erroff=E_NAME_USED_NOT_DEF2 in.rarpd.c $(LDLIBS) \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(LINT.c) in.tftpd.c ../usr.bin/tftp/tftpsubs.c $(LDLIBS) \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# EXPORT DELETE START
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# EXPORT DELETE END