xref: /titanic_50/usr/src/cmd/flowstat/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
10dc2366fSVenugopal Iyer#
20dc2366fSVenugopal Iyer# CDDL HEADER START
30dc2366fSVenugopal Iyer#
40dc2366fSVenugopal Iyer# The contents of this file are subject to the terms of the
50dc2366fSVenugopal Iyer# Common Development and Distribution License (the "License").
60dc2366fSVenugopal Iyer# You may not use this file except in compliance with the License.
70dc2366fSVenugopal Iyer#
80dc2366fSVenugopal Iyer# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90dc2366fSVenugopal Iyer# or http://www.opensolaris.org/os/licensing.
100dc2366fSVenugopal Iyer# See the License for the specific language governing permissions
110dc2366fSVenugopal Iyer# and limitations under the License.
120dc2366fSVenugopal Iyer#
130dc2366fSVenugopal Iyer# When distributing Covered Code, include this CDDL HEADER in each
140dc2366fSVenugopal Iyer# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150dc2366fSVenugopal Iyer# If applicable, add the following below this CDDL HEADER, with the
160dc2366fSVenugopal Iyer# fields enclosed by brackets "[]" replaced with your own identifying
170dc2366fSVenugopal Iyer# information: Portions Copyright [yyyy] [name of copyright owner]
180dc2366fSVenugopal Iyer#
190dc2366fSVenugopal Iyer# CDDL HEADER END
200dc2366fSVenugopal Iyer#
210dc2366fSVenugopal Iyer#
220dc2366fSVenugopal Iyer# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
230dc2366fSVenugopal Iyer# Use is subject to license terms.
240dc2366fSVenugopal Iyer#
250dc2366fSVenugopal Iyer
260dc2366fSVenugopal IyerPROG=flowstat
270dc2366fSVenugopal Iyer
280dc2366fSVenugopal IyerROOTFS_PROG= $(PROG)
290dc2366fSVenugopal Iyer
300dc2366fSVenugopal IyerPOFILE= $(PROG).po
310dc2366fSVenugopal Iyer
320dc2366fSVenugopal Iyerinclude ../Makefile.cmd
330dc2366fSVenugopal Iyer
340dc2366fSVenugopal IyerXGETFLAGS += -a -x $(PROG).xcl
350dc2366fSVenugopal IyerLDLIBS += -L$(ROOT)/lib
360dc2366fSVenugopal IyerLDLIBS += -ldladm -linetutil
370dc2366fSVenugopal Iyer
38*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-implicit-function-declaration
39*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized
40*7014882cSRichard Lowe
410dc2366fSVenugopal IyerROOTCFGDIR=	$(ROOTETC)/dladm
420dc2366fSVenugopal Iyer
430dc2366fSVenugopal Iyer.KEEP_STATE:
440dc2366fSVenugopal Iyer
450dc2366fSVenugopal Iyerall: $(ROOTFS_PROG)
460dc2366fSVenugopal Iyer
470dc2366fSVenugopal Iyer#
480dc2366fSVenugopal Iyer# Message catalog
490dc2366fSVenugopal Iyer#
500dc2366fSVenugopal Iyer_msg: $(POFILE)
510dc2366fSVenugopal Iyer
520dc2366fSVenugopal Iyer$(POFILE): $(PROG).c
530dc2366fSVenugopal Iyer	$(RM) $@
540dc2366fSVenugopal Iyer	$(COMPILE.cpp) $(PROG).c > $(POFILE).i
550dc2366fSVenugopal Iyer	$(XGETTEXT) $(XGETFLAGS) $(POFILE).i
560dc2366fSVenugopal Iyer	sed "/^domain/d" messages.po > $@
570dc2366fSVenugopal Iyer	$(RM) messages.po $(POFILE).i
580dc2366fSVenugopal Iyer
590dc2366fSVenugopal Iyerinstall: all $(ROOTSBINPROG) $(ROOTCFGDIR)
600dc2366fSVenugopal Iyer	$(RM) $(ROOTUSRSBINPROG)
610dc2366fSVenugopal Iyer	-$(SYMLINK) ../../sbin/$(PROG) $(ROOTUSRSBINPROG)
620dc2366fSVenugopal Iyer
630dc2366fSVenugopal Iyerclean:
640dc2366fSVenugopal Iyer
650dc2366fSVenugopal Iyerlint:	lint_PROG
660dc2366fSVenugopal Iyer
670dc2366fSVenugopal Iyer$(ROOTCFGDIR):
680dc2366fSVenugopal Iyer	$(INS.dir)
690dc2366fSVenugopal Iyer
700dc2366fSVenugopal Iyer$(ROOTCFGDIR)/%: $(ROOTCFGDIR) %
710dc2366fSVenugopal Iyer	$(INS.file)
720dc2366fSVenugopal Iyer
730dc2366fSVenugopal Iyerinclude ../Makefile.targ
74