1a192e90amaguire# 2a192e90amaguire# CDDL HEADER START 3a192e90amaguire# 4a192e90amaguire# The contents of this file are subject to the terms of the 5a192e90amaguire# Common Development and Distribution License (the "License"). 6a192e90amaguire# You may not use this file except in compliance with the License. 7a192e90amaguire# 8a192e90amaguire# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9a192e90amaguire# or http://www.opensolaris.org/os/licensing. 10a192e90amaguire# See the License for the specific language governing permissions 11a192e90amaguire# and limitations under the License. 12a192e90amaguire# 13a192e90amaguire# When distributing Covered Code, include this CDDL HEADER in each 14a192e90amaguire# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15a192e90amaguire# If applicable, add the following below this CDDL HEADER, with the 16a192e90amaguire# fields enclosed by brackets "[]" replaced with your own identifying 17a192e90amaguire# information: Portions Copyright [yyyy] [name of copyright owner] 18a192e90amaguire# 19a192e90amaguire# CDDL HEADER END 20a192e90amaguire# 21a192e90amaguire# 229444c26Tom Whitten# Copyright 2010 Sun Microsystems, Inc. All rights reserved. 23a192e90amaguire# Use is subject to license terms. 24a192e90amaguire# 25a192e90amaguire 26a192e90amaguire 27a192e90amaguireSVCMETHOD= svc-legacy-routing svc-forwarding 28a192e90amaguireMANIFEST= legacy-routing.xml forwarding.xml 29a192e90amaguire 30a192e90amaguirePROG= routeadm 31a192e90amaguireROOTFS_PROG= $(PROG) 32a192e90amaguire 33a192e90amaguireinclude ../../../Makefile.cmd 34a192e90amaguire 35a192e90amaguire# 36a192e90amaguire# We cannot use the usual manifest rules here since we deliver 379444c26Tom Whitten# manifests to two different locations, /lib/svc/manifest/network/forwarding.xml 389444c26Tom Whitten# and /lib/svc/manifest/network/routing/legacy-routing.xml 39a192e90amaguire# 40a192e90amaguire 41a192e90amaguireROOTSVCMANIFESTDIR= $(ROOTSVCNETWORK) $(ROOTSVCNETWORKROUTING) 429444c26Tom WhittenROOTSVCMANIFESTS= $(ROOTSVCNETWORKROUTING)/legacy-routing.xml \ 43a192e90amaguire $(ROOTSVCNETWORK)/forwarding.xml 44a192e90amaguire 45ceb97a6amaguireinclude ../../Makefile.cmd-inet 46ceb97a6amaguire 479444c26Tom Whitten$(ROOTSVCMANIFESTS) := FILEMODE= 444 48a192e90amaguire 49a192e90amaguireROOTUSRSBINLINKS= $(PROG:%=$(ROOTUSRSBIN)/%) 50a192e90amaguire 51ceb97a6amaguireCPPFLAGS += -I../../../../common/svc -I$(CMDINETCOMMONDIR) 527014882Richard LoweCERRWARN += -_gcc=-Wno-parentheses 53d3b5f56John LevonCERRWARN += $(CNOWARN_UNINIT) 54a192e90amaguire$(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG 55a192e90amaguire 56ceb97a6amaguireLDLIBS += -lscf -luutil -lsocket 57a192e90amaguire 58a192e90amaguireROOTSBINPROG= $(ROOTFS_PROG:%=$(ROOTSBIN)/%) 59a192e90amaguire 60a192e90amaguire.KEEP_STATE: 61a192e90amaguire 62a192e90amaguireall: $(PROG) 63a192e90amaguire 649444c26Tom Whitteninstall: all $(ROOTSBINPROG) $(ROOTUSRSBINLINKS) $(ROOTSVCMANIFESTS) \ 65a192e90amaguire $(ROOTSVCMETHOD) 66a192e90amaguire 67a192e90amaguire$(ROOTUSRSBINLINKS): 68a192e90amaguire -$(RM) $@; $(SYMLINK) ../../sbin/$(@F) $@ 69a192e90amaguire 70a192e90amaguirecheck: $(CHKMANIFEST) 71a192e90amaguire 72a192e90amaguireclean: 73a192e90amaguire 74a192e90amaguirelint: lint_PROG 75a192e90amaguire 769444c26Tom Whitten$(ROOTSVCMANIFESTS): $(ROOTSVCMANIFESTDIR) 77a192e90amaguire 78a192e90amaguire$(ROOTSVCMANIFESTDIR): 79a192e90amaguire $(INS.dir) 80a192e90amaguire 81a192e90amaguire$(ROOTSVCNETWORK)/%: % 82a192e90amaguire $(INS.file) 83a192e90amaguire 84a192e90amaguire$(ROOTSVCNETWORKROUTING)/%: % 85a192e90amaguire $(INS.file) 86a192e90amaguire 87a192e90amaguireinclude ../../../Makefile.targ 88