1# 2# Copyright 2003 Sun Microsystems, Inc. All rights reserved. 3# Use is subject to license terms. 4# 5#ident "%Z%%M% %I% %E% SMI" 6# 7#cmd/ipf/examples/Makefile 8# 9 10SHPROG= mkfilters 11EXAMPLES= BASIC.NAT BASIC_1.FW BASIC_2.FW \ 12 example.1 example.2 example.3 example.4 \ 13 example.5 example.6 example.7 example.8 \ 14 example.9 example.10 example.11 example.12 \ 15 example.13 example.sr firewall ftp-proxy \ 16 ftppxy ip_rules nat-setup nat.eg \ 17 pool.conf server tcpstate 18 19SHSRCS= $(SHPROG:%=%.sh) 20 21include ../../Makefile.cmd 22 23SHAREIPF= $(ROOT)/usr/share/ipfilter 24SHAREIPFX= $(SHAREIPF)/examples 25 26IPFEXAMPLES= $(EXAMPLES:%=$(SHAREIPFX)/%) 27IPFEXSHPROG= $(SHPROG:%=$(SHAREIPFX)/%) 28 29FILEMODE= 0644 30OWNER= root 31GROUP= bin 32 33$(IPFEXSHPROG):=FILEMODE= 0755 34 35$(SHAREIPFX)/% : % $(SHAREIPFX) 36 $(INS.file) 37 38$(SHAREIPF): 39 $(INS.dir) 40 41$(SHAREIPFX): 42 $(INS.dir) 43 44.KEEP_STATE: 45 46all: $(SHPROG) 47 48clean: 49 50clobber: 51 52install: all $(SHAREIPF) $(SHAREIPFX) \ 53 $(IPFEXAMPLES) $(IPFEXSHPROG) 54 55lint: 56 57include ../../Makefile.targ 58 59.PARALLEL: 60 61