Makefile revision 694c35faa87b858ecdadfe4fc592615f4eefbb07
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim# CDDL HEADER START
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim# The contents of this file are subject to the terms of the
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim# Common Development and Distribution License (the "License").
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim# You may not use this file except in compliance with the License.
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim# See the License for the specific language governing permissions
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim# and limitations under the License.
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim# When distributing Covered Code, include this CDDL HEADER in each
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim# If applicable, add the following below this CDDL HEADER, with the
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim# fields enclosed by brackets "[]" replaced with your own identifying
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim# information: Portions Copyright [yyyy] [name of copyright owner]
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim# CDDL HEADER END
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim# Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim in.comsat in.fingerd in.rarpd in.rexecd in.rlogind \
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon KimMANIFEST= rarp.xml telnet.xml comsat.xml finger.xml \
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim login.xml shell.xml rexec.xml socket-filter-kssl.xml
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon KimSOCKETPROG= 6to4relay arp gettable hostconfig if_mpadm in.comsat \
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon KimNSLPROG= 6to4relay arp gettable hostconfig in.comsat in.rarpd \
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon KimSUBDIRS= bootconfchk htable ifconfig ilbadm in.ftpd in.rdisc in.routed \
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim in.talkd inetadm inetconv ipadm ipmpstat ipqosconf ipsecutils \
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim kssl/kssladm kssl/ksslcfg nwamadm nwamcfg ping routeadm \
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon KimMSGSUBDIRS= bootconfchk htable ifconfig ilbadm in.ftpd in.routed in.talkd \
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim inetadm inetconv ipadm ipmpstat ipqosconf ipsecutils \
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim kssl/ksslcfg nwamadm nwamcfg routeadm sppptun snoop wificonfig
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim# As programs get lint-clean, add them here and to the 'lint' target.
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim# Eventually this hack should go away, and all in PROG should be
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim# lint-clean.
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon KimLINTCLEAN= 6to4relay arp in.rlogind in.rshd in.telnetd in.tftpd \
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim# Likewise, as subdirs get lint-clean, add them here. Once
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim# they're all clean, replace the dependency of the lint target
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim# with SUBDIRS. Also (sigh) deal with the commented-out build lines
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim# for the lint rule.
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon KimLINTSUBDIRS= bootconfchk ilbadm in.rdisc in.routed in.talkd inetadm \
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim inetconv ipmpstat ipqosconf ipsecutils kssl/kssladm \
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim kssl/ksslcfg nwamadm nwamcfg ping routeadm sppptun traceroute \
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim# And as programs are verified not to attempt to write into constants,
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim# -xstrconst should be used to ensure they stay that way.
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon KimCOMMONSRCS= $(COMMONOBJS:%.o=$(CMDINETCOMMONDIR)/%.c)
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon KimCERRWARN += -_gcc=-Wno-implicit-function-declaration
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim# Message catalog
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon KimPOFILES= 6to4relay.po if_mpadm.po in.comsat.po ipaddrsel.po route.po \
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon KimCLEANFILES += $(COMMONOBJS) $(K5RLOGINOBJS) $(K5RSHDOBJS) $(TFTPDOBJS)
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon KimCPPFLAGS += -DSYSV -DBSD_COMP -I$(CMDINETCOMMONDIR) -I
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kiminclude $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim# Eventually just plain CFLAGS should be += -v, but not until all in
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim# PROGS are lint clean.
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kimgettable in.comsat := LDFLAGS += $(MAPFILE.NGB:%=-M%)
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kimall: $(PROG) $(ROOTFS_PROG) $(SUBDIRS) THIRDPARTYLICENSE.arp
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim# message catalog
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim $(LINK.c) $(K5RLOGINOBJS) $(COMMONOBJS) -o $@ $(LDLIBS)
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim $(LINK.c) $(K5RSHDOBJS) $(COMMONOBJS) -o $@ $(LDLIBS)
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kiminstall: $(PROG) $(ROOTFS_PROG) $(SUBDIRS) .WAIT $(ROOTUSRSBINPROG) \
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim $(ROOTSBINPROG) $(ROOTUSRSBINLINKS) $(ROOTETCDEFAULTFILES) \
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim $(ROOTMANIFEST) $(ROOTSVCMETHOD) THIRDPARTYLICENSE.arp
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim $(SED) -n '/University of California/,/SUCH DAMAGE/p' arp.c > $@
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim# The reason this rule checks for the existence of the
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim# Makefile is that some of the directories do not exist
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim# in our exportable source builds.
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim @if [ -f $@/Makefile ]; then \
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim @# $(LINT.c) in.rexecd.c $(LDLIBS) -lbsm -lpam
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim $(LINT.c) -erroff=E_NAME_USED_NOT_DEF2 -erroff=E_NAME_DEF_NOT_USED2 \
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim in.rlogind.c $(COMMONSRCS) $(LDLIBS) -lbsm -lpam -lsocket -lnsl
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim $(LINT.c) -erroff=E_NAME_USED_NOT_DEF2 -erroff=E_NAME_DEF_NOT_USED2 \
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim in.rshd.c $(COMMONSRCS) $(LDLIBS) -lbsm -lpam -lsocket -lnsl
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim $(LINT.c) if_mpadm.c $(LDLIBS) -lsocket -lnsl -lipmp -linetutil
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim $(LINT.c) -erroff=E_NAME_USED_NOT_DEF2 in.rarpd.c $(LDLIBS) \