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