Makefile revision 86635a91ceb503bad0052c7a964ec3fd28d548dc
194N/A#
194N/A# CDDL HEADER START
194N/A#
194N/A# The contents of this file are subject to the terms of the
194N/A# Common Development and Distribution License (the "License").
194N/A# You may not use this file except in compliance with the License.
194N/A#
194N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
194N/A# or http://www.opensolaris.org/os/licensing.
194N/A# See the License for the specific language governing permissions
194N/A# and limitations under the License.
194N/A#
194N/A# When distributing Covered Code, include this CDDL HEADER in each
194N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
194N/A# If applicable, add the following below this CDDL HEADER, with the
194N/A# fields enclosed by brackets "[]" replaced with your own identifying
194N/A# information: Portions Copyright [yyyy] [name of copyright owner]
194N/A#
194N/A# CDDL HEADER END
194N/A#
194N/A#
194N/A# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
844N/A# Use is subject to license terms.
194N/A#
194N/A
194N/A
194N/ASVCMETHOD= svc-legacy-routing svc-forwarding
194N/AMANIFEST= legacy-routing.xml forwarding.xml
194N/A
618N/APROG= routeadm
194N/AROOTFS_PROG= $(PROG)
194N/A
844N/Ainclude ../../../Makefile.cmd
844N/A
194N/A#
194N/A# We cannot use the usual manifest rules here since we deliver
194N/A# manifests to two different locations, /lib/svc/manifest/network/forwarding.xml
194N/A# and /lib/svc/manifest/network/routing/legacy-routing.xml
194N/A#
194N/A
194N/AROOTSVCMANIFESTDIR= $(ROOTSVCNETWORK) $(ROOTSVCNETWORKROUTING)
194N/AROOTSVCMANIFESTS= $(ROOTSVCNETWORKROUTING)/legacy-routing.xml \
194N/A $(ROOTSVCNETWORK)/forwarding.xml
194N/A
194N/Ainclude ../../Makefile.cmd-inet
194N/A
206N/A$(ROOTSVCMANIFESTS) := FILEMODE= 444
194N/A
194N/AROOTUSRSBINLINKS= $(PROG:%=$(ROOTUSRSBIN)/%)
194N/A
194N/ACPPFLAGS += -I../../../../common/svc -I$(CMDINETCOMMONDIR)
194N/ACERRWARN += -_gcc=-Wno-parentheses
194N/ACERRWARN += -_gcc=-Wno-uninitialized
194N/A$(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
194N/A
194N/ALDLIBS += -lscf -luutil -lsocket
194N/A
194N/AROOTSBINPROG= $(ROOTFS_PROG:%=$(ROOTSBIN)/%)
194N/A
194N/A.KEEP_STATE:
194N/A
194N/Aall: $(PROG)
194N/A
194N/Ainstall: all $(ROOTSBINPROG) $(ROOTUSRSBINLINKS) $(ROOTSVCMANIFESTS) \
$(ROOTSVCMETHOD)
$(ROOTUSRSBINLINKS):
-$(RM) $@; $(SYMLINK) ../../sbin/$(@F) $@
check: $(CHKMANIFEST)
clean:
lint: lint_PROG
$(ROOTSVCMANIFESTS): $(ROOTSVCMANIFESTDIR)
$(ROOTSVCMANIFESTDIR):
$(INS.dir)
$(ROOTSVCNETWORK)/%: %
$(INS.file)
$(ROOTSVCNETWORKROUTING)/%: %
$(INS.file)
include ../../../Makefile.targ