annotate usr/src/cmd/cmd-inet/usr.sbin/Makefile @ 12016:0248e987199b

PSARC 2009/306 Brussels II - ipadm and libipadm PSARC 2010/080 Brussels II addendum 6827318 Brussels Phase II aka ipadm(1m) 6731945 need BSD getifaddrs() API 6909065 explicitly disallow non-contiguous netmasks in the next minor release 6853922 ifconfig dumps core when ether address is non-hexadecimal. 6815806 ipReasmTimeout value should be variable 6567083 nd_getset has some dead and confusing code. 6884466 remove unused tcp/sctp ndd tunables 6928813 Comments at odds with default value of tcp_time_wait_interval 6236982 ifconfig usesrc lets adapter use itself as source address 6936855 modifying the ip6_strict_src_multihoming to non-zero value will unbind V4 IREs
author Girish Moodalbail <Girish.Moodalbail@Sun.COM>
date Fri, 26 Mar 2010 17:53:11 -0400
parents 8f30d0e611c6
children 044ff822d212
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
1 #
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
2 # CDDL HEADER START
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
3 #
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
4 # The contents of this file are subject to the terms of the
1676
37f4a3e2bd99 PSARC/2002/762 Layered Trusted Solaris
jpk
parents: 995
diff changeset
5 # Common Development and Distribution License (the "License").
37f4a3e2bd99 PSARC/2002/762 Layered Trusted Solaris
jpk
parents: 995
diff changeset
6 # You may not use this file except in compliance with the License.
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
7 #
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
9 # or http://www.opensolaris.org/os/licensing.
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
10 # See the License for the specific language governing permissions
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
11 # and limitations under the License.
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
12 #
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
13 # When distributing Covered Code, include this CDDL HEADER in each
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
15 # If applicable, add the following below this CDDL HEADER, with the
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
16 # fields enclosed by brackets "[]" replaced with your own identifying
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
17 # information: Portions Copyright [yyyy] [name of copyright owner]
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
18 #
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
19 # CDDL HEADER END
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
20 #
4162
4bfd590bb99a 6455242 nightly should be able to preserve all proto areas from a single build.
kupfer
parents: 4097
diff changeset
21
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
22 #
11767
8f30d0e611c6 PSARC/2008/532 NWAM Phase 1
Anurag S. Maskey <Anurag.Maskey@Sun.COM>
parents: 10946
diff changeset
23 # Copyright 2010 Sun Microsystems, Inc. All rights reserved.
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
24 # Use is subject to license terms.
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
25 #
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
26
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
27 SYNCPROG= syncinit syncloop syncstat
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
28 DHCPPROG= dhcpconfig dhtadm pntadm
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
29
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
30 # EXPORT DELETE START
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
31 XMODPROG= wanbootutil
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
32 # EXPORT DELETE END
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
33
4235
037e335b7d68 PSARC 2007/200 - Dedicated SMF services for IPsec/IKE
markfen
parents: 4162
diff changeset
34 PROG= 6to4relay arp gettable if_mpadm \
3048
ce5ba5995ea4 PSARC 2006/552 Quagga SMF Modifications
amaguire
parents: 3011
diff changeset
35 in.comsat in.fingerd in.rarpd in.rexecd in.rlogind \
4097
9f6f3e4cd944 PSARC 2002/356 in.tnamed (IEN-116) EOL
gd78059
parents: 3048
diff changeset
36 in.rshd in.rwhod in.telnetd in.tftpd ipaddrsel \
4235
037e335b7d68 PSARC 2007/200 - Dedicated SMF services for IPsec/IKE
markfen
parents: 4162
diff changeset
37 ndd $(SYNCPROG) $(DHCPPROG) $(XMODPROG)
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
38
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
39 MANIFEST= rarp.xml telnet.xml comsat.xml finger.xml \
4097
9f6f3e4cd944 PSARC 2002/356 in.tnamed (IEN-116) EOL
gd78059
parents: 3048
diff changeset
40 login.xml shell.xml rexec.xml
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
41
3048
ce5ba5995ea4 PSARC 2006/552 Quagga SMF Modifications
amaguire
parents: 3011
diff changeset
42 ROOTFS_PROG= hostconfig route soconfig
ce5ba5995ea4 PSARC 2006/552 Quagga SMF Modifications
amaguire
parents: 3011
diff changeset
43 SBINLINKS= hostconfig route
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
44
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
45 RPCSVCPROG= hostconfig
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
46 AUDITPROG= in.rexecd in.rlogind in.rshd in.telnetd
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
47 PAMPROG= in.rexecd in.rlogind in.rshd in.telnetd
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
48 SOCKETPROG= 6to4relay arp gettable hostconfig if_mpadm in.comsat \
3048
ce5ba5995ea4 PSARC 2006/552 Quagga SMF Modifications
amaguire
parents: 3011
diff changeset
49 in.fingerd in.rarpd in.rexecd in.rlogind in.rshd \
4235
037e335b7d68 PSARC 2007/200 - Dedicated SMF services for IPsec/IKE
markfen
parents: 4162
diff changeset
50 in.rwhod in.telnetd in.tftpd ipaddrsel route
037e335b7d68 PSARC 2007/200 - Dedicated SMF services for IPsec/IKE
markfen
parents: 4162
diff changeset
51 NSLPROG= 6to4relay arp gettable hostconfig in.comsat in.rarpd \
3048
ce5ba5995ea4 PSARC 2006/552 Quagga SMF Modifications
amaguire
parents: 3011
diff changeset
52 in.rexecd in.rlogind in.rshd in.rwhod in.telnetd \
4235
037e335b7d68 PSARC 2007/200 - Dedicated SMF services for IPsec/IKE
markfen
parents: 4162
diff changeset
53 in.tftpd ipaddrsel route
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
54 CMDPROG= in.telnetd
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
55 K5PROGS= in.telnetd in.rlogind in.rshd
1676
37f4a3e2bd99 PSARC/2002/762 Layered Trusted Solaris
jpk
parents: 995
diff changeset
56 TSNETPROG= route
12016
0248e987199b PSARC 2009/306 Brussels II - ipadm and libipadm
Girish Moodalbail <Girish.Moodalbail@Sun.COM>
parents: 11767
diff changeset
57 DLADMPROG= 6to4relay
89
ba4d0152c0bd 4533144 ON needs a single set of rules for installing default files
meem
parents: 0
diff changeset
58 DEFAULTFILES= telnetd.dfl
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
59
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
60 PROGSRCS= $(PROG:%=%.c)
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
61 TFTPDOBJS= in.tftpd.o tftpsubs.o
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
62 OTHERSRC= ../usr.bin/tftp/tftpsubs.c
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
63 K5RLOGINOBJS= in.rlogind.o
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
64 K5RSHDOBJS= in.rshd.o
6536
5f08fe7feaf4 6516568 Warning messages still being displayed on krb ccache ownership
gtb
parents: 6512
diff changeset
65 K5TELNETOBJS= in.telnetd.o
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
66 SRCS= $(PROGSRCS) $(OTHERSRC)
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
67
10946
324bab2b3370 PSARC 2008/575 ILB: Integrated L3/L4 Load balancer
Sangeeta Misra <Sangeeta.Misra@Sun.COM>
parents: 10616
diff changeset
68 SUBDIRS= bootconfchk htable ifconfig ilbadm in.ftpd in.rdisc in.routed \
12016
0248e987199b PSARC 2009/306 Brussels II - ipadm and libipadm
Girish Moodalbail <Girish.Moodalbail@Sun.COM>
parents: 11767
diff changeset
69 in.talkd inetadm inetconv ipadm ipmpstat ipqosconf ipsecutils \
11767
8f30d0e611c6 PSARC/2008/532 NWAM Phase 1
Anurag S. Maskey <Anurag.Maskey@Sun.COM>
parents: 10946
diff changeset
70 kssl/kssladm kssl/ksslcfg nwamadm nwamcfg ping routeadm \
8f30d0e611c6 PSARC/2008/532 NWAM Phase 1
Anurag S. Maskey <Anurag.Maskey@Sun.COM>
parents: 10946
diff changeset
71 snoop sppptun traceroute wificonfig
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
72
10946
324bab2b3370 PSARC 2008/575 ILB: Integrated L3/L4 Load balancer
Sangeeta Misra <Sangeeta.Misra@Sun.COM>
parents: 10616
diff changeset
73 MSGSUBDIRS= bootconfchk htable ifconfig ilbadm in.ftpd in.routed in.talkd \
12016
0248e987199b PSARC 2009/306 Brussels II - ipadm and libipadm
Girish Moodalbail <Girish.Moodalbail@Sun.COM>
parents: 11767
diff changeset
74 inetadm inetconv ipadm ipmpstat ipqosconf ipsecutils kssl/ksslcfg \
11767
8f30d0e611c6 PSARC/2008/532 NWAM Phase 1
Anurag S. Maskey <Anurag.Maskey@Sun.COM>
parents: 10946
diff changeset
75 nwamadm nwamcfg routeadm sppptun snoop wificonfig
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
76
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
77 # As programs get lint-clean, add them here and to the 'lint' target.
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
78 # Eventually this hack should go away, and all in PROG should be
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
79 # lint-clean.
4235
037e335b7d68 PSARC 2007/200 - Dedicated SMF services for IPsec/IKE
markfen
parents: 4162
diff changeset
80 LINTCLEAN= 6to4relay arp in.rlogind in.rshd in.telnetd in.tftpd \
037e335b7d68 PSARC 2007/200 - Dedicated SMF services for IPsec/IKE
markfen
parents: 4162
diff changeset
81 ipaddrsel route \
515
484fe491001b 6269723 gcc and if_mpadm don't get along
meem
parents: 89
diff changeset
82 in.rarpd if_mpadm $(SYNCPROG)
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
83 # Likewise, as subdirs get lint-clean, add them here. Once
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
84 # they're all clean, replace the dependency of the lint target
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
85 # with SUBDIRS. Also (sigh) deal with the commented-out build lines
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
86 # for the lint rule.
10946
324bab2b3370 PSARC 2008/575 ILB: Integrated L3/L4 Load balancer
Sangeeta Misra <Sangeeta.Misra@Sun.COM>
parents: 10616
diff changeset
87 LINTSUBDIRS= bootconfchk ilbadm in.rdisc in.routed in.talkd inetadm \
11767
8f30d0e611c6 PSARC/2008/532 NWAM Phase 1
Anurag S. Maskey <Anurag.Maskey@Sun.COM>
parents: 10946
diff changeset
88 inetconv ipmpstat ipqosconf ipsecutils nwamadm nwamcfg ping \
8f30d0e611c6 PSARC/2008/532 NWAM Phase 1
Anurag S. Maskey <Anurag.Maskey@Sun.COM>
parents: 10946
diff changeset
89 routeadm sppptun traceroute wificonfig
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
90 # And as programs are verified not to attempt to write into constants,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
91 # -xstrconst should be used to ensure they stay that way.
4235
037e335b7d68 PSARC 2007/200 - Dedicated SMF services for IPsec/IKE
markfen
parents: 4162
diff changeset
92 CONSTCLEAN=
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
93
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
94 include ../../Makefile.cmd
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
95 ROOTMANIFESTDIR= $(ROOTSVCNETWORK)
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
96 $(ROOTMANIFEST) := FILEMODE= 444
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
97 include ../Makefile.cmd-inet
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
98
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
99 ROOTSBINPROG = $(ROOTFS_PROG:%=$(ROOTSBIN)/%)
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
100 ROOTUSRSBINLINKS = $(SBINLINKS:%=$(ROOTUSRSBIN)/%)
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
101
6536
5f08fe7feaf4 6516568 Warning messages still being displayed on krb ccache ownership
gtb
parents: 6512
diff changeset
102 COMMONOBJS= addr_match.o kcmd.o store_forw_creds.o
3011
70ba060215e3 6485907 now that gethostbyaddr() & friends are not paranoid, rshd/rlogin must be
jbeck
parents: 2923
diff changeset
103 COMMONSRCS= $(COMMONOBJS:%.o=$(CMDINETCOMMONDIR)/%.c)
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
104 SRCS+= $(COMMONSRCS)
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
105
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
106 #
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
107 # Message catalog
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
108 #
4235
037e335b7d68 PSARC 2007/200 - Dedicated SMF services for IPsec/IKE
markfen
parents: 4162
diff changeset
109 POFILES= 6to4relay.po if_mpadm.po in.comsat.po ipaddrsel.po route.po
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
110 POFILE= usr.sbin.po
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
111
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
112 all:= TARGET= all
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
113 install:= TARGET= install
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
114 clean:= TARGET= clean
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
115 clobber:= TARGET= clobber
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
116 lint:= TARGET= lint
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
117 _msg:= TARGET= _msg
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
118
6727
421897262896 6692336 ktkt_warnd(1M) client code should be a library
gtb
parents: 6543
diff changeset
119 CLOBBERFILES += $(ROOTFS_PROG) $(PROG)
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
120 CLEANFILES += $(COMMONOBJS) $(K5RLOGINOBJS) $(K5RSHDOBJS) $(TFTPDOBJS)
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
121
3048
ce5ba5995ea4 PSARC 2006/552 Quagga SMF Modifications
amaguire
parents: 3011
diff changeset
122 CPPFLAGS += -DSYSV -DBSD_COMP -I$(CMDINETCOMMONDIR) -I
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
123
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
124 include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
125 K5LIBS=
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
126
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
127 # Eventually just plain CFLAGS should be += -v, but not until all in
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
128 # PROGS are lint clean.
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
129 $(LINTCLEAN) := CFLAGS += $(CCVERBOSE)
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
130 $(CONSTCLEAN) := CFLAGS += $(XSTRCONST)
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
131
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
132 $(SYNCPROG) := LDLIBS += -ldlpi
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
133 $(SOCKETPROG) := LDLIBS += -lsocket
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
134 $(NSLPROG) := LDLIBS += -lnsl
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
135 $(AUDITPROG) := LDLIBS += -lbsm
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
136 $(PAMPROG) := LDLIBS += -lpam
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
137 $(RPCSVCPROG) := LDLIBS += -lrpcsvc
6543
465433824d87 6683064 check_rtime could do with some spring cleaning
rie
parents: 6536
diff changeset
138 $(K5PROGS) := LDFLAGS += $(KRUNPATH) \
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
139 -L$(ROOT)$(KLIBDIR_DO) -L$(ROOT)$(KLIBDIR_GL)
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
140 $(K5PROGS) := K5LIBS= -lmech_krb5
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
141 $(K5PROGS) := CPPFLAGS += -I$(SRC)/head \
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
142 -I$(SRC)/uts/common/ \
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
143 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
144 -I$(SRC)/lib/gss_mechs/mech_krb5/include \
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
145 -I$(SRC)/lib/pam_modules/krb5
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
146 LDLIBS += $(K5LIBS)
6543
465433824d87 6683064 check_rtime could do with some spring cleaning
rie
parents: 6536
diff changeset
147 $(TSNETPROG) := LDLIBS += -ltsnet
10616
3be00c4a6835 PSARC 2009/373 Clearview IP Tunneling
Sebastien Roy <Sebastien.Roy@Sun.COM>
parents: 8485
diff changeset
148 $(DLADMPROG) := LDLIBS += -ldladm
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
149
4456
35ab34adfdad PSARC 2007/282 DLPI MAC-Type Mapping Functions
ss150715
parents: 4271
diff changeset
150 in.rarpd := LDLIBS += -linetutil -ldlpi
8485
633e5b5eb268 PSARC/2007/272 Project Clearview: IPMP Rearchitecture
meem <Peter.Memishian@Sun.COM>
parents: 7867
diff changeset
151 if_mpadm := LDLIBS += -linetutil -lipmp
633e5b5eb268 PSARC/2007/272 Project Clearview: IPMP Rearchitecture
meem <Peter.Memishian@Sun.COM>
parents: 7867
diff changeset
152 if_mpadm.po := XGETFLAGS += -a
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
153 route := CPPFLAGS += -DNDEBUG
12016
0248e987199b PSARC 2009/306 Brussels II - ipadm and libipadm
Girish Moodalbail <Girish.Moodalbail@Sun.COM>
parents: 11767
diff changeset
154 ndd := LDLIBS += -ldladm -lipadm
4271
dda1ded496b7 6455532 OSNet cleanup required in preparation for direct bindings
rie
parents: 4235
diff changeset
155 gettable in.comsat := LDFLAGS += $(MAPFILE.NGB:%=-M%)
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
156
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
157 .KEEP_STATE:
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
158
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
159 .PARALLEL:
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
160
4162
4bfd590bb99a 6455242 nightly should be able to preserve all proto areas from a single build.
kupfer
parents: 4097
diff changeset
161 all: $(PROG) $(ROOTFS_PROG) $(SUBDIRS) THIRDPARTYLICENSE.arp
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
162
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
163 #
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
164 # message catalog
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
165 #
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
166 _msg: $(MSGSUBDIRS) $(POFILE)
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
167
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
168 syncutil: $(SYNCPROG)
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
169
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
170 $(POFILE): $(POFILES)
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
171 $(RM) $@
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
172 cat $(POFILES) > $@
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
173
3011
70ba060215e3 6485907 now that gethostbyaddr() & friends are not paranoid, rshd/rlogin must be
jbeck
parents: 2923
diff changeset
174 %.o: $(CMDINETCOMMONDIR)/%.c
70ba060215e3 6485907 now that gethostbyaddr() & friends are not paranoid, rshd/rlogin must be
jbeck
parents: 2923
diff changeset
175 $(COMPILE.c) -o $@ $<
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
176
6727
421897262896 6692336 ktkt_warnd(1M) client code should be a library
gtb
parents: 6543
diff changeset
177 in.telnetd: $(K5TELNETOBJS)
421897262896 6692336 ktkt_warnd(1M) client code should be a library
gtb
parents: 6543
diff changeset
178 $(LINK.c) $(K5TELNETOBJS) -o $@ $(LDLIBS)
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
179 $(POST_PROCESS)
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
180
6727
421897262896 6692336 ktkt_warnd(1M) client code should be a library
gtb
parents: 6543
diff changeset
181 in.rlogind: $(K5RLOGINOBJS) $(COMMONOBJS)
421897262896 6692336 ktkt_warnd(1M) client code should be a library
gtb
parents: 6543
diff changeset
182 $(LINK.c) $(K5RLOGINOBJS) $(COMMONOBJS) -o $@ $(LDLIBS)
6536
5f08fe7feaf4 6516568 Warning messages still being displayed on krb ccache ownership
gtb
parents: 6512
diff changeset
183 $(POST_PROCESS)
5f08fe7feaf4 6516568 Warning messages still being displayed on krb ccache ownership
gtb
parents: 6512
diff changeset
184
6727
421897262896 6692336 ktkt_warnd(1M) client code should be a library
gtb
parents: 6543
diff changeset
185 in.rshd: $(K5RSHDOBJS) $(COMMONOBJS)
421897262896 6692336 ktkt_warnd(1M) client code should be a library
gtb
parents: 6543
diff changeset
186 $(LINK.c) $(K5RSHDOBJS) $(COMMONOBJS) -o $@ $(LDLIBS)
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
187 $(POST_PROCESS)
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
188
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
189 in.tftpd: $(TFTPDOBJS)
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
190 $(LINK.c) $(TFTPDOBJS) -o $@ $(LDLIBS)
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
191 $(POST_PROCESS)
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
192
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
193 tftpsubs.o: $(OTHERSRC)
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
194 $(COMPILE.c) $(OTHERSRC) -o $@
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
195 $(POST_PROCESS_O)
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
196
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
197 $(ROOTUSRSBINLINKS):
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
198 -$(RM) $@; $(SYMLINK) ../../sbin/$(@F) $@
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
199
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
200 install: $(PROG) $(ROOTFS_PROG) $(SUBDIRS) .WAIT $(ROOTUSRSBINPROG) \
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
201 $(ROOTSBINPROG) $(ROOTUSRSBINLINKS) $(ROOTETCDEFAULTFILES) \
4162
4bfd590bb99a 6455242 nightly should be able to preserve all proto areas from a single build.
kupfer
parents: 4097
diff changeset
202 $(ROOTMANIFEST) THIRDPARTYLICENSE.arp
4bfd590bb99a 6455242 nightly should be able to preserve all proto areas from a single build.
kupfer
parents: 4097
diff changeset
203
4bfd590bb99a 6455242 nightly should be able to preserve all proto areas from a single build.
kupfer
parents: 4097
diff changeset
204 THIRDPARTYLICENSE.arp: arp.c
4bfd590bb99a 6455242 nightly should be able to preserve all proto areas from a single build.
kupfer
parents: 4097
diff changeset
205 $(SED) -n '/University of California/,/SUCH DAMAGE/p' arp.c > $@
4bfd590bb99a 6455242 nightly should be able to preserve all proto areas from a single build.
kupfer
parents: 4097
diff changeset
206
4bfd590bb99a 6455242 nightly should be able to preserve all proto areas from a single build.
kupfer
parents: 4097
diff changeset
207 CLOBBERFILES += THIRDPARTYLICENSE.arp
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
208
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
209 #
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
210 # The reason this rule checks for the existence of the
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
211 # Makefile is that some of the directories do not exist
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
212 # in our exportable source builds.
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
213 #
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
214 $(SUBDIRS): FRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
215 @if [ -f $@/Makefile ]; then \
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
216 cd $@; pwd; $(MAKE) $(TARGET); \
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
217 else \
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
218 true; \
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
219 fi
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
220
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
221 FRC:
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
222
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
223 check: $(CHKMANIFEST)
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
224
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
225 clean: $(SUBDIRS)
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
226 -$(RM) $(CLEANFILES)
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
227
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
228 clobber: $(SUBDIRS)
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
229 -$(RM) $(CLEANFILES) $(CLOBBERFILES)
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
230
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
231 lint: $(LINTSUBDIRS)
10616
3be00c4a6835 PSARC 2009/373 Clearview IP Tunneling
Sebastien Roy <Sebastien.Roy@Sun.COM>
parents: 8485
diff changeset
232 $(LINT.c) 6to4relay.c $(LDLIBS) -lsocket -ldladm
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
233 $(LINT.c) arp.c $(LDLIBS) -lsocket -lnsl
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
234 @# $(LINT.c) in.rexecd.c $(LDLIBS) -lbsm -lpam
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
235 $(LINT.c) -erroff=E_NAME_USED_NOT_DEF2 -erroff=E_NAME_DEF_NOT_USED2 \
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
236 -I$(SRC)/head -I$(SRC)/uts/common/ \
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
237 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
238 -I$(SRC)/lib/gss_mechs/mech_krb5/include \
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
239 -I$(SRC)/lib/pam_modules/krb5 \
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
240 in.rlogind.c $(COMMONSRCS) $(LDLIBS) -lbsm -lpam -lsocket -lnsl
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
241 $(LINT.c) -erroff=E_NAME_USED_NOT_DEF2 -erroff=E_NAME_DEF_NOT_USED2 \
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
242 -I$(SRC)/head -I$(SRC)/uts/common/ \
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
243 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
244 -I$(SRC)/lib/gss_mechs/mech_krb5/include \
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
245 -I$(SRC)/lib/pam_modules/krb5 \
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
246 in.rshd.c $(COMMONSRCS) $(LDLIBS) -lbsm -lpam -lsocket -lnsl
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
247 $(LINT.c) -erroff=E_NAME_USED_NOT_DEF2 \
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
248 -erroff=E_GLOBAL_COULD_BE_STATIC2 \
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
249 -I$(SRC)/head -I$(SRC)/uts/common/ \
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
250 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
251 -I$(SRC)/lib/gss_mechs/mech_krb5/include \
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
252 -I$(SRC)/lib/pam_modules/krb5 \
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
253 in.telnetd.c $(LDLIBS) -lbsm -lpam -lsocket -lnsl
8485
633e5b5eb268 PSARC/2007/272 Project Clearview: IPMP Rearchitecture
meem <Peter.Memishian@Sun.COM>
parents: 7867
diff changeset
254 $(LINT.c) if_mpadm.c $(LDLIBS) -lsocket -lnsl -lipmp -linetutil
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
255 $(LINT.c) ipaddrsel.c $(LDLIBS) -lsocket -lnsl
1676
37f4a3e2bd99 PSARC/2002/762 Layered Trusted Solaris
jpk
parents: 995
diff changeset
256 $(LINT.c) route.c $(LDLIBS) -lsocket -lnsl -ltsnet
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
257 $(LINT.c) syncinit.c $(LDLIBS) -ldlpi
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
258 $(LINT.c) syncloop.c $(LDLIBS) -ldlpi
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
259 $(LINT.c) syncstat.c $(LDLIBS) -ldlpi
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
260 $(LINT.c) -erroff=E_NAME_USED_NOT_DEF2 in.rarpd.c $(LDLIBS) \
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
261 -lsocket -lnsl
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
262 $(LINT.c) in.tftpd.c ../usr.bin/tftp/tftpsubs.c $(LDLIBS) \
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
263 -lsocket -lnsl
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
264
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
265 # EXPORT DELETE START
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
266 EXPORT_SRC:
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
267 $(RM) Makefile+
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
268 sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
269 < Makefile > Makefile+
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
270 $(RM) Makefile
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
271 $(MV) Makefile+ Makefile
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
272 $(CHMOD) 444 Makefile
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
273 # EXPORT DELETE END