17c478bd9Sstevel@tonic-gate# 2*33f2fefdSDarren Reed# CDDL HEADER START 3*33f2fefdSDarren Reed# 4*33f2fefdSDarren Reed# The contents of this file are subject to the terms of the 5*33f2fefdSDarren Reed# Common Development and Distribution License (the "License"). 6*33f2fefdSDarren Reed# You may not use this file except in compliance with the License. 7*33f2fefdSDarren Reed# 8*33f2fefdSDarren Reed# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*33f2fefdSDarren Reed# or http://www.opensolaris.org/os/licensing. 10*33f2fefdSDarren Reed# See the License for the specific language governing permissions 11*33f2fefdSDarren Reed# and limitations under the License. 12*33f2fefdSDarren Reed# 13*33f2fefdSDarren Reed# When distributing Covered Code, include this CDDL HEADER in each 14*33f2fefdSDarren Reed# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*33f2fefdSDarren Reed# If applicable, add the following below this CDDL HEADER, with the 16*33f2fefdSDarren Reed# fields enclosed by brackets "[]" replaced with your own identifying 17*33f2fefdSDarren Reed# information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate# 19*33f2fefdSDarren Reed# CDDL HEADER END 20*33f2fefdSDarren Reed# 21*33f2fefdSDarren Reed# 22*33f2fefdSDarren Reed# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23*33f2fefdSDarren 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 417c478bd9Sstevel@tonic-gateSHAREIPF= $(ROOT)/usr/share/ipfilter 427c478bd9Sstevel@tonic-gateSHAREIPFX= $(SHAREIPF)/examples 437c478bd9Sstevel@tonic-gate 447c478bd9Sstevel@tonic-gateIPFEXAMPLES= $(EXAMPLES:%=$(SHAREIPFX)/%) 457c478bd9Sstevel@tonic-gateIPFEXSHPROG= $(SHPROG:%=$(SHAREIPFX)/%) 467c478bd9Sstevel@tonic-gate 477c478bd9Sstevel@tonic-gateFILEMODE= 0644 487c478bd9Sstevel@tonic-gateOWNER= root 497c478bd9Sstevel@tonic-gateGROUP= bin 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-gateclobber: 697c478bd9Sstevel@tonic-gate 707c478bd9Sstevel@tonic-gateinstall: all $(SHAREIPF) $(SHAREIPFX) \ 717c478bd9Sstevel@tonic-gate $(IPFEXAMPLES) $(IPFEXSHPROG) 727c478bd9Sstevel@tonic-gate 737c478bd9Sstevel@tonic-gatelint: 747c478bd9Sstevel@tonic-gate 757c478bd9Sstevel@tonic-gateinclude ../../Makefile.targ 767c478bd9Sstevel@tonic-gate 777c478bd9Sstevel@tonic-gate.PARALLEL: 787c478bd9Sstevel@tonic-gate 79