xref: /illumos-gate/usr/src/cmd/ipf/svc/Makefile (revision f3ac6781)
17c478bd9Sstevel@tonic-gate#
2381a2a9aSdr# CDDL HEADER START
3381a2a9aSdr#
4381a2a9aSdr# The contents of this file are subject to the terms of the
5381a2a9aSdr# Common Development and Distribution License (the "License").
6381a2a9aSdr# You may not use this file except in compliance with the License.
7381a2a9aSdr#
8381a2a9aSdr# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9381a2a9aSdr# or http://www.opensolaris.org/os/licensing.
10381a2a9aSdr# See the License for the specific language governing permissions
11381a2a9aSdr# and limitations under the License.
12381a2a9aSdr#
13381a2a9aSdr# When distributing Covered Code, include this CDDL HEADER in each
14381a2a9aSdr# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15381a2a9aSdr# If applicable, add the following below this CDDL HEADER, with the
16381a2a9aSdr# fields enclosed by brackets "[]" replaced with your own identifying
17381a2a9aSdr# information: Portions Copyright [yyyy] [name of copyright owner]
18381a2a9aSdr#
19381a2a9aSdr# CDDL HEADER END
20381a2a9aSdr#
21381a2a9aSdr#
22*eb1a3463STruong Nguyen# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
237c478bd9Sstevel@tonic-gate# Use is subject to license terms.
247c478bd9Sstevel@tonic-gate#
25*eb1a3463STruong Nguyen
26*eb1a3463STruong NguyenPROG=		svc.ipfd
27*eb1a3463STruong NguyenSRCS =          ipfd.c
287c478bd9Sstevel@tonic-gate
29381a2a9aSdrMANIFEST=	ipfilter.xml
30381a2a9aSdrSVCMETHOD=	ipfilter
317c478bd9Sstevel@tonic-gate
327c478bd9Sstevel@tonic-gateinclude $(SRC)/cmd/Makefile.cmd
337c478bd9Sstevel@tonic-gate
34*eb1a3463STruong NguyenLDLIBS +=       -lscf -lumem
35*eb1a3463STruong Nguyen
367c478bd9Sstevel@tonic-gateROOTMANIFESTDIR=	$(ROOTSVCNETWORK)
37*eb1a3463STruong NguyenROOTCMDDIR=		$(ROOT)/lib/svc/bin
38*eb1a3463STruong Nguyen
39*eb1a3463STruong Nguyenall: $(PROG)
40*eb1a3463STruong Nguyen
41*eb1a3463STruong Nguyen$(PROG): $(SRCS)
42*eb1a3463STruong Nguyen	$(LINK.c) -o $@ $(LDLIBS) $(SRCS) $(CTFMERGE_HOOK)
43*eb1a3463STruong Nguyen	$(POST_PROCESS)
44*eb1a3463STruong Nguyen
45*eb1a3463STruong Nguyenclean:
46*eb1a3463STruong Nguyen	$(RM) $(PROG)
477c478bd9Sstevel@tonic-gate
48*eb1a3463STruong Nguyeninstall:	all $(ROOTCMD) $(ROOTMANIFEST) $(ROOTSVCMETHOD)
497c478bd9Sstevel@tonic-gate
507c478bd9Sstevel@tonic-gatecheck:		$(CHKMANIFEST)
51a192e900Samaguire
52a192e900Samaguireinclude $(SRC)/cmd/Makefile.targ
53