xref: /onnv-gate/usr/src/cmd/cmd-inet/usr.lib/Makefile (revision 12402:9ce58bccc1d1)
10Sstevel@tonic-gate#
20Sstevel@tonic-gate# CDDL HEADER START
30Sstevel@tonic-gate#
40Sstevel@tonic-gate# The contents of this file are subject to the terms of the
54126Szf162725# Common Development and Distribution License (the "License").
64126Szf162725# You may not use this file except in compliance with the License.
70Sstevel@tonic-gate#
80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate# See the License for the specific language governing permissions
110Sstevel@tonic-gate# and limitations under the License.
120Sstevel@tonic-gate#
130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate#
190Sstevel@tonic-gate# CDDL HEADER END
200Sstevel@tonic-gate#
21*12402SMark.J.Nelson@Oracle.COM
220Sstevel@tonic-gate#
23*12402SMark.J.Nelson@Oracle.COM# Copyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved.
240Sstevel@tonic-gate#
250Sstevel@tonic-gate
2610946SSangeeta.Misra@Sun.COMSUBDIRS=	bridged dhcp dsvclockd ilbd in.chargend in.daytimed \
271167Skupfer		in.discardd in.echod in.dhcpd in.mpathd in.ndpd \
284904Srs200217		in.ripngd in.timed inetd mdnsd ncaconfd pppoe \
2911076SCathy.Zhou@Sun.COM		slpd vrrpd wanboot wpad
301167Skupfer
3111076SCathy.Zhou@Sun.COMMSGSUBDIRS=	dsvclockd ilbd in.dhcpd inetd ncaconfd vrrpd wanboot
320Sstevel@tonic-gate
330Sstevel@tonic-gateinclude ../../Makefile.cmd
34*12402SMark.J.Nelson@Oracle.COMinclude ./Makefile.lib
350Sstevel@tonic-gate
361167Skupfer$(CLOSED_BUILD)SUBDIRS += \
371167Skupfer	$(CLOSED)/cmd/cmd-inet/usr.lib/ike-certutils \
381208Skupfer	$(CLOSED)/cmd/cmd-inet/usr.lib/in.iked
391167Skupfer
400Sstevel@tonic-gatePOFILES=	dsvclockd/dsvclockd.po in.dhcpd/in.dhcpd.po \
4111076SCathy.Zhou@Sun.COM		inetd/inetd.po ncaconfd/ncaconfd.po vrrpd/vrrpd.po \
420Sstevel@tonic-gate		wanboot/wanboot.po
430Sstevel@tonic-gatePOFILE=		usr.lib.po
440Sstevel@tonic-gate
450Sstevel@tonic-gateall:=		TARGET= all
460Sstevel@tonic-gateinstall:=	TARGET= install
470Sstevel@tonic-gateclean:=		TARGET= clean
480Sstevel@tonic-gateclobber:=	TARGET= clobber
490Sstevel@tonic-gatelint:=		TARGET= lint
500Sstevel@tonic-gate_msg:=		TARGET= _msg
510Sstevel@tonic-gate
520Sstevel@tonic-gate.KEEP_STATE:
530Sstevel@tonic-gate
54*12402SMark.J.Nelson@Oracle.COMall clean clobber lint: $(SUBDIRS)
55*12402SMark.J.Nelson@Oracle.COM
56*12402SMark.J.Nelson@Oracle.COMinstall: $(SUBDIRS)
57*12402SMark.J.Nelson@Oracle.COM	-$(RM) $(ROOTLIBINET)/in.iked
58*12402SMark.J.Nelson@Oracle.COM	-$(LN) $(ISAEXEC) $(ROOTLIBINET)/in.iked
59*12402SMark.J.Nelson@Oracle.COM
600Sstevel@tonic-gate
610Sstevel@tonic-gate_msg: $(MSGSUBDIRS)
620Sstevel@tonic-gate
630Sstevel@tonic-gate#
640Sstevel@tonic-gate# The reason this rule checks for the existence of the
650Sstevel@tonic-gate# Makefile is that some of the directories do not exist
661167Skupfer# in our exportable source builds or in OpenSolaris.
670Sstevel@tonic-gate#
680Sstevel@tonic-gate$(SUBDIRS): FRC
690Sstevel@tonic-gate	@if [ -f $@/Makefile  ]; then \
700Sstevel@tonic-gate		cd $@; pwd; $(MAKE) $(TARGET); \
710Sstevel@tonic-gate	else \
720Sstevel@tonic-gate		true; \
730Sstevel@tonic-gate	fi
740Sstevel@tonic-gate
750Sstevel@tonic-gateFRC:
76