5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
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.
12 #
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]
18 #
19 # CDDL HEADER END
20 #
21
22 #
23 # Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
24 # Copyright 2014 Garrett D'Amore <garrett@damore.org>
25 # Copyright (c) 2018, Joyent, Inc.
26 #
27
28 SYNCPROG= syncinit syncloop syncstat
29
30 PROG= 6to4relay arp if_mpadm \
31 in.comsat in.fingerd in.rarpd in.rexecd in.rlogind \
32 in.rshd in.rwhod in.telnetd in.tftpd ipaddrsel \
33 ndd ndp $(SYNCPROG)
34
35 MANIFEST= rarp.xml telnet.xml comsat.xml finger.xml \
36 login.xml shell.xml rexec.xml socket-filter-kssl.xml
37 SVCMETHOD= svc-sockfilter
38
39 ROOTFS_PROG= hostconfig route soconfig
40 SBINLINKS= hostconfig route
41
42 RPCSVCPROG= hostconfig
43 AUDITPROG= in.rexecd in.rlogind in.rshd in.telnetd
44 PAMPROG= in.rexecd in.rlogind in.rshd in.telnetd
45 SOCKETPROG= 6to4relay arp hostconfig if_mpadm in.comsat \
147 $(AUDITPROG) := LDLIBS += -lbsm
148 $(PAMPROG) := LDLIBS += -lpam
149 $(RPCSVCPROG) := LDLIBS += -lrpcsvc
150 $(K5PROGS) := LDFLAGS += $(KRUNPATH) \
151 -L$(ROOT)$(KLIBDIR_DO) -L$(ROOT)$(KLIBDIR_GL)
152 $(K5PROGS) := K5LIBS= -lmech_krb5
153 $(K5PROGS) := CPPFLAGS += -I$(SRC)/head \
154 -I$(SRC)/uts/common/ \
155 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
156 -I$(SRC)/lib/gss_mechs/mech_krb5/include \
157 -I$(SRC)/lib/pam_modules/krb5
158 LDLIBS += $(K5LIBS)
159 $(TSNETPROG) := LDLIBS += -ltsnet
160 $(DLADMPROG) := LDLIBS += -ldladm
161
162 in.rarpd := LDLIBS += -linetutil -ldlpi
163 if_mpadm := LDLIBS += -linetutil -lipmp
164 if_mpadm.po := XGETFLAGS += -a
165 route := CPPFLAGS += -DNDEBUG
166 ndd := LDLIBS += -ldladm -lipadm
167 in.comsat := LDFLAGS += $(MAPFILE.NGB:%=-M%)
168
169 .KEEP_STATE:
170
171 .PARALLEL:
172
173 all: $(PROG) $(ROOTFS_PROG) $(SUBDIRS) THIRDPARTYLICENSE.arp
174
175 #
176 # message catalog
177 #
178 _msg: $(MSGSUBDIRS) $(POFILE)
179
180 syncutil: $(SYNCPROG)
181
182 $(POFILE): $(POFILES)
183 $(RM) $@
184 cat $(POFILES) > $@
185
186 %.o: $(CMDINETCOMMONDIR)/%.c
|
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
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.
12 #
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]
18 #
19 # CDDL HEADER END
20 #
21
22 #
23 # Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
24 # Copyright 2014 Garrett D'Amore <garrett@damore.org>
25 # Copyright 2019, Joyent, Inc.
26 #
27
28 SYNCPROG= syncinit syncloop syncstat
29
30 PROG= 6to4relay arp if_mpadm \
31 in.comsat in.fingerd in.rarpd in.rexecd in.rlogind \
32 in.rshd in.rwhod in.telnetd in.tftpd ipaddrsel \
33 ndd ndp $(SYNCPROG)
34
35 MANIFEST= rarp.xml telnet.xml comsat.xml finger.xml \
36 login.xml shell.xml rexec.xml socket-filter-kssl.xml
37 SVCMETHOD= svc-sockfilter
38
39 ROOTFS_PROG= hostconfig route soconfig
40 SBINLINKS= hostconfig route
41
42 RPCSVCPROG= hostconfig
43 AUDITPROG= in.rexecd in.rlogind in.rshd in.telnetd
44 PAMPROG= in.rexecd in.rlogind in.rshd in.telnetd
45 SOCKETPROG= 6to4relay arp hostconfig if_mpadm in.comsat \
147 $(AUDITPROG) := LDLIBS += -lbsm
148 $(PAMPROG) := LDLIBS += -lpam
149 $(RPCSVCPROG) := LDLIBS += -lrpcsvc
150 $(K5PROGS) := LDFLAGS += $(KRUNPATH) \
151 -L$(ROOT)$(KLIBDIR_DO) -L$(ROOT)$(KLIBDIR_GL)
152 $(K5PROGS) := K5LIBS= -lmech_krb5
153 $(K5PROGS) := CPPFLAGS += -I$(SRC)/head \
154 -I$(SRC)/uts/common/ \
155 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
156 -I$(SRC)/lib/gss_mechs/mech_krb5/include \
157 -I$(SRC)/lib/pam_modules/krb5
158 LDLIBS += $(K5LIBS)
159 $(TSNETPROG) := LDLIBS += -ltsnet
160 $(DLADMPROG) := LDLIBS += -ldladm
161
162 in.rarpd := LDLIBS += -linetutil -ldlpi
163 if_mpadm := LDLIBS += -linetutil -lipmp
164 if_mpadm.po := XGETFLAGS += -a
165 route := CPPFLAGS += -DNDEBUG
166 ndd := LDLIBS += -ldladm -lipadm
167 $(RELEASE_BUILD)ndd := CERRWARN += -_gcc=-Wno-unused
168 in.comsat := LDFLAGS += $(MAPFILE.NGB:%=-M%)
169
170 .KEEP_STATE:
171
172 .PARALLEL:
173
174 all: $(PROG) $(ROOTFS_PROG) $(SUBDIRS) THIRDPARTYLICENSE.arp
175
176 #
177 # message catalog
178 #
179 _msg: $(MSGSUBDIRS) $(POFILE)
180
181 syncutil: $(SYNCPROG)
182
183 $(POFILE): $(POFILES)
184 $(RM) $@
185 cat $(POFILES) > $@
186
187 %.o: $(CMDINETCOMMONDIR)/%.c
|