xref: /titanic_50/usr/src/cmd/ipf/examples/Makefile (revision 66ea84940ca8687745ad2a165ef9bf49ec13996f)
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
48OWNER= root
49GROUP= bin
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
68clobber:
69
70install:	all $(SHAREIPF) $(SHAREIPFX)  \
71		$(IPFEXAMPLES) $(IPFEXSHPROG)
72
73lint:
74
75include ../../Makefile.targ
76
77.PARALLEL:
78
79