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