Makefile revision 4e762ae71a675489e308ef67b9c4f35fa31042da
849N/A#
661N/A# CDDL HEADER START
661N/A#
661N/A# The contents of this file are subject to the terms of the
661N/A# Common Development and Distribution License (the "License").
661N/A# You may not use this file except in compliance with the License.
661N/A#
661N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
661N/A# or http://www.opensolaris.org/os/licensing.
661N/A# See the License for the specific language governing permissions
661N/A# and limitations under the License.
661N/A#
661N/A# When distributing Covered Code, include this CDDL HEADER in each
661N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
661N/A# If applicable, add the following below this CDDL HEADER, with the
661N/A# fields enclosed by brackets "[]" replaced with your own identifying
661N/A# information: Portions Copyright [yyyy] [name of copyright owner]
661N/A#
661N/A# CDDL HEADER END
661N/A#
661N/A
1902N/A#
1902N/A# Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
661N/A#
661N/A
661N/ASYNCPROG= syncinit syncloop syncstat
661N/ADHCPPROG= dhcpconfig dhtadm pntadm
661N/A
812N/APROG= 6to4relay arp gettable if_mpadm \
661N/A in.comsat in.fingerd in.rarpd in.rexecd in.rlogind \
661N/A in.rshd in.rwhod in.telnetd in.tftpd ipaddrsel \
661N/A ndd $(SYNCPROG) $(DHCPPROG) wanbootutil
661N/A
661N/AMANIFEST= rarp.xml telnet.xml comsat.xml finger.xml \
661N/A login.xml shell.xml rexec.xml socket-filter-kssl.xml
661N/ASVCMETHOD= svc-sockfilter
661N/A
661N/AROOTFS_PROG= hostconfig route soconfig
661N/ASBINLINKS= hostconfig route
661N/A
661N/ARPCSVCPROG= hostconfig
661N/AAUDITPROG= in.rexecd in.rlogind in.rshd in.telnetd
661N/APAMPROG= in.rexecd in.rlogind in.rshd in.telnetd
661N/ASOCKETPROG= 6to4relay arp gettable hostconfig if_mpadm in.comsat \
661N/A in.fingerd in.rarpd in.rexecd in.rlogind in.rshd \
661N/A in.rwhod in.telnetd in.tftpd ipaddrsel route
661N/ANSLPROG= 6to4relay arp gettable hostconfig in.comsat in.rarpd \
661N/A in.rexecd in.rlogind in.rshd in.rwhod in.telnetd \
1902N/A in.tftpd ipaddrsel route
1902N/ACMDPROG= in.telnetd
1902N/AK5PROGS= in.telnetd in.rlogind in.rshd
1475N/ATSNETPROG= route
858N/ADLADMPROG= 6to4relay
1902N/ADEFAULTFILES= telnetd.dfl
1902N/A
1902N/APROGSRCS= $(PROG:%=%.c)
661N/ATFTPDOBJS= in.tftpd.o tftpsubs.o
661N/AOTHERSRC= ../usr.bin/tftp/tftpsubs.c
661N/AK5RLOGINOBJS= in.rlogind.o
661N/AK5RSHDOBJS= in.rshd.o
1518N/AK5TELNETOBJS= in.telnetd.o
1518N/ASRCS= $(PROGSRCS) $(OTHERSRC)
1518N/A
1518N/ASUBDIRS= bootconfchk htable ifconfig ilbadm in.rdisc in.routed \
1518N/A in.talkd inetadm inetconv ipadm ipmpstat ipqosconf ipsecutils \
1518N/A kssl/kssladm kssl/ksslcfg nwamadm nwamcfg ping routeadm \
1518N/A snoop sppptun traceroute wificonfig
1518N/A
1518N/AMSGSUBDIRS= bootconfchk htable ifconfig ilbadm in.routed in.talkd \
1518N/A inetadm inetconv ipadm ipmpstat ipqosconf ipsecutils \
1518N/A kssl/ksslcfg nwamadm nwamcfg routeadm sppptun snoop wificonfig
1518N/A
1518N/A# As programs get lint-clean, add them here and to the 'lint' target.
1518N/A# Eventually this hack should go away, and all in PROG should be
1518N/A# lint-clean.
1518N/ALINTCLEAN= 6to4relay arp in.rlogind in.rshd in.telnetd in.tftpd \
1527N/A ipaddrsel route \
1527N/A in.rarpd if_mpadm $(SYNCPROG)
1527N/A# Likewise, as subdirs get lint-clean, add them here. Once
1527N/A# they're all clean, replace the dependency of the lint target
1527N/A# with SUBDIRS. Also (sigh) deal with the commented-out build lines
1527N/A# for the lint rule.
1527N/ALINTSUBDIRS= bootconfchk ilbadm in.rdisc in.routed in.talkd inetadm \
1527N/A inetconv ipmpstat ipqosconf ipsecutils kssl/kssladm \
1527N/A kssl/ksslcfg nwamadm nwamcfg ping routeadm sppptun traceroute \
1527N/A wificonfig
1527N/A# And as programs are verified not to attempt to write into constants,
1527N/A# -xstrconst should be used to ensure they stay that way.
1518N/ACONSTCLEAN=
1518N/A
661N/Ainclude ../../Makefile.cmd
661N/AROOTMANIFESTDIR= $(ROOTSVCNETWORK)
661N/A$(ROOTMANIFEST) := FILEMODE= 444
661N/Ainclude ../Makefile.cmd-inet
849N/A
849N/AROOTSBINPROG = $(ROOTFS_PROG:%=$(ROOTSBIN)/%)
849N/AROOTUSRSBINLINKS = $(SBINLINKS:%=$(ROOTUSRSBIN)/%)
849N/A
849N/ACOMMONOBJS= addr_match.o kcmd.o store_forw_creds.o
849N/ACOMMONSRCS= $(COMMONOBJS:%.o=$(CMDINETCOMMONDIR)/%.c)
849N/ASRCS+= $(COMMONSRCS)
849N/A
849N/ACERRWARN += -_gcc=-Wno-implicit-function-declaration
849N/ACERRWARN += -_gcc=-Wno-uninitialized
849N/ACERRWARN += -_gcc=-Wno-unused-variable
661N/ACERRWARN += -_gcc=-Wno-unused-function
661N/ACERRWARN += -_gcc=-Wno-parentheses
661N/ACERRWARN += -_gcc=-Wno-char-subscripts
858N/ACERRWARN += -_gcc=-Wno-extra
812N/ACERRWARN += -_gcc=-Wno-address
661N/A
661N/A#
849N/A# Message catalog
849N/A#
849N/APOFILES= 6to4relay.po if_mpadm.po in.comsat.po ipaddrsel.po route.po \
849N/A soconfig.po
849N/APOFILE= usr.sbin.po
849N/A
849N/Aall:= TARGET= all
849N/Ainstall:= TARGET= install
849N/Aclean:= TARGET= clean
849N/Aclobber:= TARGET= clobber
849N/Alint:= TARGET= lint
849N/A_msg:= TARGET= _msg
661N/A
661N/ACLOBBERFILES += $(ROOTFS_PROG) $(PROG)
661N/ACLEANFILES += $(COMMONOBJS) $(K5RLOGINOBJS) $(K5RSHDOBJS) $(TFTPDOBJS) \
858N/A $(K5TELNETOBJS)
812N/A
661N/ACPPFLAGS += -DSYSV -DBSD_COMP -I$(CMDINETCOMMONDIR) -I
661N/A
849N/Ainclude $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
849N/AK5LIBS=
849N/A
849N/A# Eventually just plain CFLAGS should be += -v, but not until all in
849N/A# PROGS are lint clean.
849N/A$(LINTCLEAN) := CFLAGS += $(CCVERBOSE)
1518N/A$(CONSTCLEAN) := CFLAGS += $(XSTRCONST)
1518N/A
1518N/A$(SYNCPROG) := LDLIBS += -ldlpi
1518N/A$(SOCKETPROG) := LDLIBS += -lsocket
1518N/A$(NSLPROG) := LDLIBS += -lnsl
1518N/A$(AUDITPROG) := LDLIBS += -lbsm
1518N/A$(PAMPROG) := LDLIBS += -lpam
1518N/A$(RPCSVCPROG) := LDLIBS += -lrpcsvc
1518N/A$(K5PROGS) := LDFLAGS += $(KRUNPATH) \
849N/A -L$(ROOT)$(KLIBDIR_DO) -L$(ROOT)$(KLIBDIR_GL)
849N/A$(K5PROGS) := K5LIBS= -lmech_krb5
849N/A$(K5PROGS) := CPPFLAGS += -I$(SRC)/head \
849N/A -I$(SRC)/uts/common/ \
849N/A -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
849N/A -I$(SRC)/lib/gss_mechs/mech_krb5/include \
849N/A -I$(SRC)/lib/pam_modules/krb5
849N/ALDLIBS += $(K5LIBS)
661N/A$(TSNETPROG) := LDLIBS += -ltsnet
661N/A$(DLADMPROG) := LDLIBS += -ldladm
719N/A
812N/Ain.rarpd := LDLIBS += -linetutil -ldlpi
812N/Aif_mpadm := LDLIBS += -linetutil -lipmp
812N/Aif_mpadm.po := XGETFLAGS += -a
849N/Aroute := CPPFLAGS += -DNDEBUG
849N/Andd := LDLIBS += -ldladm -lipadm
849N/Agettable in.comsat := LDFLAGS += $(MAPFILE.NGB:%=-M%)
849N/A
849N/A.KEEP_STATE:
849N/A
849N/A.PARALLEL:
849N/A
981N/Aall: $(PROG) $(ROOTFS_PROG) $(SUBDIRS) THIRDPARTYLICENSE.arp
975N/A
975N/A#
975N/A# message catalog
812N/A#
812N/A_msg: $(MSGSUBDIRS) $(POFILE)
812N/A
812N/Asyncutil: $(SYNCPROG)
719N/A
719N/A$(POFILE): $(POFILES)
812N/A $(RM) $@
849N/A cat $(POFILES) > $@
849N/A
719N/A%.o: $(CMDINETCOMMONDIR)/%.c
719N/A $(COMPILE.c) -o $@ $<
719N/A
719N/Ain.telnetd: $(K5TELNETOBJS)
719N/A $(LINK.c) $(K5TELNETOBJS) -o $@ $(LDLIBS)
719N/A $(POST_PROCESS)
719N/A
719N/Ain.rlogind: $(K5RLOGINOBJS) $(COMMONOBJS)
719N/A $(LINK.c) $(K5RLOGINOBJS) $(COMMONOBJS) -o $@ $(LDLIBS)
719N/A $(POST_PROCESS)
849N/A
849N/Ain.rshd: $(K5RSHDOBJS) $(COMMONOBJS)
719N/A $(LINK.c) $(K5RSHDOBJS) $(COMMONOBJS) -o $@ $(LDLIBS)
719N/A $(POST_PROCESS)
719N/A
719N/Ain.tftpd: $(TFTPDOBJS)
719N/A $(LINK.c) $(TFTPDOBJS) -o $@ $(LDLIBS)
719N/A $(POST_PROCESS)
719N/A
661N/Atftpsubs.o: $(OTHERSRC)
1518N/A $(COMPILE.c) $(OTHERSRC) -o $@
661N/A $(POST_PROCESS_O)
661N/A
661N/A$(ROOTUSRSBINLINKS):
661N/A -$(RM) $@; $(SYMLINK) ../../sbin/$(@F) $@
661N/A
661N/Ainstall: $(PROG) $(ROOTFS_PROG) $(SUBDIRS) .WAIT $(ROOTUSRSBINPROG) \
661N/A $(ROOTSBINPROG) $(ROOTUSRSBINLINKS) $(ROOTETCDEFAULTFILES) \
775N/A $(ROOTMANIFEST) $(ROOTSVCMETHOD) THIRDPARTYLICENSE.arp
775N/A
775N/ATHIRDPARTYLICENSE.arp: arp.c
775N/A $(SED) -n '/University of California/,/SUCH DAMAGE/p' arp.c > $@
775N/A
775N/ACLOBBERFILES += THIRDPARTYLICENSE.arp
775N/A
775N/A#
775N/A# The reason this rule checks for the existence of the
849N/A# Makefile is that some of the directories do not exist
849N/A# in our exportable source builds.
849N/A#
775N/A$(SUBDIRS): FRC
775N/A @if [ -f $@/Makefile ]; then \
775N/A cd $@; pwd; $(MAKE) $(TARGET); \
775N/A else \
775N/A true; \
775N/A fi
775N/A
775N/AFRC:
775N/A
775N/Acheck: $(CHKMANIFEST)
775N/A
775N/Aclean: $(SUBDIRS) clean_local
849N/Aclean_local:
849N/A $(RM) $(CLEANFILES)
849N/A
849N/Aclobber: $(SUBDIRS) clobber_local
849N/Aclobber_local: clean_local
849N/A $(RM) $(CLOBBERFILES)
849N/A
849N/Alint: $(LINTSUBDIRS)
849N/A $(LINT.c) 6to4relay.c $(LDLIBS) -lsocket -ldladm
849N/A $(LINT.c) arp.c $(LDLIBS) -lsocket -lnsl
849N/A @# $(LINT.c) in.rexecd.c $(LDLIBS) -lbsm -lpam
849N/A $(LINT.c) -erroff=E_NAME_USED_NOT_DEF2 -erroff=E_NAME_DEF_NOT_USED2 \
849N/A -I$(SRC)/head -I$(SRC)/uts/common/ \
849N/A -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
775N/A -I$(SRC)/lib/gss_mechs/mech_krb5/include \
775N/A -I$(SRC)/lib/pam_modules/krb5 \
849N/A in.rlogind.c $(COMMONSRCS) $(LDLIBS) -lbsm -lpam -lsocket -lnsl
849N/A $(LINT.c) -erroff=E_NAME_USED_NOT_DEF2 -erroff=E_NAME_DEF_NOT_USED2 \
775N/A -I$(SRC)/head -I$(SRC)/uts/common/ \
775N/A -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
775N/A -I$(SRC)/lib/gss_mechs/mech_krb5/include \
661N/A -I$(SRC)/lib/pam_modules/krb5 \
775N/A in.rshd.c $(COMMONSRCS) $(LDLIBS) -lbsm -lpam -lsocket -lnsl
661N/A $(LINT.c) -erroff=E_NAME_USED_NOT_DEF2 \
661N/A -erroff=E_GLOBAL_COULD_BE_STATIC2 \
661N/A -I$(SRC)/head -I$(SRC)/uts/common/ \
661N/A -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
661N/A -I$(SRC)/lib/gss_mechs/mech_krb5/include \
-I$(SRC)/lib/pam_modules/krb5 \
in.telnetd.c $(LDLIBS) -lbsm -lpam -lsocket -lnsl
$(LINT.c) if_mpadm.c $(LDLIBS) -lsocket -lnsl -lipmp -linetutil
$(LINT.c) ipaddrsel.c $(LDLIBS) -lsocket -lnsl
$(LINT.c) route.c $(LDLIBS) -lsocket -lnsl -ltsnet
$(LINT.c) syncinit.c $(LDLIBS) -ldlpi
$(LINT.c) syncloop.c $(LDLIBS) -ldlpi
$(LINT.c) syncstat.c $(LDLIBS) -ldlpi
$(LINT.c) -erroff=E_NAME_USED_NOT_DEF2 in.rarpd.c $(LDLIBS) \
-lsocket -lnsl
$(LINT.c) in.tftpd.c ../usr.bin/tftp/tftpsubs.c $(LDLIBS) \
-lsocket -lnsl