4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
23 # Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
24 # Copyright 2014 Garrett D'Amore <garrett@damore.org>
27 SYNCPROG
= syncinit syncloop syncstat
29 PROG
= 6to4relay arp if_mpadm \
30 in.comsat in.fingerd in.rarpd \
31 in.rwhod in.telnetd in.tftpd ipaddrsel \
34 MANIFEST
= rarp.xml telnet.xml comsat.xml finger.xml
35 SVCMETHOD
= svc-sockfilter
37 ROOTFS_PROG
= hostconfig route soconfig
38 SBINLINKS
= hostconfig route
40 RPCSVCPROG
= hostconfig
42 SOCKETPROG
= 6to4relay arp hostconfig if_mpadm in.comsat \
44 in.rwhod in.telnetd in.tftpd ipaddrsel ndp route
45 NSLPROG
= 6to4relay arp hostconfig in.comsat in.rarpd \
47 in.tftpd ipaddrsel ndp route
51 DEFAULTFILES
= telnetd.dfl
53 PROGSRCS
= $(PROG
:%=%.c
)
54 TFTPDOBJS
= in.tftpd.o tftpsubs.o
55 OTHERSRC
= ..
/usr.bin
/tftp
/tftpsubs.c
56 K5TELNETOBJS
= in.telnetd.o
57 SRCS
= $(PROGSRCS
) $(OTHERSRC
)
59 SUBDIRS
= ifconfig ilbadm in.rdisc in.routed \
60 in.talkd inetadm inetconv ipadm ipmpstat ipqosconf ipsecutils \
61 nwamadm nwamcfg ping \
62 snoop sppptun traceroute wificonfig
64 MSGSUBDIRS
= ifconfig ilbadm in.routed in.talkd \
65 inetadm inetconv ipadm ipmpstat ipqosconf ipsecutils \
66 nwamadm nwamcfg sppptun snoop wificonfig
68 include ..
/..
/Makefile.cmd
69 ROOTMANIFESTDIR
= $(ROOTSVCNETWORK
)
70 $(ROOTMANIFEST
) := FILEMODE
= 444
71 include ..
/Makefile.cmd-inet
73 ROOTSBINPROG
= $(ROOTFS_PROG
:%=$(ROOTSBIN
)/%)
74 ROOTUSRSBINLINKS
= $(SBINLINKS
:%=$(ROOTUSRSBIN
)/%)
76 CERRWARN
+= -Wno-uninitialized
77 CERRWARN
+= -Wno-unused-variable
78 CERRWARN
+= -Wno-unused-function
79 CERRWARN
+= -Wno-parentheses
80 CERRWARN
+= -Wno-char-subscripts
81 CERRWARN
+= -Wno-extra
82 CERRWARN
+= -Wno-address
87 POFILES
= 6to4relay.po if_mpadm.po in.comsat.po ipaddrsel.po route.po \
92 install:= TARGET
= install
94 clobber:= TARGET
= clobber
97 CLOBBERFILES
+= $(ROOTFS_PROG
) $(PROG
)
98 CLEANFILES
+= $(TFTPDOBJS
) $(K5TELNETOBJS
)
100 CPPFLAGS
+= -DSYSV
-DBSD_COMP
-I
$(CMDINETCOMMONDIR
) -I
102 include $(SRC
)/lib
/gss_mechs
/mech_krb5
/Makefile.mech_krb5
105 $(SYNCPROG
) := LDLIBS
+= -ldlpi
106 $(PAMPROG
) := LDLIBS
+= -lpam
107 $(RPCSVCPROG
) := LDLIBS
+= -lrpcsvc
108 $(K5PROGS
) := LDFLAGS
+= $(KRUNPATH
) \
109 -L
$(ROOT
)$(KLIBDIR_DO
) -L
$(ROOT
)$(KLIBDIR_GL
)
110 $(K5PROGS
) := K5LIBS
= -lmech_krb5
111 $(K5PROGS
) := CPPFLAGS
+= -I
$(SRCTOP
)/include \
112 -I
$(SRC
)/uts
/common
/ \
113 -I
$(SRC
)/uts
/common
/gssapi
/mechs
/krb5
/include \
114 -I
$(SRC
)/lib
/gss_mechs
/mech_krb5
/include \
115 -I
$(SRC
)/lib
/pam_modules
/krb5
117 $(DLADMPROG
) := LDLIBS
+= -ldladm
119 in.rarpd
:= LDLIBS
+= -linetutil
-ldlpi
120 if_mpadm
:= LDLIBS
+= -linetutil
-lipmp
121 if_mpadm.po
:= XGETFLAGS
+= -a
122 route
:= CPPFLAGS
+= -DNDEBUG
123 in.comsat
:= LDFLAGS
+= $(MAPFILE.NGB
:%=-Wl
,-M
%)
129 all: $(PROG
) $(ROOTFS_PROG
) $(SUBDIRS
) THIRDPARTYLICENSE.arp
134 _msg
: $(MSGSUBDIRS
) $(POFILE
)
136 syncutil
: $(SYNCPROG
)
138 $(POFILE
): $(POFILES
)
142 %.o
: $(CMDINETCOMMONDIR
)/%.c
143 $(COMPILE.c
) -o
$@
$<
145 in.telnetd
: $(K5TELNETOBJS
)
146 $(LINK.c
) $(K5TELNETOBJS
) -o
$@
$(LDLIBS
)
149 in.tftpd
: $(TFTPDOBJS
)
150 $(LINK.c
) $(TFTPDOBJS
) -o
$@
$(LDLIBS
)
153 tftpsubs.o
: $(OTHERSRC
)
154 $(COMPILE.c
) $(OTHERSRC
) -o
$@
158 -$(RM
) $@
; $(SYMLINK
) ..
/..
/sbin
/$(@F
) $@
160 install: $(PROG
) $(ROOTFS_PROG
) $(SUBDIRS
) .WAIT
$(ROOTUSRSBINPROG
) \
161 $(ROOTSBINPROG
) $(ROOTUSRSBINLINKS
) $(ROOTETCDEFAULTFILES
) \
162 $(ROOTMANIFEST
) $(ROOTSVCMETHOD
) THIRDPARTYLICENSE.arp
164 THIRDPARTYLICENSE.arp
: arp.c
165 $(SED
) -n
'/University of California/,/SUCH DAMAGE/p' arp.c
> $@
167 CLOBBERFILES
+= THIRDPARTYLICENSE.arp
170 # The reason this rule checks for the existence of the
171 # Makefile is that some of the directories do not exist
172 # in our exportable source builds.
175 @if
[ -f
$@
/Makefile
]; then \
176 cd
$@
; pwd
; $(MAKE
) $(TARGET
); \
183 check: $(CHKMANIFEST
)
185 clean: $(SUBDIRS
) clean_local
189 clobber: $(SUBDIRS
) clobber_local
190 clobber_local
: clean_local
191 $(RM
) $(CLOBBERFILES
)