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