xref: /illumos-gate/usr/src/cmd/ipf/examples/Makefile (revision 856f710c9dc323b39da5935194d7928ffb99b67f)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21#
22# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25#cmd/ipf/examples/Makefile
26#
27
28SHPROG=		mkfilters
29EXAMPLES=	BASIC.NAT BASIC_1.FW BASIC_2.FW \
30		example.1 example.2 example.3 example.4 \
31		example.5 example.6 example.7 example.8 \
32		example.9 example.10 example.11 example.12 \
33		example.13 example.sr firewall ftp-proxy \
34		ftppxy ip_rules nat-setup nat.eg \
35		pool.conf server tcpstate
36
37SHSRCS= $(SHPROG:%=%.sh)
38
39include ../../Makefile.cmd
40
41CLOBBERFILES =	$(SHPROG)
42
43SHAREIPF= $(ROOT)/usr/share/ipfilter
44SHAREIPFX= $(SHAREIPF)/examples
45
46IPFEXAMPLES=	$(EXAMPLES:%=$(SHAREIPFX)/%)
47IPFEXSHPROG=	$(SHPROG:%=$(SHAREIPFX)/%)
48
49FILEMODE= 0644
50
51$(IPFEXSHPROG):=FILEMODE= 0755
52
53$(SHAREIPFX)/% : % $(SHAREIPFX)
54	$(INS.file)
55
56$(SHAREIPF):
57	$(INS.dir)
58
59$(SHAREIPFX):
60	$(INS.dir)
61
62.KEEP_STATE:
63
64all:		$(SHPROG)
65
66clean:
67
68install:	all $(SHAREIPF) $(SHAREIPFX)  \
69		$(IPFEXAMPLES) $(IPFEXSHPROG)
70
71lint:
72
73include ../../Makefile.targ
74
75.PARALLEL:
76
77