xref: /onnv-gate/usr/src/cmd/ipf/examples/Makefile (revision 10207:87c40ea3fc4b)
10Sstevel@tonic-gate#
2*8624SDarren.Reed@Sun.COM# CDDL HEADER START
3*8624SDarren.Reed@Sun.COM#
4*8624SDarren.Reed@Sun.COM# The contents of this file are subject to the terms of the
5*8624SDarren.Reed@Sun.COM# Common Development and Distribution License (the "License").
6*8624SDarren.Reed@Sun.COM# You may not use this file except in compliance with the License.
7*8624SDarren.Reed@Sun.COM#
8*8624SDarren.Reed@Sun.COM# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*8624SDarren.Reed@Sun.COM# or http://www.opensolaris.org/os/licensing.
10*8624SDarren.Reed@Sun.COM# See the License for the specific language governing permissions
11*8624SDarren.Reed@Sun.COM# and limitations under the License.
12*8624SDarren.Reed@Sun.COM#
13*8624SDarren.Reed@Sun.COM# When distributing Covered Code, include this CDDL HEADER in each
14*8624SDarren.Reed@Sun.COM# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*8624SDarren.Reed@Sun.COM# If applicable, add the following below this CDDL HEADER, with the
16*8624SDarren.Reed@Sun.COM# fields enclosed by brackets "[]" replaced with your own identifying
17*8624SDarren.Reed@Sun.COM# information: Portions Copyright [yyyy] [name of copyright owner]
18*8624SDarren.Reed@Sun.COM#
19*8624SDarren.Reed@Sun.COM# CDDL HEADER END
20*8624SDarren.Reed@Sun.COM#
21*8624SDarren.Reed@Sun.COM#
22*8624SDarren.Reed@Sun.COM# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
230Sstevel@tonic-gate# Use is subject to license terms.
240Sstevel@tonic-gate#
250Sstevel@tonic-gate#cmd/ipf/examples/Makefile
260Sstevel@tonic-gate#
270Sstevel@tonic-gate
280Sstevel@tonic-gateSHPROG=		mkfilters
290Sstevel@tonic-gateEXAMPLES=	BASIC.NAT BASIC_1.FW BASIC_2.FW \
300Sstevel@tonic-gate		example.1 example.2 example.3 example.4 \
310Sstevel@tonic-gate		example.5 example.6 example.7 example.8 \
320Sstevel@tonic-gate		example.9 example.10 example.11 example.12 \
330Sstevel@tonic-gate		example.13 example.sr firewall ftp-proxy \
340Sstevel@tonic-gate		ftppxy ip_rules nat-setup nat.eg \
350Sstevel@tonic-gate		pool.conf server tcpstate
360Sstevel@tonic-gate
370Sstevel@tonic-gateSHSRCS= $(SHPROG:%=%.sh)
380Sstevel@tonic-gate
390Sstevel@tonic-gateinclude ../../Makefile.cmd
400Sstevel@tonic-gate
410Sstevel@tonic-gateSHAREIPF= $(ROOT)/usr/share/ipfilter
420Sstevel@tonic-gateSHAREIPFX= $(SHAREIPF)/examples
430Sstevel@tonic-gate
440Sstevel@tonic-gateIPFEXAMPLES=	$(EXAMPLES:%=$(SHAREIPFX)/%)
450Sstevel@tonic-gateIPFEXSHPROG=	$(SHPROG:%=$(SHAREIPFX)/%)
460Sstevel@tonic-gate
470Sstevel@tonic-gateFILEMODE= 0644
480Sstevel@tonic-gate
490Sstevel@tonic-gate$(IPFEXSHPROG):=FILEMODE= 0755
500Sstevel@tonic-gate
510Sstevel@tonic-gate$(SHAREIPFX)/% : % $(SHAREIPFX)
520Sstevel@tonic-gate	$(INS.file)
530Sstevel@tonic-gate
540Sstevel@tonic-gate$(SHAREIPF):
550Sstevel@tonic-gate	$(INS.dir)
560Sstevel@tonic-gate
570Sstevel@tonic-gate$(SHAREIPFX):
580Sstevel@tonic-gate	$(INS.dir)
590Sstevel@tonic-gate
600Sstevel@tonic-gate.KEEP_STATE:
610Sstevel@tonic-gate
620Sstevel@tonic-gateall:		$(SHPROG)
630Sstevel@tonic-gate
640Sstevel@tonic-gateclean:
650Sstevel@tonic-gate
660Sstevel@tonic-gateclobber:
670Sstevel@tonic-gate
680Sstevel@tonic-gateinstall:	all $(SHAREIPF) $(SHAREIPFX)  \
690Sstevel@tonic-gate		$(IPFEXAMPLES) $(IPFEXSHPROG)
700Sstevel@tonic-gate
710Sstevel@tonic-gatelint:
720Sstevel@tonic-gate
730Sstevel@tonic-gateinclude ../../Makefile.targ
740Sstevel@tonic-gate
750Sstevel@tonic-gate.PARALLEL:
760Sstevel@tonic-gate
77