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