xref: /titanic_52/usr/src/cmd/ipf/examples/Makefile (revision ac88567a7a5bb7f01cf22cf366bc9d6203e24d7a)
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
41SHAREIPF= $(ROOT)/usr/share/ipfilter
42SHAREIPFX= $(SHAREIPF)/examples
43
44IPFEXAMPLES=	$(EXAMPLES:%=$(SHAREIPFX)/%)
45IPFEXSHPROG=	$(SHPROG:%=$(SHAREIPFX)/%)
46
47FILEMODE= 0644
48
49$(IPFEXSHPROG):=FILEMODE= 0755
50
51$(SHAREIPFX)/% : % $(SHAREIPFX)
52	$(INS.file)
53
54$(SHAREIPF):
55	$(INS.dir)
56
57$(SHAREIPFX):
58	$(INS.dir)
59
60.KEEP_STATE:
61
62all:		$(SHPROG)
63
64clean:
65
66clobber:
67
68install:	all $(SHAREIPF) $(SHAREIPFX)  \
69		$(IPFEXAMPLES) $(IPFEXSHPROG)
70
71lint:
72
73include ../../Makefile.targ
74
75.PARALLEL:
76
77