Makefile revision 9444c26f4faabda140242c3986089704c4073ced
425N/A#
425N/A# CDDL HEADER START
425N/A#
425N/A# The contents of this file are subject to the terms of the
911N/A# Common Development and Distribution License (the "License").
919N/A# You may not use this file except in compliance with the License.
425N/A#
425N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A#
919N/A# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
919N/A# Use is subject to license terms.
919N/A#
919N/A
425N/A
425N/ASVCMETHOD= svc-legacy-routing svc-forwarding
425N/AMANIFEST= legacy-routing.xml forwarding.xml
425N/A
493N/APROG= routeadm
425N/AROOTFS_PROG= $(PROG)
425N/A
493N/Ainclude ../../../Makefile.cmd
425N/A
911N/A#
911N/A# We cannot use the usual manifest rules here since we deliver
911N/A# manifests to two different locations, /lib/svc/manifest/network/forwarding.xml
911N/A# and /lib/svc/manifest/network/routing/legacy-routing.xml
425N/A#
425N/A
425N/AROOTSVCMANIFESTDIR= $(ROOTSVCNETWORK) $(ROOTSVCNETWORKROUTING)
425N/AROOTSVCMANIFESTS= $(ROOTSVCNETWORKROUTING)/legacy-routing.xml \
425N/A $(ROOTSVCNETWORK)/forwarding.xml
493N/A
493N/Ainclude ../../Makefile.cmd-inet
425N/A
425N/A$(ROOTSVCMANIFESTS) := FILEMODE= 444
ROOTUSRSBINLINKS= $(PROG:%=$(ROOTUSRSBIN)/%)
CPPFLAGS += -I../../../../common/svc -I$(CMDINETCOMMONDIR)
$(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
LDLIBS += -lscf -luutil -lsocket
ROOTSBINPROG= $(ROOTFS_PROG:%=$(ROOTSBIN)/%)
.KEEP_STATE:
all: $(PROG)
install: 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