xref: /titanic_41/usr/src/cmd/ipf/examples/Makefile (revision 0b42f15ac52b077791d4ba079e8c163c592c3fda)
17c478bd9Sstevel@tonic-gate#
233f2fefdSDarren Reed# CDDL HEADER START
37c478bd9Sstevel@tonic-gate#
433f2fefdSDarren Reed# The contents of this file are subject to the terms of the
533f2fefdSDarren Reed# Common Development and Distribution License (the "License").
633f2fefdSDarren Reed# You may not use this file except in compliance with the License.
733f2fefdSDarren Reed#
833f2fefdSDarren Reed# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
933f2fefdSDarren Reed# or http://www.opensolaris.org/os/licensing.
1033f2fefdSDarren Reed# See the License for the specific language governing permissions
1133f2fefdSDarren Reed# and limitations under the License.
1233f2fefdSDarren Reed#
1333f2fefdSDarren Reed# When distributing Covered Code, include this CDDL HEADER in each
1433f2fefdSDarren Reed# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1533f2fefdSDarren Reed# If applicable, add the following below this CDDL HEADER, with the
1633f2fefdSDarren Reed# fields enclosed by brackets "[]" replaced with your own identifying
1733f2fefdSDarren Reed# information: Portions Copyright [yyyy] [name of copyright owner]
1833f2fefdSDarren Reed#
1933f2fefdSDarren Reed# CDDL HEADER END
2033f2fefdSDarren Reed#
2133f2fefdSDarren Reed#
2233f2fefdSDarren Reed# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
2333f2fefdSDarren Reed# Use is subject to license terms.
247c478bd9Sstevel@tonic-gate#
257c478bd9Sstevel@tonic-gate#cmd/ipf/examples/Makefile
267c478bd9Sstevel@tonic-gate#
277c478bd9Sstevel@tonic-gate
287c478bd9Sstevel@tonic-gateSHPROG=		mkfilters
297c478bd9Sstevel@tonic-gateEXAMPLES=	BASIC.NAT BASIC_1.FW BASIC_2.FW \
307c478bd9Sstevel@tonic-gate		example.1 example.2 example.3 example.4 \
317c478bd9Sstevel@tonic-gate		example.5 example.6 example.7 example.8 \
327c478bd9Sstevel@tonic-gate		example.9 example.10 example.11 example.12 \
337c478bd9Sstevel@tonic-gate		example.13 example.sr firewall ftp-proxy \
347c478bd9Sstevel@tonic-gate		ftppxy ip_rules nat-setup nat.eg \
357c478bd9Sstevel@tonic-gate		pool.conf server tcpstate
367c478bd9Sstevel@tonic-gate
377c478bd9Sstevel@tonic-gateSHSRCS= $(SHPROG:%=%.sh)
387c478bd9Sstevel@tonic-gate
397c478bd9Sstevel@tonic-gateinclude ../../Makefile.cmd
407c478bd9Sstevel@tonic-gate
41*b6805bf7SGordon RossCLOBBERFILES =	$(SHPROG)
42*b6805bf7SGordon Ross
437c478bd9Sstevel@tonic-gateSHAREIPF= $(ROOT)/usr/share/ipfilter
447c478bd9Sstevel@tonic-gateSHAREIPFX= $(SHAREIPF)/examples
457c478bd9Sstevel@tonic-gate
467c478bd9Sstevel@tonic-gateIPFEXAMPLES=	$(EXAMPLES:%=$(SHAREIPFX)/%)
477c478bd9Sstevel@tonic-gateIPFEXSHPROG=	$(SHPROG:%=$(SHAREIPFX)/%)
487c478bd9Sstevel@tonic-gate
497c478bd9Sstevel@tonic-gateFILEMODE= 0644
507c478bd9Sstevel@tonic-gate
517c478bd9Sstevel@tonic-gate$(IPFEXSHPROG):=FILEMODE= 0755
527c478bd9Sstevel@tonic-gate
537c478bd9Sstevel@tonic-gate$(SHAREIPFX)/% : % $(SHAREIPFX)
547c478bd9Sstevel@tonic-gate	$(INS.file)
557c478bd9Sstevel@tonic-gate
567c478bd9Sstevel@tonic-gate$(SHAREIPF):
577c478bd9Sstevel@tonic-gate	$(INS.dir)
587c478bd9Sstevel@tonic-gate
597c478bd9Sstevel@tonic-gate$(SHAREIPFX):
607c478bd9Sstevel@tonic-gate	$(INS.dir)
617c478bd9Sstevel@tonic-gate
627c478bd9Sstevel@tonic-gate.KEEP_STATE:
637c478bd9Sstevel@tonic-gate
647c478bd9Sstevel@tonic-gateall:		$(SHPROG)
657c478bd9Sstevel@tonic-gate
667c478bd9Sstevel@tonic-gateclean:
677c478bd9Sstevel@tonic-gate
687c478bd9Sstevel@tonic-gateinstall:	all $(SHAREIPF) $(SHAREIPFX)  \
697c478bd9Sstevel@tonic-gate		$(IPFEXAMPLES) $(IPFEXSHPROG)
707c478bd9Sstevel@tonic-gate
717c478bd9Sstevel@tonic-gatelint:
727c478bd9Sstevel@tonic-gate
737c478bd9Sstevel@tonic-gateinclude ../../Makefile.targ
747c478bd9Sstevel@tonic-gate
757c478bd9Sstevel@tonic-gate.PARALLEL:
767c478bd9Sstevel@tonic-gate
77