1da14cebeSEric Cheng# 2da14cebeSEric Cheng# CDDL HEADER START 3da14cebeSEric Cheng# 4da14cebeSEric Cheng# The contents of this file are subject to the terms of the 5da14cebeSEric Cheng# Common Development and Distribution License (the "License"). 6da14cebeSEric Cheng# You may not use this file except in compliance with the License. 7da14cebeSEric Cheng# 8da14cebeSEric Cheng# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9da14cebeSEric Cheng# or http://www.opensolaris.org/os/licensing. 10da14cebeSEric Cheng# See the License for the specific language governing permissions 11da14cebeSEric Cheng# and limitations under the License. 12da14cebeSEric Cheng# 13da14cebeSEric Cheng# When distributing Covered Code, include this CDDL HEADER in each 14da14cebeSEric Cheng# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15da14cebeSEric Cheng# If applicable, add the following below this CDDL HEADER, with the 16da14cebeSEric Cheng# fields enclosed by brackets "[]" replaced with your own identifying 17da14cebeSEric Cheng# information: Portions Copyright [yyyy] [name of copyright owner] 18da14cebeSEric Cheng# 19da14cebeSEric Cheng# CDDL HEADER END 20da14cebeSEric Cheng# 21da14cebeSEric Cheng# 22*0dc2366fSVenugopal Iyer# Copyright 2010 Sun Microsystems, Inc. All rights reserved. 23da14cebeSEric Cheng# Use is subject to license terms. 24da14cebeSEric Cheng# 25da14cebeSEric Cheng 26da14cebeSEric ChengPROG=flowadm 27da14cebeSEric Cheng 28da14cebeSEric ChengROOTFS_PROG= $(PROG) 29da14cebeSEric Cheng 30da14cebeSEric ChengPOFILE= $(PROG).po 31da14cebeSEric ChengCONFIGFILES= flowadm.conf flowprop.conf 32da14cebeSEric Cheng 33da14cebeSEric Chenginclude ../Makefile.cmd 34da14cebeSEric Cheng 35da14cebeSEric ChengXGETFLAGS += -a -x $(PROG).xcl 36da14cebeSEric ChengLDLIBS += -L$(ROOT)/lib 37*0dc2366fSVenugopal IyerLDLIBS += -ldladm -linetutil 38da14cebeSEric Cheng 39da14cebeSEric ChengROOTCFGDIR= $(ROOTETC)/dladm 40da14cebeSEric ChengROOTCFGFILES= $(CONFIGFILES:%=$(ROOTCFGDIR)/%) 41da14cebeSEric Cheng 42da14cebeSEric Cheng$(ROOTCFGFILES):= FILEMODE= 644 43da14cebeSEric Cheng 44da14cebeSEric Cheng.KEEP_STATE: 45da14cebeSEric Cheng 46da14cebeSEric Chengall: $(ROOTFS_PROG) 47da14cebeSEric Cheng 48da14cebeSEric Cheng# 49da14cebeSEric Cheng# Message catalog 50da14cebeSEric Cheng# 51da14cebeSEric Cheng_msg: $(POFILE) 52da14cebeSEric Cheng 53da14cebeSEric Cheng$(POFILE): $(PROG).c 54da14cebeSEric Cheng $(RM) $@ 55da14cebeSEric Cheng $(COMPILE.cpp) $(PROG).c > $(POFILE).i 56da14cebeSEric Cheng $(XGETTEXT) $(XGETFLAGS) $(POFILE).i 57da14cebeSEric Cheng sed "/^domain/d" messages.po > $@ 58da14cebeSEric Cheng $(RM) messages.po $(POFILE).i 59da14cebeSEric Cheng 60da14cebeSEric Chenginstall: all $(ROOTSBINPROG) $(ROOTCFGDIR) $(ROOTCFGFILES) 61da14cebeSEric Cheng $(RM) $(ROOTUSRSBINPROG) 62da14cebeSEric Cheng -$(SYMLINK) ../../sbin/$(PROG) $(ROOTUSRSBINPROG) 63da14cebeSEric Cheng 64da14cebeSEric Chengclean: 65da14cebeSEric Cheng 66da14cebeSEric Chenglint: lint_PROG 67da14cebeSEric Cheng 68da14cebeSEric Cheng$(ROOTCFGDIR): 69da14cebeSEric Cheng $(INS.dir) 70da14cebeSEric Cheng 71da14cebeSEric Cheng$(ROOTCFGDIR)/%: $(ROOTCFGDIR) % 72da14cebeSEric Cheng $(INS.file) 73da14cebeSEric Cheng 74da14cebeSEric Chenginclude ../Makefile.targ 75