head	1.17;
access;
symbols
	perseant-exfatfs-base-20250801:1.17
	perseant-exfatfs-base-20240630:1.17
	perseant-exfatfs:1.17.0.18
	perseant-exfatfs-base:1.17
	cjep_sun2x:1.17.0.16
	cjep_sun2x-base:1.17
	cjep_staticlib_x-base1:1.17
	cjep_staticlib_x:1.17.0.14
	cjep_staticlib_x-base:1.17
	phil-wifi-20200421:1.17
	phil-wifi-20200411:1.17
	phil-wifi-20200406:1.17
	pgoyette-compat-merge-20190127:1.17
	pgoyette-compat-20190127:1.17
	pgoyette-compat-20190118:1.17
	pgoyette-compat-1226:1.17
	pgoyette-compat-1126:1.17
	pgoyette-compat-1020:1.17
	pgoyette-compat-0930:1.17
	pgoyette-compat-0906:1.17
	pgoyette-compat-0728:1.17
	pgoyette-compat-0625:1.17
	pgoyette-compat-0521:1.17
	pgoyette-compat-0502:1.17
	pgoyette-compat-0422:1.17
	pgoyette-compat-0415:1.17
	pgoyette-compat-0407:1.17
	pgoyette-compat-0330:1.17
	pgoyette-compat-0322:1.17
	pgoyette-compat-0315:1.17
	pgoyette-compat:1.17.0.12
	pgoyette-compat-base:1.17
	prg-localcount2-base3:1.17
	prg-localcount2-base2:1.17
	prg-localcount2-base1:1.17
	prg-localcount2:1.17.0.10
	prg-localcount2-base:1.17
	pgoyette-localcount-20170426:1.17
	bouyer-socketcan-base1:1.17
	pgoyette-localcount-20170320:1.17
	bouyer-socketcan:1.17.0.8
	bouyer-socketcan-base:1.17
	pgoyette-localcount-20170107:1.17
	pgoyette-localcount-20161104:1.17
	localcount-20160914:1.17
	pgoyette-localcount-20160806:1.17
	pgoyette-localcount-20160726:1.17
	pgoyette-localcount:1.17.0.6
	pgoyette-localcount-base:1.17
	netbsd-5-2-3-RELEASE:1.12
	netbsd-5-1-5-RELEASE:1.12
	netbsd-6-0-6-RELEASE:1.16
	netbsd-6-1-5-RELEASE:1.16
	yamt-pagecache-base9:1.17
	yamt-pagecache-tag8:1.14.6.1
	netbsd-6-1-4-RELEASE:1.16
	netbsd-6-0-5-RELEASE:1.16
	tls-earlyentropy:1.17.0.2
	tls-earlyentropy-base:1.17
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.17
	riastradh-drm2-base3:1.17
	netbsd-6-1-3-RELEASE:1.16
	netbsd-6-0-4-RELEASE:1.16
	netbsd-5-2-2-RELEASE:1.12
	netbsd-5-1-4-RELEASE:1.12
	netbsd-6-1-2-RELEASE:1.16
	netbsd-6-0-3-RELEASE:1.16
	netbsd-5-2-1-RELEASE:1.12
	netbsd-5-1-3-RELEASE:1.12
	netbsd-6-1-1-RELEASE:1.16
	netbsd-6-1:1.16.0.10
	netbsd-6-0-2-RELEASE:1.16
	netbsd-6-1-RELEASE:1.16
	netbsd-6-1-RC4:1.16
	netbsd-6-1-RC3:1.16
	agc-symver:1.17.0.4
	agc-symver-base:1.17
	netbsd-6-1-RC2:1.16
	netbsd-6-1-RC1:1.16
	yamt-pagecache-base8:1.17
	netbsd-5-2:1.12.0.2
	netbsd-6-0-1-RELEASE:1.16
	yamt-pagecache-base7:1.17
	netbsd-5-2-RELEASE:1.12
	netbsd-5-2-RC1:1.12
	matt-nb6-plus-nbase:1.16
	yamt-pagecache-base6:1.17
	netbsd-6-0:1.16.0.8
	netbsd-6-0-RELEASE:1.16
	netbsd-6-0-RC2:1.16
	tls-maxphys:1.16.0.6
	tls-maxphys-base:1.17
	matt-nb6-plus:1.16.0.4
	matt-nb6-plus-base:1.16
	netbsd-6-0-RC1:1.16
	yamt-pagecache-base5:1.16
	yamt-pagecache-base4:1.16
	netbsd-6:1.16.0.2
	netbsd-6-base:1.16
	netbsd-5-1-2-RELEASE:1.12
	netbsd-5-1-1-RELEASE:1.12
	yamt-pagecache-base3:1.14
	yamt-pagecache-base2:1.14
	yamt-pagecache:1.14.0.6
	yamt-pagecache-base:1.14
	cherry-xenmp:1.14.0.4
	cherry-xenmp-base:1.14
	bouyer-quota2-nbase:1.14
	bouyer-quota2:1.14.0.2
	bouyer-quota2-base:1.14
	matt-mips64-premerge-20101231:1.14
	matt-nb5-mips64-premerge-20101231:1.12
	matt-nb5-pq3:1.12.0.14
	matt-nb5-pq3-base:1.12
	netbsd-5-1:1.12.0.12
	netbsd-5-1-RELEASE:1.12
	netbsd-5-1-RC4:1.12
	matt-nb5-mips64-k15:1.12
	netbsd-5-1-RC3:1.12
	netbsd-5-1-RC2:1.12
	netbsd-5-1-RC1:1.12
	v4-1-34:1.1.1.14
	netbsd-5-0-2-RELEASE:1.12
	matt-nb5-mips64-premerge-20091211:1.12
	matt-premerge-20091211:1.13
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.12
	matt-nb4-mips64-k7-u2a-k9b:1.12
	matt-nb5-mips64-u1-k1-k5:1.12
	v4-1-33:1.1.1.13
	matt-nb5-mips64:1.12.0.10
	netbsd-5-0-1-RELEASE:1.12
	jym-xensuspend-nbase:1.12
	netbsd-5-0:1.12.0.8
	netbsd-5-0-RELEASE:1.12
	netbsd-5-0-RC4:1.12
	netbsd-5-0-RC3:1.12
	netbsd-5-0-RC2:1.12
	jym-xensuspend:1.12.0.6
	jym-xensuspend-base:1.12
	netbsd-5-0-RC1:1.12
	netbsd-5:1.12.0.4
	netbsd-5-base:1.12
	matt-mips64-base2:1.12
	matt-mips64:1.11.0.14
	netbsd-4-0-1-RELEASE:1.10.4.1
	wrstuden-revivesa-base-3:1.12
	wrstuden-revivesa-base-2:1.12
	wrstuden-fixsa-newbase:1.10.4.1
	wrstuden-revivesa-base-1:1.12
	yamt-pf42-base4:1.12
	yamt-pf42-base3:1.12
	hpcarm-cleanup-nbase:1.12
	v4-1-29:1.1.1.12
	yamt-pf42-baseX:1.11
	yamt-pf42-base2:1.11
	wrstuden-revivesa:1.11.0.12
	wrstuden-revivesa-base:1.12
	yamt-pf42:1.11.0.10
	yamt-pf42-base:1.11
	keiichi-mipv6:1.11.0.8
	keiichi-mipv6-base:1.11
	matt-armv6-nbase:1.11
	matt-armv6-prevmlocking:1.11
	wrstuden-fixsa-base-1:1.10.4.1
	netbsd-4-0:1.10.4.1.0.2
	netbsd-4-0-RELEASE:1.10.4.1
	cube-autoconf:1.11.0.6
	cube-autoconf-base:1.11
	netbsd-4-0-RC5:1.10.4.1
	netbsd-4-0-RC4:1.10.4.1
	netbsd-4-0-RC3:1.10.4.1
	netbsd-4-0-RC2:1.10.4.1
	netbsd-4-0-RC1:1.10.4.1
	matt-armv6:1.11.0.4
	matt-armv6-base:1.11
	matt-mips64-base:1.11
	hpcarm-cleanup:1.11.0.2
	hpcarm-cleanup-base:1.11
	netbsd-3-1-1-RELEASE:1.9
	netbsd-3-0-3-RELEASE:1.9
	ipfilter-4-1-23-pullup:1.11
	v4-1-23:1.1.1.11
	BEFORE-IPF-4_1_23:1.11
	ipfilter-4-1-22-pullup:1.11
	wrstuden-fixsa:1.10.0.6
	wrstuden-fixsa-base:1.10.4.1
	v4-1-22:1.1.1.11
	BEFORE-IPF-4_1_22:1.10
	ipfilter-4-1-20-pullup:1.10
	v4-1-20:1.1.1.10
	BEFORE-IPF-4_1_20:1.10
	v4-1-19:1.1.1.10
	BEFORE-IPF-4_1_19:1.10
	abandoned-netbsd-4-base:1.10
	abandoned-netbsd-4:1.10.0.2
	netbsd-3-1:1.9.0.8
	netbsd-3-1-RELEASE:1.9
	netbsd-3-0-2-RELEASE:1.9
	netbsd-3-1-RC4:1.9
	netbsd-3-1-RC3:1.9
	netbsd-3-1-RC2:1.9
	netbsd-3-1-RC1:1.9
	netbsd-4:1.10.0.4
	netbsd-4-base:1.10
	netbsd-3-0-1-RELEASE:1.9
	v4-1-13:1.1.1.10
	BEFORE-IPF-4_1_13:1.9
	peter-altq-base:1.9
	peter-altq:1.9.0.6
	netbsd-3-0:1.9.0.4
	netbsd-3-0-RELEASE:1.9
	netbsd-3-0-RC6:1.9
	netbsd-3-0-RC5:1.9
	netbsd-3-0-RC4:1.9
	netbsd-3-0-RC3:1.9
	netbsd-3-0-RC2:1.9
	netbsd-3-0-RC1:1.9
	netbsd-2-0-3-RELEASE:1.7.2.1
	netbsd-2-1:1.7.2.1.0.4
	netbsd-2-1-RELEASE:1.7.2.1
	netbsd-2-1-RC6:1.7.2.1
	netbsd-2-1-RC5:1.7.2.1
	netbsd-2-1-RC4:1.7.2.1
	netbsd-2-1-RC3:1.7.2.1
	netbsd-2-1-RC2:1.7.2.1
	netbsd-2-1-RC1:1.7.2.1
	v4-1-8:1.1.1.9
	netbsd-2-0-2-RELEASE:1.7.2.1
	netbsd-3:1.9.0.2
	netbsd-3-base:1.9
	v4-1-6:1.1.1.9
	v4-1-5:1.1.1.9
	netbsd-2-0-1-RELEASE:1.7.2.1
	netbsd-2:1.7.2.1.0.2
	netbsd-2-base:1.7.2.1
	netbsd-2-0-RELEASE:1.7.2.1
	netbsd-2-0-RC5:1.7.2.1
	netbsd-2-0-RC4:1.7.2.1
	netbsd-2-0-RC3:1.7.2.1
	netbsd-2-0-RC2:1.7.2.1
	netbsd-2-0-RC1:1.7.2.1
	v4-1-3:1.1.1.8
	netbsd-2-0:1.7.0.2
	netbsd-2-0-base:1.7
	v4-1-1:1.1.1.7
	netbsd-1-6-PATCH002-RELEASE:1.6
	netbsd-1-6-PATCH002:1.6
	netbsd-1-6-PATCH002-RC4:1.6
	netbsd-1-6-PATCH002-RC3:1.6
	netbsd-1-6-PATCH002-RC2:1.6
	netbsd-1-6-PATCH002-RC1:1.6
	netbsd-1-6-PATCH001:1.6
	netbsd-1-6-PATCH001-RELEASE:1.6
	netbsd-1-6-PATCH001-RC3:1.6
	netbsd-1-6-PATCH001-RC2:1.6
	netbsd-1-6-PATCH001-RC1:1.6
	fvdl_fs64_base:1.6
	v3-4-29:1.1.1.6
	netbsd-1-6-RELEASE:1.6
	netbsd-1-6-RC3:1.6
	netbsd-1-6-RC2:1.6
	netbsd-1-6-RC1:1.6
	netbsd-1-6:1.6.0.2
	netbsd-1-6-base:1.6
	v3-4-27:1.1.1.6
	netbsd-1-5-PATCH003:1.2.4.1
	v3-4-25:1.1.1.6
	v3-4-23:1.1.1.5
	netbsd-1-5-PATCH002:1.2
	netbsd-1-5-PATCH001:1.2
	v3-4-16:1.1.1.4
	netbsd-1-5-RELEASE:1.2
	netbsd-1-5-BETA2:1.2
	netbsd-1-5-BETA:1.2
	netbsd-1-4-PATCH003:1.1.1.1.2.2
	netbsd-1-5-ALPHA2:1.2
	v3-4-9:1.1.1.3
	netbsd-1-5:1.2.0.4
	netbsd-1-5-base:1.2
	v3-4-6:1.1.1.2
	minoura-xpg4dl:1.2.0.2
	minoura-xpg4dl-base:1.2
	v3-4-4:1.1.1.2
	v3-4-3:1.1.1.2
	v3-4-2:1.1.1.2
	v3-4-1:1.1.1.2
	netbsd-1-4-PATCH002:1.1.1.1.2.2
	v3-3-8:1.1.1.1
	wrstuden-devbsize-base:1.1
	v3-3-6:1.1.1.1
	wrstuden-devbsize:1.1.1.1.0.4
	wrstuden-devbsize-19991221:1.1
	netbsd-1-4:1.1.1.1.0.2
	v3-3-5:1.1.1.1
	DARRENR:1.1.1;
locks; strict;
comment	@# @;


1.17
date	2012.09.15.18.12.21;	author plunky;	state dead;
branches;
next	1.16;

1.16
date	2012.02.15.17.55.03;	author riz;	state Exp;
branches
	1.16.6.1;
next	1.15;

1.15
date	2012.01.30.16.12.02;	author darrenr;	state dead;
branches;
next	1.14;

1.14
date	2010.04.17.21.00.08;	author darrenr;	state Exp;
branches
	1.14.6.1;
next	1.13;

1.13
date	2009.08.19.08.35.30;	author darrenr;	state Exp;
branches;
next	1.12;

1.12
date	2008.05.20.07.08.06;	author darrenr;	state Exp;
branches;
next	1.11;

1.11
date	2007.05.15.22.52.20;	author martin;	state Exp;
branches
	1.11.10.1
	1.11.12.1;
next	1.10;

1.10
date	2006.04.04.16.17.18;	author martti;	state Exp;
branches
	1.10.4.1
	1.10.6.1;
next	1.9;

1.9
date	2005.02.08.07.01.52;	author martti;	state Exp;
branches
	1.9.6.1;
next	1.8;

1.8
date	2004.07.23.05.39.03;	author martti;	state Exp;
branches;
next	1.7;

1.7
date	2004.03.28.09.00.53;	author martti;	state Exp;
branches
	1.7.2.1;
next	1.6;

1.6
date	2002.03.14.12.32.36;	author martti;	state Exp;
branches;
next	1.5;

1.5
date	2002.01.24.08.21.31;	author martti;	state Exp;
branches;
next	1.4;

1.4
date	2001.03.26.06.11.46;	author mike;	state Exp;
branches;
next	1.3;

1.3
date	2000.08.09.21.03.01;	author veego;	state Exp;
branches;
next	1.2;

1.2
date	2000.05.03.11.40.15;	author veego;	state Exp;
branches
	1.2.4.1;
next	1.1;

1.1
date	99.12.11.22.23.57;	author veego;	state Exp;
branches
	1.1.1.1;
next	;

1.16.6.1
date	2012.11.20.02.57.30;	author tls;	state dead;
branches;
next	;

1.14.6.1
date	2012.10.30.18.48.08;	author yamt;	state dead;
branches;
next	;

1.11.10.1
date	2008.06.04.02.03.00;	author yamt;	state Exp;
branches;
next	;

1.11.12.1
date	2008.06.23.04.28.44;	author wrstuden;	state Exp;
branches;
next	;

1.10.4.1
date	2007.05.22.22.54.24;	author pavel;	state Exp;
branches;
next	;

1.10.6.1
date	2007.06.03.17.25.42;	author wrstuden;	state Exp;
branches;
next	;

1.9.6.1
date	2006.05.24.15.47.45;	author tron;	state Exp;
branches;
next	;

1.7.2.1
date	2004.08.13.03.56.16;	author jmc;	state Exp;
branches;
next	;

1.2.4.1
date	2002.02.09.16.55.26;	author he;	state Exp;
branches;
next	1.2.4.2;

1.2.4.2
date	2002.10.18.13.16.51;	author itojun;	state Exp;
branches;
next	;

1.1.1.1
date	99.12.11.22.23.57;	author veego;	state Exp;
branches
	1.1.1.1.2.1
	1.1.1.1.4.1;
next	1.1.1.2;

1.1.1.2
date	2000.05.03.10.55.28;	author veego;	state Exp;
branches;
next	1.1.1.3;

1.1.1.3
date	2000.08.09.20.49.02;	author veego;	state Exp;
branches;
next	1.1.1.4;

1.1.1.4
date	2001.03.26.03.52.16;	author mike;	state Exp;
branches;
next	1.1.1.5;

1.1.1.5
date	2002.01.24.08.18.29;	author martti;	state Exp;
branches;
next	1.1.1.6;

1.1.1.6
date	2002.03.14.12.30.07;	author martti;	state Exp;
branches;
next	1.1.1.7;

1.1.1.7
date	2004.03.28.08.55.21;	author martti;	state Exp;
branches;
next	1.1.1.8;

1.1.1.8
date	2004.07.23.05.33.41;	author martti;	state Exp;
branches;
next	1.1.1.9;

1.1.1.9
date	2005.02.08.06.52.54;	author martti;	state Exp;
branches;
next	1.1.1.10;

1.1.1.10
date	2006.04.04.16.08.16;	author martti;	state Exp;
branches;
next	1.1.1.11;

1.1.1.11
date	2007.05.15.22.25.57;	author martin;	state Exp;
branches;
next	1.1.1.12;

1.1.1.12
date	2008.05.20.06.43.47;	author darrenr;	state Exp;
branches;
next	1.1.1.13;

1.1.1.13
date	2009.08.19.08.29.16;	author darrenr;	state Exp;
branches;
next	1.1.1.14;

1.1.1.14
date	2010.04.17.20.44.35;	author darrenr;	state Exp;
branches;
next	;

1.1.1.1.2.1
date	99.12.11.22.23.57;	author he;	state dead;
branches;
next	1.1.1.1.2.2;

1.1.1.1.2.2
date	99.12.20.21.01.42;	author he;	state Exp;
branches;
next	;

1.1.1.1.4.1
date	99.12.27.18.27.51;	author wrstuden;	state Exp;
branches;
next	;


desc
@@


1.17
log
@IPF 5.1.2 is in external/bsd/ipf and sys/external/bsd/ipf now;
these files are obsolete
@
text
@#
# Copyright (C) 1993-2001 by Darren Reed.
#
# Redistribution and use in source and binary forms are permitted
# provided that this notice is preserved and due credit is given
# to the original author and the contributors.
#
# Id: Makefile,v 2.76.2.31 2010/01/31 16:22:53 darrenr Exp
#
SHELL=/bin/sh
BINDEST=/usr/local/bin
SBINDEST=/sbin
MANDIR=/usr/local/man
#To test prototyping
#CC=gcc -Wstrict-prototypes -Wmissing-prototypes
# -Wunused -Wuninitialized
#CC=gcc
#CC=cc -Dconst=
DEBUG=-g
# -O
CFLAGS=-I$$(TOP) -D_BSD_SOURCE
CPU=`uname -m`
CPUDIR=`uname -s|sed -e 's@@/@@@@g'`-`uname -r`-`uname -m`
OBJ=.
#
# To enable this to work as a Loadable Kernel Module...
#
IPFLKM=-DIPFILTER_LKM
#
# To enable logging of blocked/passed packets...
#
IPFLOG=-DIPFILTER_LOG
#
# To enable loading filter rules compiled to C code...
#
#COMPIPF=-DIPFILTER_COMPILED
#
# To enable IPFilter compatibility with older CLI utilities
#
COMPATIPF=-DIPFILTER_COMPAT
#
# To enable synchronisation between IPFilter hosts
#
#SYNC=-DIPFILTER_SYNC
#
# To enable extended IPFilter functionality
#
LOOKUP=-DIPFILTER_LOOKUP -DIPFILTER_SCAN
#
# The facility you wish to log messages from ipmon to syslogd with.
#
LOGFAC=-DLOGFAC=LOG_LOCAL0
#
# To enable rules to be written with BPF syntax, uncomment these two lines.
#
# WARNING: If you're building a commercial product based on IPFilter, using
#          this options *may* infringe at least one patent held by CheckPoint
#          (5,606,668.)
#
#IPFBPF=-DIPFILTER_BPF -I/usr/local/include
#LIBBPF=-L/usr/local/lib -lpcap
#
# HP-UX and Solaris require this uncommented for BPF.
#
#BPFILTER=bpf_filter.o
#
# LINUXKERNEL is the path to the top of your Linux kernel source tree.
# By default IPFilter looks for /usr/src/linux, but you may have to change
# it to /usr/src/linux-2.4 or similar.
#
LINUXKERNEL=/usr/src/kernels/2.6.29.5-191.fc11.i586
LINUX=`uname -r | awk -F. ' { printf"%d",$$1;for(i=1;i<NF&&i<3;i++){printf("%02d",$$(i+1));}}'`
#
#
#
#BUILDROOT=/usr/src/redhat/BUILD/ipfilter
BUILDROOT=${HOME}/rpmbuild/BUILDROOT/ipfilter-4.1.32-1.i386

#
# All of the compile-time options are here, used for compiling the userland
# tools for regression testing.  Well, all except for IPFILTER_LKM, of course.
#
ALLOPTS=-DIPFILTER_LOG -DIPFILTER_LOOKUP \
        -DIPFILTER_SCAN -DIPFILTER_SYNC -DIPFILTER_CKSUM

#
# Uncomment the next 3 lines if you want to view the state table a la top(1)
# (requires that you have installed ncurses).
#STATETOP_CFLAGS=-DSTATETOP
#
# Where to find the ncurses include files (if not in default path),
#
#STATETOP_INC=
#STATETOP_INC=-I/usr/local/include
#
# How to link the ncurses library
#
#STATETOP_LIB=-lncurses
#STATETOP_LIB=-L/usr/local/lib -lncurses

#
# Uncomment this when building IPv6 capability.
#
#INET6=-DUSE_INET6
#
# For packets which don't match any pass rules or any block rules, set either
# FR_PASS or FR_BLOCK (respectively).  It defaults to FR_PASS if left
# undefined.  This is ignored for ipftest, which can thus return three
# results: pass, block and nomatch.  This is the sort of "block unless
# explicitly allowed" type #define switch.
#
POLICY=-DIPF_DEFAULT_PASS=FR_PASS
#
MFLAGS1='CFLAGS=$(CFLAGS) $(ARCHINC) $(SOLARIS2) $(SGIREV) $(INET6)' \
	"IPFLOG=$(IPFLOG)" "LOGFAC=$(LOGFAC)" "POLICY=$(POLICY)" \
	"SOLARIS2=$(SOLARIS2)" "DEBUG=$(DEBUG)" "DCPU=$(CPU)" \
        "LIBBPF=$(LIBBPF)" "CPUDIR=$(CPUDIR)" "IPFBPF=$(IPFBPF)" \
        'STATETOP_CFLAGS=$(STATETOP_CFLAGS)' "BPFILTER=$(BPFILTER)" \
        'STATETOP_INC=$(STATETOP_INC)' 'STATETOP_LIB=$(STATETOP_LIB)' \
	"BITS=$(BITS)" "OBJ=$(OBJ)" "LOOKUP=$(LOOKUP)" "COMPIPF=$(COMPIPF)" \
	"COMPATIPF=$(COMPATIPF)" \
	'SYNC=$(SYNC)' 'ALLOPTS=$(ALLOPTS)' 'LIBBPF=$(LIBBPF)'
MFLAGS=$(MFLAGS1) "IPFLKM=$(IPFLKM)"
MACHASSERT=`/bin/ls -1 /usr/sys/*/mach_assert.h | head -1`
#
SHELL=/bin/sh
#
########## ########## ########## ########## ########## ########## ##########
#
CP=/bin/cp
RM=/bin/rm
CHMOD=/bin/chmod
INSTALL=install
#

all:
	@@echo "Chose one of the following targets for making IP filter:"
	@@echo ""
	@@echo "solaris	- auto-selects SunOS4.1.x/Solaris 2.3-6/Solaris2.4-6x86"
	@@echo "netbsd	- compile for NetBSD"
	@@echo "openbsd	- compile for OpenBSD"
	@@echo "freebsd20	- compile for FreeBSD 2.0, 2.1 or earlier"
	@@echo "freebsd22	- compile for FreeBSD-2.2 or greater"
	@@echo "freebsd	- compile for all other versions of FreeBSD"
	@@echo "bsd	- compile for generic 4.4BSD systems"
	@@echo "bsdi	- compile for BSD/OS"
	@@echo "irix	- compile for SGI IRIX"
	@@echo "hpux	- compile for HP-UX 11.00"
	@@echo "osf	- compile for OSF/Tru64 5.1"
	@@echo ""

tests:
	@@if [ -d test ]; then (cd test; make) \
	else echo test directory not present, sorry; fi

retest:
	@@if [ -d test ]; then (cd test; make clean && make) \
	else echo test directory not present, sorry; fi

include:
	-mkdir -p net netinet
	if [ ! -f netinet/done ] ; then \
		(cd netinet; ln -s ../*.h .; ln -s ../ip_*_pxy.c .;); \
		(cd netinet; ln -s ../ipsend/tcpip.h tcpip.h); \
		touch netinet/done; \
	fi
	-(cd netinet; ln -s ../ip_rules.h ip_rules.h)
	if [ ! -f net/done ] ; then \
		(cd net; ln -s ../radix_ipf.h .; ); \
		touch net/done; \
	fi

sunos solaris: include
	MAKE="$(MAKE)" MAKEFLAGS="$(MAKEFLAGS)" BPFILTER=$(BPFILTER) \
		CC="$(CC)" DEBUG="$(DEBUG)" ./buildsunos

freebsd:
	make freebsd`uname -r|cut -c1`

freebsd22: include
	make setup "TARGOS=BSD" "CPUDIR=$(CPUDIR)"
	-rm -f BSD/$(CPUDIR)/ioconf.h
	-if [ x$(IPFILKERN) != x ] ; then \
		if [ -f /sys/compile/$(IPFILKERN)/ioconf.h ] ; then \
			ln -s /sys/compile/$(IPFILKERN)/ioconf.h BSD/$$y; \
		else \
			ln -s /sys/$(IPFILKERN)/ioconf.h BSD/$$y; \
		fi \
	else \
		x=`uname -v|sed -e 's@@^.*:\(/[^: ]*\).*$$@@\1/ioconf.h@@'`; \
		y=`uname -s|sed -e 's@@/@@@@g'`-`uname -r`-`uname -m`; \
		if [ ! -f $$x ] ; then \
			echo -n "Can't find ioconf.h at $$x "; \
			exit 1;\
		else \
			ln -s $$x BSD/$$y ; \
		fi \
	fi
	make freebsd20

freebsd5 freebsd6 freebsd7 freebsd8: include
	if [ x$(INET6) = x ] ; then \
		echo "#undef INET6" > opt_inet6.h; \
	else \
		echo "#define INET6" > opt_inet6.h; \
	fi
	if [ "x$(IPFBPF)" = "x" ] ; then \
		echo "#undef NBPF" > opt_bpf.h; \
		echo "#undef NBPFILTER" > opt_bpf.h; \
		echo "#undef DEV_BPF" > opt_bpf.h; \
	else \
		echo "#define NBPF" > opt_bpf.h; \
		echo "#define NBPFILTER" > opt_bpf.h; \
		echo "#define DEV_BPF" > opt_bpf.h; \
	fi
	if [ x$(ENABLE_PFIL) = x ] ; then \
		echo "#undef PFIL_HOOKS" > opt_pfil.h; \
	else \
		echo "#define PFIL_HOOKS" > opt_pfil.h; \
	fi

	make setup "TARGOS=BSD" "CPUDIR=$(CPUDIR)"
	(cd BSD/$(CPUDIR); make build TOP=../.. $(MFLAGS) "ML=mlfk_ipl.c" "MLD=mlfk_ipl.c" "LKM=ipf.ko.5" "LKMR=ipfrule.ko.5" "DLKM=-DKLD_MODULE" "MLR=mlfk_rule.o"; cd ..)
#	(cd BSD/$(CPUDIR); make -f Makefile.ipsend build TOP=../.. $(MFLAGS1); cd ..)

freebsd4 : include
	if [ x$(INET6) = x ] ; then \
		echo "#undef INET6" > opt_inet6.h; \
	else \
		echo "#define INET6" > opt_inet6.h; \
	fi
	make setup "TARGOS=BSD" "CPUDIR=$(CPUDIR)"
	(cd BSD/$(CPUDIR); make build TOP=../.. $(MFLAGS) "ML=mlfk_ipl.c" "MLD=mlfk_ipl.c" "LKM=ipf.ko" "LKMR=ipfrule.ko" "DLKM=-DKLD_MODULE" "MLR=mlfk_rule.o"; cd ..)
	(cd BSD/$(CPUDIR); make -f Makefile.ipsend build TOP=../.. $(MFLAGS1); cd ..)

freebsd3 freebsd30: include
	make setup "TARGOS=BSD" "CPUDIR=$(CPUDIR)"
	(cd BSD/$(CPUDIR); make build TOP=../.. $(MFLAGS1) "ML=mlf_ipl.c" "MLR=mlf_rule.o" LKM= LKMR=; cd ..)
	(cd BSD/$(CPUDIR); make -f Makefile.ipsend build TOP=../.. $(MFLAGS1); cd ..)

netbsd: include
	make setup "TARGOS=BSD" "CPUDIR=$(CPUDIR)"
	@@if [ ! -d /sys -o ! -d /sys/arch ] ; then \
		echo "*****************************************************"; \
		echo "*                                                   *"; \
		echo "* Please extract source code to create /sys and     *";\
		echo "* /sys/arch and run 'config GENERIC'                *"; \
		echo "*                                                   *"; \
		echo "*****************************************************"; \
		exit 1; \
	fi
	(cd BSD/$(CPUDIR); make build TOP=../.. $(MFLAGS) 'DLKM=-D_LKM' "ML=mln_ipl.c" LKMR= "MLR=mln_rule.o"; cd ..)
#	(cd BSD/$(CPUDIR); make -f Makefile.ipsend build TOP=../.. $(MFLAGS); cd ..)

openbsd: include
	make setup "TARGOS=BSD" "CPUDIR=$(CPUDIR)"
	(cd BSD/$(CPUDIR); make build TOP=../.. $(MFLAGS) 'DLKM=-D_LKM' "ML=mlo_ipl.c" LKMR= "MLR=mlo_rule.o"; cd ..)
	(cd BSD/$(CPUDIR); make -f Makefile.ipsend build TOP=../.. $(MFLAGS); cd ..)

freebsd20 freebsd21: include
	make setup "TARGOS=BSD" "CPUDIR=$(CPUDIR)"
	(cd BSD/$(CPUDIR); make build TOP=../.. $(MFLAGS) "ML=mlf_ipl.c" "MLR=mlf_rule.o"; cd ..)
	(cd BSD/$(CPUDIR); make -f Makefile.ipsend build TOP=../.. $(MFLAGS); cd ..)

osf tru64: null include
	make setup "TARGOS=OSF" "CPUDIR=`OSF/cpurev`"
	(cd OSF/`OSF/cpurev`; make build TRU64=`uname -v` TOP=../.. "DEBUG=-g" $(MFLAGS) "MACHASSERT=$(MACHASSERT)" "OSREV=`../cpurev`"; cd ..)
	(cd OSF/`OSF/cpurev`; make -f Makefile.ipsend build TRU64=`uname -v` TOP=../.. $(MFLAGS) "OSREV=`../cpurev`"; cd ..)

aix: null include
	make setup "TARGOS=AIX" "CPUDIR=`AIX/cpurev`"
	(cd AIX/`AIX/cpurev`; make build AIX=`uname -v` TOP=../.. "DEBUG=-g" $(MFLAGS) "OSREV=`../cpurev`" BITS=`../bootbits.sh`; cd ..)
#	(cd AIX/`AIX/cpurev`; make -f Makefile.ipsend build AIX=`uname -v` TOP=../.. $(MFLAGS) "OSREV=`../cpurev`"; cd ..)

bsd: include
	make setup "TARGOS=BSD" "CPUDIR=$(CPUDIR)"
	(cd BSD/$(CPUDIR); make build TOP=../.. $(MFLAGS) 'DLKM=-D_LKM' "ML=mln_ipl.c" "MLR=mln_rule.o"; cd ..)
	(cd BSD/$(CPUDIR); make -f Makefile.ipsend build TOP=../.. $(MFLAGS); cd ..)

bsdi bsdos: include
	make setup "TARGOS=BSD" "CPUDIR=$(CPUDIR)"
	(cd BSD/$(CPUDIR); make build "CC=$(CC)" TOP=../.. $(MFLAGS) LKM= LKMR= ; cd ..)
	(cd BSD/$(CPUDIR); make -f Makefile.ipsend build "CC=$(CC)" TOP=../.. $(MFLAGS); cd ..)

irix IRIX: include
	make setup TARGOS=IRIX CPUDIR=`IRIX/cpurev`
	if [ "x${SGIREV}" = "x" ] ; then \
		make irix "SGIREV=-D_KMEMUSER -DIRIX=`IRIX/getrev`"; \
	else \
		(cd IRIX/`IRIX/cpurev`; smake -l -J 1 build TOP=../.. $(DEST) $(MFLAGS) IRIX=`../getrev` SGI=$$(IRIX) CPUDIR=`../cpurev`; cd ..); \
		(cd IRIX/`IRIX/cpurev`; make -f Makefile.ipsend build TOP=../.. $(DEST) $(MFLAGS) IRIX=`../getrev` SGI=$$(IRIX) CPUDIR=`../cpurev`; cd ..); \
	fi

setup:
	-if [ ! -d $(TARGOS)/$(CPUDIR) ] ; then mkdir $(TARGOS)/$(CPUDIR); fi
	-rm -f $(TARGOS)/$(CPUDIR)/Makefile $(TARGOS)/$(CPUDIR)/Makefile.ipsend
	-ln -s ../Makefile $(TARGOS)/$(CPUDIR)/Makefile
	-ln -s ../Makefile.ipsend $(TARGOS)/$(CPUDIR)/Makefile.ipsend
	-if [ -f $(TARGOS)/Makefile.common ] ; then \
		rm -f $(TARGOS)/$(CPUDIR)/Makefile.common; \
		ln -s ../Makefile.common $(TARGOS)/$(CPUDIR)/Makefile.common;\
	fi

clean: clean-include
	/bin/rm -rf h y.output
	${RM} -f core *.o ipt fils ipf ipfstat ipftest ipmon if_ipl \
	vnode_if.h $(LKM) *~
	/bin/rm -rf sparcv7 sparcv9 mdbgen_build
	(cd SunOS4; $(MAKE) TOP=.. clean)
	-(cd SunOS5; $(MAKE) TOP=.. clean)
	(cd BSD; $(MAKE) TOP=.. clean)
	(cd HPUX; $(MAKE) BITS=32 TOP=.. clean)
	(cd Linux; $(MAKE) TOP=.. clean)
	(cd OSF; $(MAKE) TOP=.. clean)
	(cd AIX; $(MAKE) TOP=.. clean)
	if [ "`uname -s`" = "IRIX" ]; then (cd IRIX; $(MAKE) clean); fi
	[ -d test ] && (cd test; $(MAKE) clean)
	(cd ipsend; $(MAKE) clean)

clean-include:
	sh -c 'if [ -d netinet ] ; then cd netinet; for i in *; do if [ -h $$i ] ; then /bin/rm -f $$i; fi; done fi'
	sh -c 'if [ -d net ] ; then cd net; for i in *; do if [ -h $$i ] ; then /bin/rm -f $$i; fi; done fi'
	${RM} -f netinet/done net/done

clean-bsd: clean-include
	(cd BSD; make TOP=.. clean)

clean-hpux: clean-include
	(cd HPUX; $(MAKE) BITS=32 clean)

clean-osf: clean-include
	(cd OSF; make clean)

clean-aix: clean-include
	(cd AIX; make clean)

clean-linux: clean-include
	(cd Linux; make clean)

clean-sunos4: clean-include
	(cd SunOS4; make clean)

clean-sunos5: clean-include
	(cd SunOS5; $(MAKE) clean)
	/bin/rm -rf sparcv?

clean-irix: clean-include
	(cd IRIX; $(MAKE) clean)

h/xti.h:
	mkdir -p h
	ln -s /usr/include/sys/xti.h h

hpux: include h/xti.h
	make setup CPUDIR=`HPUX/cpurev` TARGOS=HPUX
	(cd HPUX/`HPUX/cpurev`; $(MAKE) build TOP=../.. $(DEST) $(MFLAGS) "BITS=`getconf KERNEL_BITS`" `../makeargs`; cd ..)
	(cd HPUX/`HPUX/cpurev`; $(MAKE) -f Makefile.ipsend build TOP=../.. $(DEST) $(MFLAGS) "BITS=`getconf KERNEL_BITS`" `../makeargs`; cd ..)

sunos4 solaris1:
	(cd SunOS4; make build TOP=.. "CC=$(CC)" $(DEST) $(MFLAGS); cd ..)
	(cd SunOS4; make -f Makefile.ipsend build "CC=$(CC)" TOP=.. $(DEST) $(MFLAGS); cd ..)

sunos5 solaris2: null
	(cd SunOS5/$(CPUDIR); $(MAKE) build TOP=../.. "CC=$(CC)" $(DEST) $(MFLAGS) "SOLARIS2=$(SOLARIS2)"; cd ..)
	(cd SunOS5/$(CPUDIR); $(MAKE) -f Makefile.ipsend build TOP=../.. "CC=$(CC)" $(DEST) $(MFLAGS); cd ..)

linux: include
	(cd Linux; make build LINUX=$(LINUX) TOP=.. "DEBUG=-g" "CC=$(CC)" $(MFLAGS) OBJ=$(CPUDIR) LINUXKERNEL=$(LINUXKERNEL); cd ..)
	(cd Linux; make ipflkm LINUX=$(LINUX) TOP=.. "DEBUG=-g" "CC=$(CC)" $(MFLAGS) OBJ=$(CPUDIR) LINUXKERNEL=$(LINUXKERNEL) WORKDIR=`pwd`; cd ..)
#	(cd Linux; make -f Makefile.ipsend build LINUX=$(LINUX) TOP=.. "CC=$(CC)" $(MFLAGS); cd ..)

install-linux: linux
	(cd Linux/; make LINUX=$(LINUX) TOP=.. "DEBUG=-g" "CC=$(CC)" $(MFLAGS) OBJ=$(CPUDIR) ROOTDIR=$(BUILDROOT) install ; cd ..)

install-bsd:
	(cd BSD/$(CPUDIR); make install "TOP=../.." $(MFLAGS); cd ..)
	(cd BSD/$(CPUDIR); make -f Makefile.ipsend INSTALL=$(INSTALL) install "TOP=../.." $(MFLAGS); cd ..)

install-sunos4: solaris
	(cd SunOS4; $(MAKE) CPU=$(CPU) TOP=.. install)

install-sunos5: solaris null
	(cd SunOS5; $(MAKE) TOP=.. install)

install-aix:
	(cd AIX/`AIX/cpurev`; make install "TOP=../.." $(MFLAGS); cd ..)
#	(cd AIX/`AIX/cpurev`; make -f Makefile.ipsend INSTALL=$(INSTALL) install "TOP=../.." $(MFLAGS); cd ..)

install-hpux: hpux
	(cd HPUX/`HPUX/cpurev`; $(MAKE) CPU=$(CPU) TOP=../.. "BITS=`getconf KERNEL_BITS`" install)

install-irix: irix
	(cd IRIX; smake install CPU=$(CPU) TOP=.. $(DEST) $(MFLAGS) CPUDIR=`./cpurev`)

install-osf install-tru64:
	(cd OSF/`OSF/cpurev`; make install "TOP=../.." $(MFLAGS); cd ..)

do-cvs:
	find . -type d -name CVS -print | xargs /bin/rm -rf
	find . -type f -name .cvsignore -print | xargs /bin/rm -f
	/bin/rm -f ip_msnrpc_pxy.c ip_sunrpc_pxy.c

ip_rules.c ip_rules.h: rules/ip_rules tools/ipfcomp.c
	-./ipf -n -cc -f rules/ip_rules 2>/dev/null 1>&2

null:
	@@if [ "`$(MAKE) -v 2>&1 | sed -ne 's/GNU.*/GNU/p'`" = "GNU" ] ; then \
		echo 'Do not use GNU make (gmake) to compile IPFilter'; \
		exit 1; \
	fi
	-@@echo make ok

mdb:
	/bin/rm -rf mdbgen_build
	mdbgen -D_KERNEL -DIPFILTER_LOG -DIPFILTER_LOOKUP -DSUNDDI \
	       -DIPFILTER_SCAN -DIPFILTER_LKM -DSOLARIS2=10 -n ipf_mdb -k \
	       -I/home/dr146992/pfil -I/home/dr146992/ipf -f \
	       /usr/include/netinet/in_systm.h,/usr/include/sys/ethernet.h,/usr/include/netinet/in.h,/usr/include/netinet/ip.h,/usr/include/netinet/ip_var.h,/usr/include/netinet/tcp.h,/usr/include/netinet/tcpip.h,/usr/include/netinet/ip_icmp.h,/usr/include/netinet/udp.h,ip_compat.h,ip_fil.h,ip_nat.h,ip_state.h,ip_proxy.h,ip_scan.h
@


1.16
log
@Back out the recent import of IPFilter 5.1.1 for the upcoming branch,
which will now have IPFilter 4.1.34.  IPFilter 5.1.1 will be restored
post-branch.

ok: core, releng.
@
text
@@


1.16.6.1
log
@Resync to 2012-11-19 00:00:00 UTC
@
text
@@


1.15
log
@Merge IPFilter 5.1.1 into HEAD
@
text
@@


1.14
log
@Commit IPFilter 4.1.34 to HEAD
@
text
@@


1.14.6.1
log
@sync with head
@
text
@@


1.13
log
@Update head to version 4.1.33 from vendor branch
@
text
@d8 1
a8 1
# Id: Makefile,v 2.76.2.29 2009/07/18 19:05:35 darrenr Exp
d38 4
d121 1
d224 1
a224 1
	(cd BSD/$(CPUDIR); make -f Makefile.ipsend build TOP=../.. $(MFLAGS1); cd ..)
@


1.12
log
@Pullup IPFilter 4.1.29 from the vendor branch to HEAD.
See src/dist/ipf/HISTORY for a list of bug fixes since 4.1.23 (although
a few are already in NetBSD)
@
text
@d8 1
a8 1
# Id: Makefile,v 2.76.2.27 2008/03/16 06:45:35 darrenr Exp
d67 1
a67 1
LINUXKERNEL=/usr/src/linux
d69 5
d248 1
a248 1
	(cd BSD/$(CPUDIR); make -f Makefile.ipsend build TOP=../.. $(MFLAGS); cd ..)
d368 1
a368 1
	(cd Linux/; make LINUX=$(LINUX) TOP=.. "DEBUG=-g" "CC=$(CC)" $(MFLAGS) OBJ=$(CPUDIR) install ; cd ..)
a413 1

@


1.11
log
@Merge IP-Filter 4.1.22
@
text
@d8 1
a8 1
# Id: Makefile,v 2.76.2.21 2007/05/11 21:57:25 darrenr Exp
d82 1
a82 1
# Where to find the ncurses include files (if not in default path), 
d134 1
a134 4
	@@echo "freebsd3	- compile for FreeBSD-3.x"
	@@echo "freebsd4	- compile for FreeBSD-4.x"
	@@echo "freebsd5 - compile for FreeBSD-5.x"
	@@echo "freebsd6 - compile for FreeBSD-6.x"
d151 1
d167 3
d191 1
a191 1
freebsd5 freebsd6 freebsd7: include
d354 1
a354 1
	(cd SunOS5/$(CPUDIR); $(MAKE) build TOP=../.. "CC=$(CC)" $(DEST) $(MFLAGS) "SOLARIS2=$(SOLARIS2)" "CPU=-Dsparc -D__sparc__"; cd ..)
a356 4
sunos5x86 solaris2x86: null
	(cd SunOS5/$(CPUDIR); make build TOP=../.. "CC=$(CC)" $(DEST) $(MFLAGS) "SOLARIS2=$(SOLARIS2)" "CPU=-Di86pc -Di386 -D__i386__"; cd ..)
	(cd SunOS5/$(CPUDIR); make -f Makefile.ipsend build TOP=../.. "CC=$(CC)" $(DEST) $(MFLAGS); cd ..)

d373 1
a373 1
	(cd SunOS5; $(MAKE) CPU=$(CPU) TOP=.. install)
@


1.11.12.1
log
@Sync w/ -current. 34 merge conflicts to follow.
@
text
@d8 1
a8 1
# Id: Makefile,v 2.76.2.27 2008/03/16 06:45:35 darrenr Exp
d82 1
a82 1
# Where to find the ncurses include files (if not in default path),
d134 4
a137 1
	@@echo "freebsd	- compile for all other versions of FreeBSD"
a153 1
	-mkdir -p net netinet
a168 3
freebsd:
	make freebsd`uname -r|cut -c1`

d190 1
a190 1
freebsd5 freebsd6 freebsd7 freebsd8: include
d353 1
a353 1
	(cd SunOS5/$(CPUDIR); $(MAKE) build TOP=../.. "CC=$(CC)" $(DEST) $(MFLAGS) "SOLARIS2=$(SOLARIS2)"; cd ..)
d356 4
d376 1
a376 1
	(cd SunOS5; $(MAKE) TOP=.. install)
@


1.11.10.1
log
@sync with head
@
text
@d8 1
a8 1
# Id: Makefile,v 2.76.2.27 2008/03/16 06:45:35 darrenr Exp
d82 1
a82 1
# Where to find the ncurses include files (if not in default path),
d134 4
a137 1
	@@echo "freebsd	- compile for all other versions of FreeBSD"
a153 1
	-mkdir -p net netinet
a168 3
freebsd:
	make freebsd`uname -r|cut -c1`

d190 1
a190 1
freebsd5 freebsd6 freebsd7 freebsd8: include
d353 1
a353 1
	(cd SunOS5/$(CPUDIR); $(MAKE) build TOP=../.. "CC=$(CC)" $(DEST) $(MFLAGS) "SOLARIS2=$(SOLARIS2)"; cd ..)
d356 4
d376 1
a376 1
	(cd SunOS5; $(MAKE) TOP=.. install)
@


1.10
log
@Upgraded IPFilter to 4.1.13
@
text
@d8 1
a8 1
# Id: Makefile,v 2.76.2.19 2006/03/17 10:38:38 darrenr Exp
d190 1
a190 1
freebsd5 freebsd6: include
d232 9
@


1.10.6.1
log
@Catch up with now-somewhat-dated netbsd-4. These changes took longer
than expected for me to actually get around to merging.
@
text
@d8 1
a8 1
# Id: Makefile,v 2.76.2.21 2007/05/11 21:57:25 darrenr Exp
d190 1
a190 1
freebsd5 freebsd6 freebsd7: include
a231 9
	@@if [ ! -d /sys -o ! -d /sys/arch ] ; then \
		echo "*****************************************************"; \
		echo "*                                                   *"; \
		echo "* Please extract source code to create /sys and     *";\
		echo "* /sys/arch and run 'config GENERIC'                *"; \
		echo "*                                                   *"; \
		echo "*****************************************************"; \
		exit 1; \
	fi
@


1.10.4.1
log
@Pull up following revision(s) (requested by martin in ticket #656):
	sys/dist/ipf/netinet/fil.c		sync with ipfilter-4-1-22-pullup
	sys/dist/ipf/netinet/ip_compat.h	sync with ipfilter-4-1-22-pullup
	sys/dist/ipf/netinet/ip_fil.h		sync with ipfilter-4-1-22-pullup
	sys/dist/ipf/netinet/ip_fil_netbsd.c	sync with ipfilter-4-1-22-pullup
	sys/dist/ipf/netinet/ip_ftp_pxy.c	sync with ipfilter-4-1-22-pullup
	sys/dist/ipf/netinet/ip_nat.c		sync with ipfilter-4-1-22-pullup
	sys/dist/ipf/netinet/ip_nat.h		sync with ipfilter-4-1-22-pullup
	sys/dist/ipf/netinet/ip_proxy.c		sync with ipfilter-4-1-22-pullup
	sys/dist/ipf/netinet/ip_state.c		sync with ipfilter-4-1-22-pullup
	sys/dist/ipf/netinet/ip_state.h		sync with ipfilter-4-1-22-pullup
	sys/dist/ipf/netinet/ipl.h		sync with ipfilter-4-1-22-pullup
	dist/ipf/HISTORY			sync with ipfilter-4-1-22-pullup
	dist/ipf/Makefile			sync with ipfilter-4-1-22-pullup
	dist/ipf/ip_fil.c			sync with ipfilter-4-1-22-pullup
	dist/ipf/ipf.h				sync with ipfilter-4-1-22-pullup
	dist/ipf/mlfk_ipl.c			sync with ipfilter-4-1-22-pullup
	dist/ipf/lib/Makefile			sync with ipfilter-4-1-22-pullup
	dist/ipf/lib/printfr.c			sync with ipfilter-4-1-22-pullup
	dist/ipf/lib/printstate.c		sync with ipfilter-4-1-22-pullup
	dist/ipf/lib/printtqtable.c		sync with ipfilter-4-1-22-pullup
	dist/ipf/man/ipf.8			sync with ipfilter-4-1-22-pullup
	dist/ipf/man/ipfstat.8			sync with ipfilter-4-1-22-pullup
	dist/ipf/tools/ipf.c			sync with ipfilter-4-1-22-pullup
	dist/ipf/tools/ipfcomp.c		sync with ipfilter-4-1-22-pullup
	dist/ipf/tools/ipfstat.c		sync with ipfilter-4-1-22-pullup
	dist/ipf/tools/ipnat.c			sync with ipfilter-4-1-22-pullup
	regress/sys/kern/ipf/Makefile		sync with ipfilter-4-1-22-pullup
	regress/sys/kern/ipf/expected/i11	sync with ipfilter-4-1-22-pullup
	regress/sys/kern/ipf/expected/i4	sync with ipfilter-4-1-22-pullup
	regress/sys/kern/ipf/expected/i9	sync with ipfilter-4-1-22-pullup
	usr.sbin/ipf/libipf/Makefile		sync with ipfilter-4-1-22-pullup
Update IP-Filter to 4.1.22.
(Using a helper tag ipfilter-4-1-22-pullup created on HEAD.)
@
text
@d8 1
a8 1
# Id: Makefile,v 2.76.2.21 2007/05/11 21:57:25 darrenr Exp
d190 1
a190 1
freebsd5 freebsd6 freebsd7: include
a231 9
	@@if [ ! -d /sys -o ! -d /sys/arch ] ; then \
		echo "*****************************************************"; \
		echo "*                                                   *"; \
		echo "* Please extract source code to create /sys and     *";\
		echo "* /sys/arch and run 'config GENERIC'                *"; \
		echo "*                                                   *"; \
		echo "*****************************************************"; \
		exit 1; \
	fi
@


1.9
log
@Upgraded IPFilter to 4.1.5
@
text
@d8 1
a8 1
# Id: Makefile,v 2.76.2.13 2004/11/08 18:42:40 darrenr Exp
d137 1
d190 1
a190 1
freebsd5: include
d196 9
d250 5
d295 1
d314 3
d369 4
a380 1
	(cd OSF/`OSF/cpurev`; make -f Makefile.ipsend INSTALL=$(INSTALL) install "TOP=../.." $(MFLAGS); cd ..)
d403 1
@


1.9.6.1
log
@Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
@
text
@d8 1
a8 1
# Id: Makefile,v 2.76.2.19 2006/03/17 10:38:38 darrenr Exp
a136 1
	@@echo "freebsd6 - compile for FreeBSD-6.x"
d189 1
a189 1
freebsd5 freebsd6: include
a194 9
	if [ "x$(IPFBPF)" = "x" ] ; then \
		echo "#undef NBPF" > opt_bpf.h; \
		echo "#undef NBPFILTER" > opt_bpf.h; \
		echo "#undef DEV_BPF" > opt_bpf.h; \
	else \
		echo "#define NBPF" > opt_bpf.h; \
		echo "#define NBPFILTER" > opt_bpf.h; \
		echo "#define DEV_BPF" > opt_bpf.h; \
	fi
a239 5
aix: null include
	make setup "TARGOS=AIX" "CPUDIR=`AIX/cpurev`"
	(cd AIX/`AIX/cpurev`; make build AIX=`uname -v` TOP=../.. "DEBUG=-g" $(MFLAGS) "OSREV=`../cpurev`" BITS=`../bootbits.sh`; cd ..)
#	(cd AIX/`AIX/cpurev`; make -f Makefile.ipsend build AIX=`uname -v` TOP=../.. $(MFLAGS) "OSREV=`../cpurev`"; cd ..)

a279 1
	(cd AIX; $(MAKE) TOP=.. clean)
a297 3
clean-aix: clean-include
	(cd AIX; make clean)

a349 4
install-aix:
	(cd AIX/`AIX/cpurev`; make install "TOP=../.." $(MFLAGS); cd ..)
#	(cd AIX/`AIX/cpurev`; make -f Makefile.ipsend INSTALL=$(INSTALL) install "TOP=../.." $(MFLAGS); cd ..)

d358 1
a380 1

@


1.8
log
@Upgraded IPFilter to 4.1.3
@
text
@d8 1
a8 1
# Id: Makefile,v 2.76.2.9 2004/07/08 13:12:00 darrenr Exp
d68 1
d333 3
a335 2
	(cd Linux; make build LINUX=`uname -r | awk -F. ' { for(i=0;i<3;i++){printf("%02d",$$(i+1));}}'` TOP=.. "DEBUG=-g" "CC=$(CC)" $(MFLAGS) OBJ=$(CPUDIR) LINUXKERNEL=$(LINUXKERNEL); cd ..)
#	(cd Linux; make -f Makefile.ipsend build LINUX=`uname -r | awk -F. ' { for(i=0;i<NF;i++){printf("%02d",$$(i+1));}}'` TOP=.. "CC=$(CC)" $(MFLAGS); cd ..)
d338 1
a338 1
	(cd Linux/$(CPUDIR); make LINUX=`uname -r | awk -F. ' { for(i=0;i<NF;i++){printf("%02d",$$(i+1));}}'` TOP=../.. "DEBUG=-g" "CC=$(CC)" $(MFLAGS) OBJ=$(CPUDIR) install ; cd ..)
@


1.7
log
@Upgraded IPFilter to 4.1.1
@
text
@d8 1
a8 1
# Id: Makefile,v 2.76.2.1 2004/03/06 14:32:46 darrenr Exp
d52 4
d67 1
a67 1
LINUXKERNEL=/usr/src/linux-2.4
d73 1
a73 1
ALLOPTS=-DIPFILTER_LOG -DIPFILTER_COMPILED -DIPFILTER_LOOKUP \
d113 1
a113 1
MACHASSERT=`find /usr/sys -name mach_assert.h -print`
d131 1
a131 1
	@@echo "freebsd	- compile for FreeBSD 2.0, 2.1 or earlier"
d147 4
d157 1
d186 1
a186 1
	make freebsd
d221 1
a221 1
	(cd BSD/$(CPUDIR); make build TOP=../.. $(MFLAGS) 'DLKM=-D_LKM' "ML=mln_ipl.c" "MLR=mln_rule.o"; cd ..)
d224 1
a224 1
openbsd openbsd21: include
d226 1
a226 1
	(cd BSD/$(CPUDIR); make build TOP=../.. $(MFLAGS) 'DLKM=-D_LKM' "ML=mlo_ipl.c" "MLR=mlo_rule.o"; cd ..)
d229 1
a229 1
freebsd freebsd20 freebsd21: include
d331 2
a332 2
linux: null include
	(cd Linux; make build LINUX=`uname -r | awk -F. ' { for(i=0;i<NF;i++){printf("%02d",$$(i+1));}}'` TOP=.. "DEBUG=-g" "CC=$(CC)" $(MFLAGS) OBJ=$(CPUDIR) LINUXKERNEL=$(LINUXKERNEL); cd ..)
d345 1
a345 1
install-sunos5: solaris
d364 1
a364 1
	-./ipf -cc -f rules/ip_rules 2>/dev/null 1>&2
d367 1
a367 1
	-@@if [ "`$(MAKE) -v 2>&1 | sed -ne 's/GNU.*/GNU/p'`" = "GNU" ] ; then \
@


1.7.2.1
log
@Pullup patch (requested by christos in ticket #759)

Bring up to ipf 4.1.3
@
text
@d8 1
a8 1
# Id: Makefile,v 2.76.2.9 2004/07/08 13:12:00 darrenr Exp
a51 4
# WARNING: If you're building a commercial product based on IPFilter, using
#          this options *may* infringe at least one patent held by CheckPoint
#          (5,606,668.)
#
d63 1
a63 1
LINUXKERNEL=/usr/src/linux
d69 1
a69 1
ALLOPTS=-DIPFILTER_LOG -DIPFILTER_LOOKUP \
d109 1
a109 1
MACHASSERT=`/bin/ls -1 /usr/sys/*/mach_assert.h | head -1`
d127 1
a127 1
	@@echo "freebsd20	- compile for FreeBSD 2.0, 2.1 or earlier"
a142 4
retest:
	@@if [ -d test ]; then (cd test; make clean && make) \
	else echo test directory not present, sorry; fi

a148 1
	-(cd netinet; ln -s ../ip_rules.h ip_rules.h)
d177 1
a177 1
	make freebsd20
d212 1
a212 1
	(cd BSD/$(CPUDIR); make build TOP=../.. $(MFLAGS) 'DLKM=-D_LKM' "ML=mln_ipl.c" LKMR= "MLR=mln_rule.o"; cd ..)
d215 1
a215 1
openbsd: include
d217 1
a217 1
	(cd BSD/$(CPUDIR); make build TOP=../.. $(MFLAGS) 'DLKM=-D_LKM' "ML=mlo_ipl.c" LKMR= "MLR=mlo_rule.o"; cd ..)
d220 1
a220 1
freebsd20 freebsd21: include
d322 2
a323 2
linux: include
	(cd Linux; make build LINUX=`uname -r | awk -F. ' { for(i=0;i<3;i++){printf("%02d",$$(i+1));}}'` TOP=.. "DEBUG=-g" "CC=$(CC)" $(MFLAGS) OBJ=$(CPUDIR) LINUXKERNEL=$(LINUXKERNEL); cd ..)
d336 1
a336 1
install-sunos5: solaris null
d355 1
a355 1
	-./ipf -n -cc -f rules/ip_rules 2>/dev/null 1>&2
d358 1
a358 1
	@@if [ "`$(MAKE) -v 2>&1 | sed -ne 's/GNU.*/GNU/p'`" = "GNU" ] ; then \
@


1.6
log
@Upgraded IPFilter to 3.4.25
@
text
@d4 3
a6 1
# See the IPFILTER.LICENCE file for details on licencing.
d8 1
a8 1
# Id: Makefile,v 2.11.2.13 2002/03/06 09:43:15 darrenr Exp
d10 1
d15 2
a16 1
CC=gcc -Wstrict-prototypes -Wmissing-prototypes
d20 2
a21 2
TOP=../..
CFLAGS=-I$$(TOP)
d24 1
a24 1
IPFILKERN=`/bin/ls -1tr /usr/src/sys/compile | grep -v .bak | tail -1`
d34 12
d49 22
d75 1
a75 1
STATETOP_CFLAGS=-DSTATETOP
d84 1
a84 1
STATETOP_LIB=-lcurses
d100 1
a100 1
MFLAGS1='CFLAGS=$(CFLAGS) $(ARCHINC) $(SOLARIS2) $(INET6) $(IPFLOG)' \
d103 2
a104 1
	"CPUDIR=$(CPUDIR)" 'STATETOP_CFLAGS=$(STATETOP_CFLAGS)' \
d106 2
a107 2
	"BITS=$(BITS)" "OBJ=$(OBJ)"
DEST="BINDEST=$(BINDEST)" "SBINDEST=$(SBINDEST)" "MANDIR=$(MANDIR)"
d109 1
d131 1
d135 2
a136 1
	@@echo "linux	- compile for Linux 2.0.31+"
d145 1
a145 1
		(cd netinet; ln -s ../*.h .; ln -s ../ip_*_pxy.c .; ); \
d149 4
d155 2
a156 1
	CC="$(CC)" ./buildsunos
d161 1
a161 1
	@@if [ -n $(IPFILKERN) ] ; then \
d163 1
a163 1
		ln -s /sys/compile/$(IPFILKERN)/ioconf.h BSD/$(CPUDIR); \
d165 1
a165 1
		ln -s /sys/$(IPFILKERN)/ioconf.h BSD/$(CPUDIR); \
a166 4
	elif [ ! -f `uname -v|sed -e 's@@^.*:\(/[^: ]*\).*@@\1@@'`/ioconf.h ] ; then \
		echo -n "Can't find ioconf.h in "; \
		echo `uname -v|sed -e 's@@^.*:\(/[^: ]*\).*@@\1@@'`; \
		exit 1;\
d168 8
a175 1
		ln -s `uname -v|sed -e 's@@^.*:\(/[^: ]*\).*@@\1@@'`/ioconf.h BSD/$(CPU) ; \
d179 18
a196 2
freebsd4: include
	if [ x$INET6 = x ] ; then \
d202 2
a203 2
	(cd BSD/$(CPUDIR); make build TOP=../.. $(MFLAGS) "ML=mlfk_ipl.c" "MLD=mlfk_ipl.c" "LKM=ipf.ko" "DLKM=-DKLD_MODULE -I/sys"; cd ..)
	(cd BSD/$(CPUDIR); make -f Makefile.ipsend TOP=../.. $(MFLAGS1); cd ..)
d207 2
a208 2
	(cd BSD/$(CPUDIR); make build TOP=../.. $(MFLAGS1) "ML=mlf_ipl.c" LKM= ; cd ..)
	(cd BSD/$(CPUDIR); make -f Makefile.ipsend TOP=../.. $(MFLAGS1); cd ..)
d212 2
a213 2
	(cd BSD/$(CPUDIR); make build TOP=../.. $(MFLAGS) 'DLKM=-D_LKM' "ML=mln_ipl.c"; cd ..)
	(cd BSD/$(CPUDIR); make -f Makefile.ipsend TOP=../.. $(MFLAGS); cd ..)
d217 2
a218 2
	(cd BSD/$(CPUDIR); make build TOP=../.. $(MFLAGS) 'DLKM=-D_LKM' "ML=mln_ipl.c"; cd ..)
	(cd BSD/$(CPUDIR); make -f Makefile.ipsend TOP=../.. $(MFLAGS); cd ..)
d222 7
a228 2
	(cd BSD/$(CPUDIR); make build TOP=../.. $(MFLAGS) "ML=mlf_ipl.c"; cd ..)
	(cd BSD/$(CPUDIR); make -f Makefile.ipsend TOP=../.. $(MFLAGS); cd ..)
d232 2
a233 2
	(cd BSD/$(CPUDIR); make build TOP=../.. $(MFLAGS); cd ..)
	(cd BSD/$(CPUDIR); make -f Makefile.ipsend TOP=../.. $(MFLAGS); cd ..)
d237 2
a238 2
	(cd BSD/$(CPUDIR); make build "CC=$(CC)" TOP=../.. $(MFLAGS) LKM= ; cd ..)
	(cd BSD/$(CPUDIR); make -f Makefile.ipsend "CC=$(CC)" TOP=../.. $(MFLAGS); cd ..)
d241 7
a247 11
	make setup "TARGOS=IRIX" "CPUDIR=$(CPUDIR)"
	-(cd IRIX/$(CPUDIR); if [ $(MAKE) = make ] ; then make -f Makefile.std build TOP=../.. $(DEST) SGI=`../getrev` $(MFLAGS); else smake build SGI=`../getrev` TOP=../.. $(DEST) $(MFLAGS); fi;)
	-(cd IRIX/$(CPUDIR); if [ $(MAKE) = make ] ; then make -f Makefile.ipsend.std SGI=`../getrev` TOP=../.. $(DEST) $(MFLAGS); else smake -f Makefile.ipsend SGI=`../getrev` TOP=../.. $(DEST) $(MFLAGS); fi)

linux: include
	make setup "TARGOS=Linux" "CPUDIR=$(CPUDIR)"
	./buildlinux

linuxrev:
	(cd Linux/$(CPUDIR); make build TOP=../.. $(DEST) $(MFLAGS) LKM= ; cd ..)
	(cd Linux/$(CPUDIR); make -f Makefile.ipsend TOP=../.. $(DEST) $(MFLAGS); cd ..)
a252 8
	-if [ ! -f $(TARGOS)/$(CPUDIR)/Makefile.std -a \
		-f $(TARGOS)/Makefile.std ] ; then \
	    ln -s ../Makefile.std $(TARGOS)/$(CPUDIR)/Makefile.std; \
	 fi
	-if [ ! -f $(TARGOS)/$(CPUDIR)/Makefile.ipsend.std -a \
		-f $(TARGOS)/Makefile.ipsend.std ] ; then \
	    ln -s ../Makefile.ipsend.std $(TARGOS)/$(CPUDIR)/Makefile.ipsend.std; \
	 fi
d254 4
d260 1
d263 10
a272 8
	${RM} -rf sparcv7 sparcv9
	(cd SunOS4; make clean)
	(cd SunOS5; make clean)
	(cd BSD; make clean)
	(cd Linux; make clean)
	if [ "`uname -s`" = "IRIX" ]; then (cd IRIX; make clean); fi
	[ -d test ] && (cd test; make clean)
	(cd ipsend; make clean)
d275 3
a277 2
	sh -c 'cd netinet; for i in *; do if [ -h $$i ] ; then /bin/rm -f $$i; fi; done'
	${RM} -f netinet/done
d280 10
a289 1
	(cd BSD; make clean)
d295 2
a296 1
	(cd SunOS5; make clean)
d299 1
a299 4
	(cd IRIX; make clean)

clean-linux: clean-include
	(cd Linux; make clean)
d301 8
a308 12
get:
	-@@for i in ipf.c ipt.h solaris.c ipf.h kmem.c ipft_ef.c linux.h \
		ipft_pc.c fil.c ipft_sn.c mln_ipl.c fils.c ipft_td.c \
		mls_ipl.c ip_compat.h ipl.h opt.c ip_fil.c ipl_ldev.c \
		parse.c ip_fil.h ipmon.c pcap.h ip_sfil.c ipt.c snoop.h \
		ip_state.c ip_state.h ip_nat.c ip_nat.h ip_frag.c \
		ip_frag.h ip_sfil.c misc.c; do \
		if [ ! -f $$i ] ; then \
			echo "getting $$i"; \
			sccs get $$i; \
		fi \
	done
d312 1
a312 1
	(cd SunOS4; make -f Makefile.ipsend "CC=$(CC)" TOP=.. $(DEST) $(MFLAGS); cd ..)
d314 3
a316 3
sunos5 solaris2:
	(cd SunOS5/$(CPUDIR); make build TOP=../.. "CC=$(CC)" $(DEST) $(MFLAGS) "SOLARIS2=$(SOLARIS2)" "CPU=-Dsparc -D__sparc__"; cd ..)
	(cd SunOS5/$(CPUDIR); make -f Makefile.ipsend TOP=../.. "CC=$(CC)" $(DEST) $(MFLAGS); cd ..)
d318 1
a318 1
sunos5x86 solaris2x86:
d320 5
a324 1
	(cd SunOS5/$(CPUDIR); make -f Makefile.ipsend TOP=../.. "CC=$(CC)" $(DEST) $(MFLAGS); cd ..)
d326 2
a327 3
install-linux:
	(cd Linux/$(CPUDIR); make install "TOP=../.." $(DEST) $(MFLAGS); cd ..)
	(cd Linux/$(CPUDIR); make -f Makefile.ipsend INSTALL=$(INSTALL) install "TOP=../.." $(DEST) $(MFLAGS); cd ..)
d334 1
a334 1
	(cd SunOS4; $(MAKE) "CPU=$(CPU)" "TOP=.." install)
d337 4
a340 1
	(cd SunOS5; $(MAKE) "CPUDIR=`uname -p`-`uname -r`" "CPU=$(CPU) TOP=.." install)
d343 1
a343 1
	(cd IRIX; smake install "CPU=$(CPU) TOP=.." $(DEST) $(MFLAGS))
d345 3
a347 12
rcsget:
	-@@for i in ipf.c ipt.h solaris.c ipf.h kmem.c ipft_ef.c linux.h \
		ipft_pc.c fil.c ipft_sn.c mln_ipl.c fils.c ipft_td.c \
		mls_ipl.c ip_compat.h ipl.h opt.c ip_fil.c ipl_ldev.c \
		parse.c ip_fil.h ipmon.c pcap.h ip_sfil.c ipt.c snoop.h \
		ip_state.c ip_state.h ip_nat.c ip_nat.h ip_frag.c \
		ip_frag.h ip_sfil.c misc.c; do \
		if [ ! -f $$i ] ; then \
			echo "getting $$i"; \
			co $$i; \
		fi \
	done
d352 18
@


1.5
log
@Upgraded IPFilter to 3.4.23
@
text
@d6 1
a6 1
# Id: Makefile,v 2.11.2.10 2001/09/22 13:11:15 darrenr Exp
d62 1
a62 1
MFLAGS1='CFLAGS=$(CFLAGS) $(ARCHINC) $(SOLARIS2) $(INET6)' \
d171 2
a172 2
	-(cd IRIX/$(CPUDIR); if [ $(MAKE) = make ] ; then make -f Makefile.std build TOP=../.. $(DEST) $(MFLAGS); else smake build TOP=../.. $(DEST) $(MFLAGS); fi;)
	-(cd IRIX/$(CPUDIR); if [ $(MAKE) = make ] ; then make -f Makefile.ipsend.std TOP=../.. $(DEST) $(MFLAGS); else smake -f Makefile.ipsend TOP=../.. $(DEST) $(MFLAGS); fi)
d261 1
a261 1
	(cd SunOS4; $(MAKE) "CPU=$(CPU) TOP=.." install)
@


1.4
log
@Resolve conflicts.
@
text
@d2 1
a2 1
# Copyright (C) 1993-2000 by Darren Reed.
d4 1
a4 3
# Redistribution and use in source and binary forms are permitted
# provided that this notice is preserved and due credit is given
# to the original author and the contributors.
d6 1
a6 1
# Id: Makefile,v 2.11.2.6 2000/12/17 12:43:15 darrenr Exp
d20 1
d37 1
a37 1
#STATETOP_CFLAGS=-DSTATETOP
d46 1
a46 1
#STATETOP_LIB=-lncurses
d103 1
a103 1
		(cd netinet; ln -s ../*.h .; ln -s ../ip_ftp_pxy.c .; ln -s ../ip_rcmd_pxy.c .; ln -s ../ip_raudio_pxy.c .); \
d264 1
a264 1
	(cd SunOS5; $(MAKE) "CPU=$(CPU) TOP=.." install)
@


1.3
log
@Resolve conflicts.
@
text
@d8 1
a8 1
# Id: Makefile,v 2.11.2.3 2000/08/05 14:50:00 darrenr Exp
d19 1
a19 1
CFLAGS=-I$$(TOP) -g
d110 1
a110 1
	./buildsunos $(MFLAGS)
d172 2
a173 2
	(cd IRIX/$(CPUDIR); smake build TOP=../.. $(DEST) $(MFLAGS); cd ..)
	(cd IRIX/$(CPUDIR); make -f Makefile.ipsend TOP=../.. $(DEST) $(MFLAGS); cd ..)
d187 8
@


1.2
log
@Resolve conflicts and remove some files.
@
text
@d8 1
a8 1
# Id: Makefile,v 2.11.2.1 2000/04/26 12:14:58 darrenr Exp
d18 1
d67 2
a68 1
        'STATETOP_INC=$(STATETOP_INC)' 'STATETOP_LIB=$(STATETOP_LIB)'
d110 1
a110 1
	./buildsunos
d131 5
d137 1
a137 1
	(cd BSD/$(CPUDIR); make build TOP=../.. $(MFLAGS) "ML=mlfk_ipl.c" "MLD=mlfk_ipl.c" "LKM=ipf.ko" "DLKM=-DKLD_MODULE"; cd ..)
d192 1
@


1.2.4.1
log
@Pull up revisions 1.3-1.5 (requested by martti):
  Updated IPFilter to 3.4.23
@
text
@d2 1
a2 1
# Copyright (C) 1993-2001 by Darren Reed.
d4 3
a6 1
# See the IPFILTER.LICENCE file for details on licencing.
d8 1
a8 1
# Id: Makefile,v 2.11.2.10 2001/09/22 13:11:15 darrenr Exp
d18 1
a18 2
TOP=../..
CFLAGS=-I$$(TOP)
a20 1
IPFILKERN=`/bin/ls -1tr /usr/src/sys/compile | grep -v .bak | tail -1`
d37 1
a37 1
STATETOP_CFLAGS=-DSTATETOP
d46 1
a46 1
STATETOP_LIB=-lcurses
d66 1
a66 2
        'STATETOP_INC=$(STATETOP_INC)' 'STATETOP_LIB=$(STATETOP_LIB)' \
	"BITS=$(BITS)" "OBJ=$(OBJ)"
d102 1
a102 1
		(cd netinet; ln -s ../*.h .; ln -s ../ip_*_pxy.c .; ); \
d108 1
a108 1
	CC="$(CC)" ./buildsunos
a128 5
	if [ x$INET6 = x ] ; then \
		echo "#undef INET6" > opt_inet6.h; \
	else \
		echo "#define INET6" > opt_inet6.h; \
	fi
d130 1
a130 1
	(cd BSD/$(CPUDIR); make build TOP=../.. $(MFLAGS) "ML=mlfk_ipl.c" "MLD=mlfk_ipl.c" "LKM=ipf.ko" "DLKM=-DKLD_MODULE -I/sys"; cd ..)
d165 2
a166 2
	-(cd IRIX/$(CPUDIR); if [ $(MAKE) = make ] ; then make -f Makefile.std build TOP=../.. $(DEST) $(MFLAGS); else smake build TOP=../.. $(DEST) $(MFLAGS); fi;)
	-(cd IRIX/$(CPUDIR); if [ $(MAKE) = make ] ; then make -f Makefile.ipsend.std TOP=../.. $(DEST) $(MFLAGS); else smake -f Makefile.ipsend TOP=../.. $(DEST) $(MFLAGS); fi)
a179 8
	-if [ ! -f $(TARGOS)/$(CPUDIR)/Makefile.std -a \
		-f $(TARGOS)/Makefile.std ] ; then \
	    ln -s ../Makefile.std $(TARGOS)/$(CPUDIR)/Makefile.std; \
	 fi
	-if [ ! -f $(TARGOS)/$(CPUDIR)/Makefile.ipsend.std -a \
		-f $(TARGOS)/Makefile.ipsend.std ] ; then \
	    ln -s ../Makefile.ipsend.std $(TARGOS)/$(CPUDIR)/Makefile.ipsend.std; \
	 fi
a184 1
	${RM} -rf sparcv7 sparcv9
d249 1
a249 1
	(cd SunOS5; $(MAKE) "CPUDIR=`uname -p`-`uname -r`" "CPU=$(CPU) TOP=.." install)
@


1.2.4.2
log
@dist/ipf/BNF					1.5
dist/ipf/HISTORY				1.12-1.14
dist/ipf/Makefile				1.6
dist/ipf/QNX_OCL.txt				1.1 (new)
dist/ipf/common.c				1.1.1.5,1.2
dist/ipf/facpri.c				1.4
dist/ipf/fils.c					1.14-1.21
dist/ipf/ip_lfil.c				deleted
dist/ipf/ip_sfil.c				deleted
dist/ipf/ipf.c					1.8-1.13
dist/ipf/ipf2netbsd				1.6-1.9
dist/ipf/ipfs.c					1.6-1.10
dist/ipf/ipft_ef.c				1.4-1.7
dist/ipf/ipft_hx.c				1.4-1.5
dist/ipf/ipft_pc.c				1.4-1.5
dist/ipf/ipft_sn.c				1.4-1.5
dist/ipf/ipft_td.c				1.4-1.7
dist/ipf/ipft_tx.c				1.5-1.8
dist/ipf/iplang/iplang_y.y			1.4
dist/ipf/ipmon.c				1.8-1.17
dist/ipf/ipnat.c				1.9-1.12
dist/ipf/ipsend/44arp.c				1.3
dist/ipf/ipsend/arp.c				1.3
dist/ipf/ipsend/in_var.h			1.2
dist/ipf/ipsend/ip.c				1.4-1.5
dist/ipf/ipsend/ip_var.h			1.2
dist/ipf/ipsend/ipresend.c			1.3-1.4
dist/ipf/ipsend/ipsend.c			1.5-1.8
dist/ipf/ipsend/ipsopt.c			1.3-1.4
dist/ipf/ipsend/iptest.c			1.4-1.5
dist/ipf/ipsend/iptests.c			1.3-1.5
dist/ipf/ipsend/lsock.c				1.3
dist/ipf/ipsend/resend.c			1.4-1.5
dist/ipf/ipsend/sbpf.c				1.3
dist/ipf/ipsend/sirix.c				1.3
dist/ipf/ipsend/sock.c				1.4-1.5
dist/ipf/ipt.c					1.5-1.10
dist/ipf/kmem.c					1.5-1.10
dist/ipf/l4check/l4check.c			1.1.1.2
dist/ipf/man/ipf.4				1.8-1.10
dist/ipf/man/ipf.5				1.8
dist/ipf/man/ipftest.1				1.3
dist/ipf/man/ipl.4				1.4
dist/ipf/man/ipmon.8				1.8-1.10
dist/ipf/man/ipnat.4				1.3
dist/ipf/man/ipnat.5				1.5-1.10
dist/ipf/man/ipnat.8				1.4
dist/ipf/misc.c					1.4-1.7
dist/ipf/natparse.c				1.6-1.10
dist/ipf/opt.c					1.4-1.5
dist/ipf/parse.c				1.11-1.13
dist/ipf/printnat.c				1.3-1.10
dist/ipf/printstate.c				1.2-1.3
dist/ipf/relay.c				1.5-1.6
dist/ipf/rules/example.9			1.2
sys/netinet/fil.c				1.53-1.58
sys/netinet/ip_auth.c				1.25-1.30
sys/netinet/ip_compat.h				1.27-1.31
sys/netinet/ip_fil.c				1.76-1.79,1.81-1.86
sys/netinet/ip_fil.h				1.43-1.49
sys/netinet/ip_frag.c				1.27-1.34
sys/netinet/ip_frag.h				1.18
sys/netinet/ip_ftp_pxy.c			1.22-1.26
sys/netinet/ip_h323_pxy.c			1.7 (new)
sys/netinet/ip_ipsec_pxy.c			1.2
sys/netinet/ip_log.c				1.18-1.23
sys/netinet/ip_nat.c				1.45-1.54
sys/netinet/ip_nat.h				1.25-1.27
sys/netinet/ip_netbios_pxy.c			1.2-1.4
sys/netinet/ip_proxy.c				1.28-1.36
sys/netinet/ip_proxy.h				1.18
sys/netinet/ip_state.c				1.35-1.42
sys/netinet/ip_state.h				1.21-1.23
sys/netinet/ipl.h				1.12-1.14
usr.sbin/ipf/ipftest/Makefile			1.19

  Upgrade IPFilter to 3.4.29.

regression test is omitted.  (martti)
@
text
@d6 1
a6 1
# Id: Makefile,v 2.11.2.13 2002/03/06 09:43:15 darrenr Exp
d62 1
a62 1
MFLAGS1='CFLAGS=$(CFLAGS) $(ARCHINC) $(SOLARIS2) $(INET6) $(IPFLOG)' \
d171 2
a172 2
	-(cd IRIX/$(CPUDIR); if [ $(MAKE) = make ] ; then make -f Makefile.std build TOP=../.. $(DEST) SGI=`../getrev` $(MFLAGS); else smake build SGI=`../getrev` TOP=../.. $(DEST) $(MFLAGS); fi;)
	-(cd IRIX/$(CPUDIR); if [ $(MAKE) = make ] ; then make -f Makefile.ipsend.std SGI=`../getrev` TOP=../.. $(DEST) $(MFLAGS); else smake -f Makefile.ipsend SGI=`../getrev` TOP=../.. $(DEST) $(MFLAGS); fi)
d261 1
a261 1
	(cd SunOS4; $(MAKE) "CPU=$(CPU)" "TOP=.." install)
@


1.1
log
@Initial revision
@
text
@d2 1
a2 1
# Copyright (C) 1993-1998 by Darren Reed.
d8 1
a8 1
# Id: Makefile,v 2.2 1999/08/04 17:29:52 darrenr Exp
d18 1
a18 1
CFLAGS=-I$$(TOP)
d33 20
d62 1
a62 2
MFLAGS1="BINDEST=$(BINDEST)" "SBINDEST=$(SBINDEST)" "MANDIR=$(MANDIR)" \
	'CFLAGS=$(CFLAGS) $(ARCHINC) $(SOLARIS2)' \
d65 3
a67 1
	"CPUDIR=$(CPUDIR)"
d89 1
d128 5
d165 2
a166 2
	(cd IRIX/$(CPUDIR); smake build TOP=../.. $(MFLAGS); cd ..)
	(cd IRIX/$(CPUDIR); make -f Makefile.ipsend TOP=../.. $(MFLAGS); cd ..)
d173 2
a174 2
	(cd Linux/$(CPUDIR); make build TOP=../.. $(MFLAGS) LKM= ; cd ..)
	(cd Linux/$(CPUDIR); make -f Makefile.ipsend TOP=../.. $(MFLAGS); cd ..)
d185 2
a186 2
	if [ "`uname -s`" = "SunOS" ]; then (cd SunOS4; make clean); fi
	if [ "`uname -s`" = "SunOS" ]; then (cd SunOS5; make clean); fi
d226 2
a227 2
	(cd SunOS4; make build TOP=.. "CC=$(CC)" $(MFLAGS); cd ..)
	(cd SunOS4; make -f Makefile.ipsend "CC=$(CC)" TOP=.. $(MFLAGS); cd ..)
d230 2
a231 2
	(cd SunOS5/$(CPUDIR); make build TOP=../.. "CC=$(CC)" $(MFLAGS) "SOLARIS2=$(SOLARIS2)" "CPU=-Dsparc -D__sparc__"; cd ..)
	(cd SunOS5/$(CPUDIR); make -f Makefile.ipsend TOP=../.. "CC=$(CC)" $(MFLAGS); cd ..)
d234 2
a235 2
	(cd SunOS5/$(CPUDIR); make build TOP=../.. "CC=$(CC)" $(MFLAGS) "SOLARIS2=$(SOLARIS2)" "CPU=-Di86pc -Di386 -D__i386__"; cd ..)
	(cd SunOS5/$(CPUDIR); make -f Makefile.ipsend TOP=../.. "CC=$(CC)" $(MFLAGS); cd ..)
d238 2
a239 2
	(cd Linux/$(CPUDIR); make install "TOP=../.." $(MFLAGS); cd ..)
	(cd Linux/$(CPUDIR); make -f Makefile.ipsend INSTALL=$(INSTALL) install "TOP=../.." $(MFLAGS); cd ..)
d252 1
a252 1
	(cd IRIX; smake install "CPU=$(CPU) TOP=.." $(MFLAGS))
@


1.1.1.1
log
@Inital import of IP Filter 3.3.5 under the dist directory.
@
text
@@


1.1.1.1.2.1
log
@file Makefile was added on branch netbsd-1-4 on 1999-12-20 21:01:42 +0000
@
text
@d1 242
@


1.1.1.1.2.2
log
@Pull up revision 1.1.1.1 (new) (requested by darrenr):
  Update IPF to version 3.3.5.
@
text
@a0 242
#
# Copyright (C) 1993-1998 by Darren Reed.
#
# Redistribution and use in source and binary forms are permitted
# provided that this notice is preserved and due credit is given
# to the original author and the contributors.
#
# Id: Makefile,v 2.2 1999/08/04 17:29:52 darrenr Exp
#
BINDEST=/usr/local/bin
SBINDEST=/sbin
MANDIR=/usr/local/man
#To test prototyping
CC=gcc -Wstrict-prototypes -Wmissing-prototypes
#CC=gcc
#CC=cc -Dconst=
DEBUG=-g
CFLAGS=-I$$(TOP)
CPU=`uname -m`
CPUDIR=`uname -s|sed -e 's@@/@@@@g'`-`uname -r`-`uname -m`
#
# To enable this to work as a Loadable Kernel Module...
#
IPFLKM=-DIPFILTER_LKM
#
# To enable logging of blocked/passed packets...
#
IPFLOG=-DIPFILTER_LOG
#
# The facility you wish to log messages from ipmon to syslogd with.
#
LOGFAC=-DLOGFAC=LOG_LOCAL0
#
# For packets which don't match any pass rules or any block rules, set either
# FR_PASS or FR_BLOCK (respectively).  It defaults to FR_PASS if left
# undefined.  This is ignored for ipftest, which can thus return three
# results: pass, block and nomatch.  This is the sort of "block unless
# explicitly allowed" type #define switch.
#
POLICY=-DIPF_DEFAULT_PASS=FR_PASS
#
MFLAGS1="BINDEST=$(BINDEST)" "SBINDEST=$(SBINDEST)" "MANDIR=$(MANDIR)" \
	'CFLAGS=$(CFLAGS) $(ARCHINC) $(SOLARIS2)' \
	"IPFLOG=$(IPFLOG)" "LOGFAC=$(LOGFAC)" "POLICY=$(POLICY)" \
	"SOLARIS2=$(SOLARIS2)" "DEBUG=$(DEBUG)" "DCPU=$(CPU)" \
	"CPUDIR=$(CPUDIR)"
MFLAGS=$(MFLAGS1) "IPFLKM=$(IPFLKM)"
#
SHELL=/bin/sh
#
########## ########## ########## ########## ########## ########## ##########
#
CP=/bin/cp
RM=/bin/rm
CHMOD=/bin/chmod
INSTALL=install
#

all:
	@@echo "Chose one of the following targets for making IP filter:"
	@@echo ""
	@@echo "solaris	- auto-selects SunOS4.1.x/Solaris 2.3-6/Solaris2.4-6x86"
	@@echo "netbsd	- compile for NetBSD"
	@@echo "openbsd	- compile for OpenBSD"
	@@echo "freebsd	- compile for FreeBSD 2.0, 2.1 or earlier"
	@@echo "freebsd22	- compile for FreeBSD-2.2 or greater"
	@@echo "freebsd3	- compile for FreeBSD-3.x"
	@@echo "bsd	- compile for generic 4.4BSD systems"
	@@echo "bsdi	- compile for BSD/OS"
	@@echo "irix	- compile for SGI IRIX"
	@@echo "linux	- compile for Linux 2.0.31+"
	@@echo ""

tests:
	@@if [ -d test ]; then (cd test; make) \
	else echo test directory not present, sorry; fi

include:
	if [ ! -f netinet/done ] ; then \
		(cd netinet; ln -s ../*.h .; ln -s ../ip_ftp_pxy.c .; ln -s ../ip_rcmd_pxy.c .; ln -s ../ip_raudio_pxy.c .); \
		(cd netinet; ln -s ../ipsend/tcpip.h tcpip.h); \
		touch netinet/done; \
	fi

sunos solaris: include
	./buildsunos

freebsd22: include
	make setup "TARGOS=BSD" "CPUDIR=$(CPUDIR)"
	-rm -f BSD/$(CPUDIR)/ioconf.h
	@@if [ -n $(IPFILKERN) ] ; then \
		if [ -f /sys/compile/$(IPFILKERN)/ioconf.h ] ; then \
		ln -s /sys/compile/$(IPFILKERN)/ioconf.h BSD/$(CPUDIR); \
		else \
		ln -s /sys/$(IPFILKERN)/ioconf.h BSD/$(CPUDIR); \
		fi \
	elif [ ! -f `uname -v|sed -e 's@@^.*:\(/[^: ]*\).*@@\1@@'`/ioconf.h ] ; then \
		echo -n "Can't find ioconf.h in "; \
		echo `uname -v|sed -e 's@@^.*:\(/[^: ]*\).*@@\1@@'`; \
		exit 1;\
	else \
		ln -s `uname -v|sed -e 's@@^.*:\(/[^: ]*\).*@@\1@@'`/ioconf.h BSD/$(CPU) ; \
	fi
	make freebsd

freebsd3 freebsd30: include
	make setup "TARGOS=BSD" "CPUDIR=$(CPUDIR)"
	(cd BSD/$(CPUDIR); make build TOP=../.. $(MFLAGS1) "ML=mlf_ipl.c" LKM= ; cd ..)
	(cd BSD/$(CPUDIR); make -f Makefile.ipsend TOP=../.. $(MFLAGS1); cd ..)

netbsd: include
	make setup "TARGOS=BSD" "CPUDIR=$(CPUDIR)"
	(cd BSD/$(CPUDIR); make build TOP=../.. $(MFLAGS) 'DLKM=-D_LKM' "ML=mln_ipl.c"; cd ..)
	(cd BSD/$(CPUDIR); make -f Makefile.ipsend TOP=../.. $(MFLAGS); cd ..)

openbsd openbsd21: include
	make setup "TARGOS=BSD" "CPUDIR=$(CPUDIR)"
	(cd BSD/$(CPUDIR); make build TOP=../.. $(MFLAGS) 'DLKM=-D_LKM' "ML=mln_ipl.c"; cd ..)
	(cd BSD/$(CPUDIR); make -f Makefile.ipsend TOP=../.. $(MFLAGS); cd ..)

freebsd freebsd20 freebsd21: include
	make setup "TARGOS=BSD" "CPUDIR=$(CPUDIR)"
	(cd BSD/$(CPUDIR); make build TOP=../.. $(MFLAGS) "ML=mlf_ipl.c"; cd ..)
	(cd BSD/$(CPUDIR); make -f Makefile.ipsend TOP=../.. $(MFLAGS); cd ..)

bsd: include
	make setup "TARGOS=BSD" "CPUDIR=$(CPUDIR)"
	(cd BSD/$(CPUDIR); make build TOP=../.. $(MFLAGS); cd ..)
	(cd BSD/$(CPUDIR); make -f Makefile.ipsend TOP=../.. $(MFLAGS); cd ..)

bsdi bsdos: include
	make setup "TARGOS=BSD" "CPUDIR=$(CPUDIR)"
	(cd BSD/$(CPUDIR); make build "CC=$(CC)" TOP=../.. $(MFLAGS) LKM= ; cd ..)
	(cd BSD/$(CPUDIR); make -f Makefile.ipsend "CC=$(CC)" TOP=../.. $(MFLAGS); cd ..)

irix IRIX: include
	make setup "TARGOS=IRIX" "CPUDIR=$(CPUDIR)"
	(cd IRIX/$(CPUDIR); smake build TOP=../.. $(MFLAGS); cd ..)
	(cd IRIX/$(CPUDIR); make -f Makefile.ipsend TOP=../.. $(MFLAGS); cd ..)

linux: include
	make setup "TARGOS=Linux" "CPUDIR=$(CPUDIR)"
	./buildlinux

linuxrev:
	(cd Linux/$(CPUDIR); make build TOP=../.. $(MFLAGS) LKM= ; cd ..)
	(cd Linux/$(CPUDIR); make -f Makefile.ipsend TOP=../.. $(MFLAGS); cd ..)

setup:
	-if [ ! -d $(TARGOS)/$(CPUDIR) ] ; then mkdir $(TARGOS)/$(CPUDIR); fi
	-rm -f $(TARGOS)/$(CPUDIR)/Makefile $(TARGOS)/$(CPUDIR)/Makefile.ipsend
	-ln -s ../Makefile $(TARGOS)/$(CPUDIR)/Makefile
	-ln -s ../Makefile.ipsend $(TARGOS)/$(CPUDIR)/Makefile.ipsend

clean: clean-include
	${RM} -f core *.o ipt fils ipf ipfstat ipftest ipmon if_ipl \
	vnode_if.h $(LKM) *~
	if [ "`uname -s`" = "SunOS" ]; then (cd SunOS4; make clean); fi
	if [ "`uname -s`" = "SunOS" ]; then (cd SunOS5; make clean); fi
	(cd BSD; make clean)
	(cd Linux; make clean)
	if [ "`uname -s`" = "IRIX" ]; then (cd IRIX; make clean); fi
	[ -d test ] && (cd test; make clean)
	(cd ipsend; make clean)

clean-include:
	sh -c 'cd netinet; for i in *; do if [ -h $$i ] ; then /bin/rm -f $$i; fi; done'
	${RM} -f netinet/done

clean-bsd: clean-include
	(cd BSD; make clean)

clean-sunos4: clean-include
	(cd SunOS4; make clean)

clean-sunos5: clean-include
	(cd SunOS5; make clean)

clean-irix: clean-include
	(cd IRIX; make clean)

clean-linux: clean-include
	(cd Linux; make clean)

get:
	-@@for i in ipf.c ipt.h solaris.c ipf.h kmem.c ipft_ef.c linux.h \
		ipft_pc.c fil.c ipft_sn.c mln_ipl.c fils.c ipft_td.c \
		mls_ipl.c ip_compat.h ipl.h opt.c ip_fil.c ipl_ldev.c \
		parse.c ip_fil.h ipmon.c pcap.h ip_sfil.c ipt.c snoop.h \
		ip_state.c ip_state.h ip_nat.c ip_nat.h ip_frag.c \
		ip_frag.h ip_sfil.c misc.c; do \
		if [ ! -f $$i ] ; then \
			echo "getting $$i"; \
			sccs get $$i; \
		fi \
	done

sunos4 solaris1:
	(cd SunOS4; make build TOP=.. "CC=$(CC)" $(MFLAGS); cd ..)
	(cd SunOS4; make -f Makefile.ipsend "CC=$(CC)" TOP=.. $(MFLAGS); cd ..)

sunos5 solaris2:
	(cd SunOS5/$(CPUDIR); make build TOP=../.. "CC=$(CC)" $(MFLAGS) "SOLARIS2=$(SOLARIS2)" "CPU=-Dsparc -D__sparc__"; cd ..)
	(cd SunOS5/$(CPUDIR); make -f Makefile.ipsend TOP=../.. "CC=$(CC)" $(MFLAGS); cd ..)

sunos5x86 solaris2x86:
	(cd SunOS5/$(CPUDIR); make build TOP=../.. "CC=$(CC)" $(MFLAGS) "SOLARIS2=$(SOLARIS2)" "CPU=-Di86pc -Di386 -D__i386__"; cd ..)
	(cd SunOS5/$(CPUDIR); make -f Makefile.ipsend TOP=../.. "CC=$(CC)" $(MFLAGS); cd ..)

install-linux:
	(cd Linux/$(CPUDIR); make install "TOP=../.." $(MFLAGS); cd ..)
	(cd Linux/$(CPUDIR); make -f Makefile.ipsend INSTALL=$(INSTALL) install "TOP=../.." $(MFLAGS); cd ..)

install-bsd:
	(cd BSD/$(CPUDIR); make install "TOP=../.." $(MFLAGS); cd ..)
	(cd BSD/$(CPUDIR); make -f Makefile.ipsend INSTALL=$(INSTALL) install "TOP=../.." $(MFLAGS); cd ..)

install-sunos4: solaris
	(cd SunOS4; $(MAKE) "CPU=$(CPU) TOP=.." install)

install-sunos5: solaris
	(cd SunOS5; $(MAKE) "CPU=$(CPU) TOP=.." install)

install-irix: irix
	(cd IRIX; smake install "CPU=$(CPU) TOP=.." $(MFLAGS))

rcsget:
	-@@for i in ipf.c ipt.h solaris.c ipf.h kmem.c ipft_ef.c linux.h \
		ipft_pc.c fil.c ipft_sn.c mln_ipl.c fils.c ipft_td.c \
		mls_ipl.c ip_compat.h ipl.h opt.c ip_fil.c ipl_ldev.c \
		parse.c ip_fil.h ipmon.c pcap.h ip_sfil.c ipt.c snoop.h \
		ip_state.c ip_state.h ip_nat.c ip_nat.h ip_frag.c \
		ip_frag.h ip_sfil.c misc.c; do \
		if [ ! -f $$i ] ; then \
			echo "getting $$i"; \
			co $$i; \
		fi \
	done

do-cvs:
	find . -type d -name CVS -print | xargs /bin/rm -rf
	find . -type f -name .cvsignore -print | xargs /bin/rm -f
@


1.1.1.1.4.1
log
@Pull up to last week's -current.
@
text
@@


1.1.1.2
log
@Import IP Filter 3.4.1
@
text
@d2 1
a2 1
# Copyright (C) 1993-2000 by Darren Reed.
d8 1
a8 1
# Id: Makefile,v 2.11.2.1 2000/04/26 12:14:58 darrenr Exp
d18 1
a18 1
CFLAGS=-I$$(TOP) -g
a32 20

#
# Uncomment the next 3 lines if you want to view the state table a la top(1)
# (requires that you have installed ncurses).
#STATETOP_CFLAGS=-DSTATETOP
#
# Where to find the ncurses include files (if not in default path), 
#
#STATETOP_INC=
#STATETOP_INC=-I/usr/local/include
#
# How to link the ncurses library
#
#STATETOP_LIB=-lncurses
#STATETOP_LIB=-L/usr/local/lib -lncurses

#
# Uncomment this when building IPv6 capability.
#
#INET6=-DUSE_INET6
d42 2
a43 1
MFLAGS1='CFLAGS=$(CFLAGS) $(ARCHINC) $(SOLARIS2) $(INET6)' \
d46 1
a46 3
	"CPUDIR=$(CPUDIR)" 'STATETOP_CFLAGS=$(STATETOP_CFLAGS)' \
        'STATETOP_INC=$(STATETOP_INC)' 'STATETOP_LIB=$(STATETOP_LIB)'
DEST="BINDEST=$(BINDEST)" "SBINDEST=$(SBINDEST)" "MANDIR=$(MANDIR)"
a67 1
	@@echo "freebsd4	- compile for FreeBSD-4.x"
a105 5
freebsd4: include
	make setup "TARGOS=BSD" "CPUDIR=$(CPUDIR)"
	(cd BSD/$(CPUDIR); make build TOP=../.. $(MFLAGS) "ML=mlfk_ipl.c" "MLD=mlfk_ipl.c" "LKM=ipf.ko" "DLKM=-DKLD_MODULE"; cd ..)
	(cd BSD/$(CPUDIR); make -f Makefile.ipsend TOP=../.. $(MFLAGS1); cd ..)

d138 2
a139 2
	(cd IRIX/$(CPUDIR); smake build TOP=../.. $(DEST) $(MFLAGS); cd ..)
	(cd IRIX/$(CPUDIR); make -f Makefile.ipsend TOP=../.. $(DEST) $(MFLAGS); cd ..)
d146 2
a147 2
	(cd Linux/$(CPUDIR); make build TOP=../.. $(DEST) $(MFLAGS) LKM= ; cd ..)
	(cd Linux/$(CPUDIR); make -f Makefile.ipsend TOP=../.. $(DEST) $(MFLAGS); cd ..)
d158 2
a159 2
	(cd SunOS4; make clean)
	(cd SunOS5; make clean)
d199 2
a200 2
	(cd SunOS4; make build TOP=.. "CC=$(CC)" $(DEST) $(MFLAGS); cd ..)
	(cd SunOS4; make -f Makefile.ipsend "CC=$(CC)" TOP=.. $(DEST) $(MFLAGS); cd ..)
d203 2
a204 2
	(cd SunOS5/$(CPUDIR); make build TOP=../.. "CC=$(CC)" $(DEST) $(MFLAGS) "SOLARIS2=$(SOLARIS2)" "CPU=-Dsparc -D__sparc__"; cd ..)
	(cd SunOS5/$(CPUDIR); make -f Makefile.ipsend TOP=../.. "CC=$(CC)" $(DEST) $(MFLAGS); cd ..)
d207 2
a208 2
	(cd SunOS5/$(CPUDIR); make build TOP=../.. "CC=$(CC)" $(DEST) $(MFLAGS) "SOLARIS2=$(SOLARIS2)" "CPU=-Di86pc -Di386 -D__i386__"; cd ..)
	(cd SunOS5/$(CPUDIR); make -f Makefile.ipsend TOP=../.. "CC=$(CC)" $(DEST) $(MFLAGS); cd ..)
d211 2
a212 2
	(cd Linux/$(CPUDIR); make install "TOP=../.." $(DEST) $(MFLAGS); cd ..)
	(cd Linux/$(CPUDIR); make -f Makefile.ipsend INSTALL=$(INSTALL) install "TOP=../.." $(DEST) $(MFLAGS); cd ..)
d225 1
a225 1
	(cd IRIX; smake install "CPU=$(CPU) TOP=.." $(DEST) $(MFLAGS))
@


1.1.1.3
log
@Import IP Filter 3.4.9
@
text
@d8 1
a8 1
# Id: Makefile,v 2.11.2.3 2000/08/05 14:50:00 darrenr Exp
a17 1
TOP=../..
d66 1
a66 2
        'STATETOP_INC=$(STATETOP_INC)' 'STATETOP_LIB=$(STATETOP_LIB)' \
	"BITS=$(BITS)" "OBJ=$(OBJ)"
d108 1
a108 1
	./buildsunos $(MFLAGS)
a128 5
	if [ x$INET6 = x ] ; then \
		echo "#undef INET6" > opt_inet6.h; \
	else \
		echo "#define INET6" > opt_inet6.h; \
	fi
d130 1
a130 1
	(cd BSD/$(CPUDIR); make build TOP=../.. $(MFLAGS) "ML=mlfk_ipl.c" "MLD=mlfk_ipl.c" "LKM=ipf.ko" "DLKM=-DKLD_MODULE -I/sys"; cd ..)
a184 1
	${RM} -rf sparcv7 sparcv9
@


1.1.1.4
log
@Import IP Filter 3.4.16
@
text
@d8 1
a8 1
# Id: Makefile,v 2.11.2.6 2000/12/17 12:43:15 darrenr Exp
d19 1
a19 1
CFLAGS=-I$$(TOP)
d110 1
a110 1
	CC="$(CC)" ./buildsunos
d172 2
a173 2
	-(cd IRIX/$(CPUDIR); if [ $(MAKE) = make ] ; then make -f Makefile.std build TOP=../.. $(DEST) $(MFLAGS); else smake build TOP=../.. $(DEST) $(MFLAGS); fi;)
	-(cd IRIX/$(CPUDIR); if [ $(MAKE) = make ] ; then make -f Makefile.ipsend.std TOP=../.. $(DEST) $(MFLAGS); else smake -f Makefile.ipsend TOP=../.. $(DEST) $(MFLAGS); fi)
a186 8
	-if [ ! -f $(TARGOS)/$(CPUDIR)/Makefile.std -a \
		-f $(TARGOS)/Makefile.std ] ; then \
	    ln -s ../Makefile.std $(TARGOS)/$(CPUDIR)/Makefile.std; \
	 fi
	-if [ ! -f $(TARGOS)/$(CPUDIR)/Makefile.ipsend.std -a \
		-f $(TARGOS)/Makefile.ipsend.std ] ; then \
	    ln -s ../Makefile.ipsend.std $(TARGOS)/$(CPUDIR)/Makefile.ipsend.std; \
	 fi
@


1.1.1.5
log
@Import IPFilter 3.4.23
@
text
@d2 1
a2 1
# Copyright (C) 1993-2001 by Darren Reed.
d4 3
a6 1
# See the IPFILTER.LICENCE file for details on licencing.
d8 1
a8 1
# Id: Makefile,v 2.11.2.10 2001/09/22 13:11:15 darrenr Exp
a21 1
IPFILKERN=`/bin/ls -1tr /usr/src/sys/compile | grep -v .bak | tail -1`
d38 1
a38 1
STATETOP_CFLAGS=-DSTATETOP
d47 1
a47 1
STATETOP_LIB=-lcurses
d104 1
a104 1
		(cd netinet; ln -s ../*.h .; ln -s ../ip_*_pxy.c .; ); \
d265 1
a265 1
	(cd SunOS5; $(MAKE) "CPUDIR=`uname -p`-`uname -r`" "CPU=$(CPU) TOP=.." install)
@


1.1.1.6
log
@Import IPFilter 3.4.25
@
text
@d6 1
a6 1
# Id: Makefile,v 2.11.2.13 2002/03/06 09:43:15 darrenr Exp
d62 1
a62 1
MFLAGS1='CFLAGS=$(CFLAGS) $(ARCHINC) $(SOLARIS2) $(INET6) $(IPFLOG)' \
d171 2
a172 2
	-(cd IRIX/$(CPUDIR); if [ $(MAKE) = make ] ; then make -f Makefile.std build TOP=../.. $(DEST) SGI=`../getrev` $(MFLAGS); else smake build SGI=`../getrev` TOP=../.. $(DEST) $(MFLAGS); fi;)
	-(cd IRIX/$(CPUDIR); if [ $(MAKE) = make ] ; then make -f Makefile.ipsend.std SGI=`../getrev` TOP=../.. $(DEST) $(MFLAGS); else smake -f Makefile.ipsend SGI=`../getrev` TOP=../.. $(DEST) $(MFLAGS); fi)
d261 1
a261 1
	(cd SunOS4; $(MAKE) "CPU=$(CPU)" "TOP=.." install)
@


1.1.1.7
log
@Import IPFilter 4.1.1
@
text
@d4 1
a4 3
# Redistribution and use in source and binary forms are permitted
# provided that this notice is preserved and due credit is given
# to the original author and the contributors.
d6 1
a6 1
# Id: Makefile,v 2.76.2.1 2004/03/06 14:32:46 darrenr Exp
a7 1
SHELL=/bin/sh
d12 1
a12 2
#CC=gcc -Wstrict-prototypes -Wmissing-prototypes
# -Wunused -Wuninitialized
d16 2
a17 2
# -O
CFLAGS=-I$$(TOP) -D_BSD_SOURCE
d20 1
a20 1
OBJ=.
a29 12
# To enable loading filter rules compiled to C code...
#
#COMPIPF=-DIPFILTER_COMPILED
#
# To enable synchronisation between IPFilter hosts
#
#SYNC=-DIPFILTER_SYNC
#
# To enable extended IPFilter functionality
#
LOOKUP=-DIPFILTER_LOOKUP -DIPFILTER_SCAN
#
a32 22
#
# To enable rules to be written with BPF syntax, uncomment these two lines.
#
#IPFBPF=-DIPFILTER_BPF -I/usr/local/include
#LIBBPF=-L/usr/local/lib -lpcap
#
# HP-UX and Solaris require this uncommented for BPF.
#
#BPFILTER=bpf_filter.o
#
# LINUXKERNEL is the path to the top of your Linux kernel source tree.
# By default IPFilter looks for /usr/src/linux, but you may have to change
# it to /usr/src/linux-2.4 or similar.
#
LINUXKERNEL=/usr/src/linux-2.4

#
# All of the compile-time options are here, used for compiling the userland
# tools for regression testing.  Well, all except for IPFILTER_LKM, of course.
#
ALLOPTS=-DIPFILTER_LOG -DIPFILTER_COMPILED -DIPFILTER_LOOKUP \
        -DIPFILTER_SCAN -DIPFILTER_SYNC -DIPFILTER_CKSUM
d37 1
a37 1
#STATETOP_CFLAGS=-DSTATETOP
d46 1
a46 1
#STATETOP_LIB=-lncurses
d62 1
a62 1
MFLAGS1='CFLAGS=$(CFLAGS) $(ARCHINC) $(SOLARIS2) $(SGIREV) $(INET6)' \
d65 1
a65 2
        "LIBBPF=$(LIBBPF)" "CPUDIR=$(CPUDIR)" "IPFBPF=$(IPFBPF)" \
        'STATETOP_CFLAGS=$(STATETOP_CFLAGS)' "BPFILTER=$(BPFILTER)" \
d67 2
a68 2
	"BITS=$(BITS)" "OBJ=$(OBJ)" "LOOKUP=$(LOOKUP)" "COMPIPF=$(COMPIPF)" \
	'SYNC=$(SYNC)' 'ALLOPTS=$(ALLOPTS)' 'LIBBPF=$(LIBBPF)'
a69 1
MACHASSERT=`find /usr/sys -name mach_assert.h -print`
a90 1
	@@echo "freebsd5 - compile for FreeBSD-5.x"
d94 1
a94 2
	@@echo "hpux	- compile for HP-UX 11.00"
	@@echo "osf	- compile for OSF/Tru64 5.1"
d103 1
a103 1
		(cd netinet; ln -s ../*.h .; ln -s ../ip_*_pxy.c .;); \
a106 4
	if [ ! -f net/done ] ; then \
		(cd net; ln -s ../radix_ipf.h .; ); \
		touch net/done; \
	fi
d109 1
a109 2
	MAKE="$(MAKE)" MAKEFLAGS="$(MAKEFLAGS)" BPFILTER=$(BPFILTER) \
		CC="$(CC)" DEBUG="$(DEBUG)" ./buildsunos
d114 1
a114 1
	-if [ x$(IPFILKERN) != x ] ; then \
d116 1
a116 1
			ln -s /sys/compile/$(IPFILKERN)/ioconf.h BSD/$$y; \
d118 1
a118 1
			ln -s /sys/$(IPFILKERN)/ioconf.h BSD/$$y; \
d120 4
d125 1
a125 8
		x=`uname -v|sed -e 's@@^.*:\(/[^: ]*\).*$$@@\1/ioconf.h@@'`; \
		y=`uname -s|sed -e 's@@/@@@@g'`-`uname -r`-`uname -m`; \
		if [ ! -f $$x ] ; then \
			echo -n "Can't find ioconf.h at $$x "; \
			exit 1;\
		else \
			ln -s $$x BSD/$$y ; \
		fi \
d129 2
a130 18
freebsd5: include
	if [ x$(INET6) = x ] ; then \
		echo "#undef INET6" > opt_inet6.h; \
	else \
		echo "#define INET6" > opt_inet6.h; \
	fi
	if [ x$(ENABLE_PFIL) = x ] ; then \
		echo "#undef PFIL_HOOKS" > opt_pfil.h; \
	else \
		echo "#define PFIL_HOOKS" > opt_pfil.h; \
	fi

	make setup "TARGOS=BSD" "CPUDIR=$(CPUDIR)"
	(cd BSD/$(CPUDIR); make build TOP=../.. $(MFLAGS) "ML=mlfk_ipl.c" "MLD=mlfk_ipl.c" "LKM=ipf.ko.5" "LKMR=ipfrule.ko.5" "DLKM=-DKLD_MODULE" "MLR=mlfk_rule.o"; cd ..)
	(cd BSD/$(CPUDIR); make -f Makefile.ipsend build TOP=../.. $(MFLAGS1); cd ..)

freebsd4 : include
	if [ x$(INET6) = x ] ; then \
d136 2
a137 2
	(cd BSD/$(CPUDIR); make build TOP=../.. $(MFLAGS) "ML=mlfk_ipl.c" "MLD=mlfk_ipl.c" "LKM=ipf.ko" "LKMR=ipfrule.ko" "DLKM=-DKLD_MODULE" "MLR=mlfk_rule.o"; cd ..)
	(cd BSD/$(CPUDIR); make -f Makefile.ipsend build TOP=../.. $(MFLAGS1); cd ..)
d141 2
a142 2
	(cd BSD/$(CPUDIR); make build TOP=../.. $(MFLAGS1) "ML=mlf_ipl.c" "MLR=mlf_rule.o" LKM= LKMR=; cd ..)
	(cd BSD/$(CPUDIR); make -f Makefile.ipsend build TOP=../.. $(MFLAGS1); cd ..)
d146 2
a147 2
	(cd BSD/$(CPUDIR); make build TOP=../.. $(MFLAGS) 'DLKM=-D_LKM' "ML=mln_ipl.c" "MLR=mln_rule.o"; cd ..)
	(cd BSD/$(CPUDIR); make -f Makefile.ipsend build TOP=../.. $(MFLAGS); cd ..)
d151 2
a152 2
	(cd BSD/$(CPUDIR); make build TOP=../.. $(MFLAGS) 'DLKM=-D_LKM' "ML=mlo_ipl.c" "MLR=mlo_rule.o"; cd ..)
	(cd BSD/$(CPUDIR); make -f Makefile.ipsend build TOP=../.. $(MFLAGS); cd ..)
d156 2
a157 7
	(cd BSD/$(CPUDIR); make build TOP=../.. $(MFLAGS) "ML=mlf_ipl.c" "MLR=mlf_rule.o"; cd ..)
	(cd BSD/$(CPUDIR); make -f Makefile.ipsend build TOP=../.. $(MFLAGS); cd ..)

osf tru64: null include
	make setup "TARGOS=OSF" "CPUDIR=`OSF/cpurev`"
	(cd OSF/`OSF/cpurev`; make build TRU64=`uname -v` TOP=../.. "DEBUG=-g" $(MFLAGS) "MACHASSERT=$(MACHASSERT)" "OSREV=`../cpurev`"; cd ..)
	(cd OSF/`OSF/cpurev`; make -f Makefile.ipsend build TRU64=`uname -v` TOP=../.. $(MFLAGS) "OSREV=`../cpurev`"; cd ..)
d161 2
a162 2
	(cd BSD/$(CPUDIR); make build TOP=../.. $(MFLAGS) 'DLKM=-D_LKM' "ML=mln_ipl.c" "MLR=mln_rule.o"; cd ..)
	(cd BSD/$(CPUDIR); make -f Makefile.ipsend build TOP=../.. $(MFLAGS); cd ..)
d166 2
a167 2
	(cd BSD/$(CPUDIR); make build "CC=$(CC)" TOP=../.. $(MFLAGS) LKM= LKMR= ; cd ..)
	(cd BSD/$(CPUDIR); make -f Makefile.ipsend build "CC=$(CC)" TOP=../.. $(MFLAGS); cd ..)
d170 11
a180 7
	make setup TARGOS=IRIX CPUDIR=`IRIX/cpurev`
	if [ "x${SGIREV}" = "x" ] ; then \
		make irix "SGIREV=-D_KMEMUSER -DIRIX=`IRIX/getrev`"; \
	else \
		(cd IRIX/`IRIX/cpurev`; smake -l -J 1 build TOP=../.. $(DEST) $(MFLAGS) IRIX=`../getrev` SGI=$$(IRIX) CPUDIR=`../cpurev`; cd ..); \
		(cd IRIX/`IRIX/cpurev`; make -f Makefile.ipsend build TOP=../.. $(DEST) $(MFLAGS) IRIX=`../getrev` SGI=$$(IRIX) CPUDIR=`../cpurev`; cd ..); \
	fi
d186 8
a194 4
	-if [ -f $(TARGOS)/Makefile.common ] ; then \
		rm -f $(TARGOS)/$(CPUDIR)/Makefile.common; \
		ln -s ../Makefile.common $(TARGOS)/$(CPUDIR)/Makefile.common;\
	fi
a196 1
	/bin/rm -rf h y.output
d199 8
a206 10
	/bin/rm -rf sparcv7 sparcv9 mdbgen_build
	(cd SunOS4; $(MAKE) TOP=.. clean)
	-(cd SunOS5; $(MAKE) TOP=.. clean)
	(cd BSD; $(MAKE) TOP=.. clean)
	(cd HPUX; $(MAKE) BITS=32 TOP=.. clean)
	(cd Linux; $(MAKE) TOP=.. clean)
	(cd OSF; $(MAKE) TOP=.. clean)
	if [ "`uname -s`" = "IRIX" ]; then (cd IRIX; $(MAKE) clean); fi
	[ -d test ] && (cd test; $(MAKE) clean)
	(cd ipsend; $(MAKE) clean)
d209 2
a210 3
	sh -c 'if [ -d netinet ] ; then cd netinet; for i in *; do if [ -h $$i ] ; then /bin/rm -f $$i; fi; done fi'
	sh -c 'if [ -d net ] ; then cd net; for i in *; do if [ -h $$i ] ; then /bin/rm -f $$i; fi; done fi'
	${RM} -f netinet/done net/done
d213 1
a213 10
	(cd BSD; make TOP=.. clean)

clean-hpux: clean-include
	(cd HPUX; $(MAKE) BITS=32 clean)

clean-osf: clean-include
	(cd OSF; make clean)

clean-linux: clean-include
	(cd Linux; make clean)
d219 1
a219 2
	(cd SunOS5; $(MAKE) clean)
	/bin/rm -rf sparcv?
d222 4
a225 1
	(cd IRIX; $(MAKE) clean)
d227 12
a238 8
h/xti.h:
	mkdir -p h
	ln -s /usr/include/sys/xti.h h

hpux: include h/xti.h
	make setup CPUDIR=`HPUX/cpurev` TARGOS=HPUX
	(cd HPUX/`HPUX/cpurev`; $(MAKE) build TOP=../.. $(DEST) $(MFLAGS) "BITS=`getconf KERNEL_BITS`" `../makeargs`; cd ..)
	(cd HPUX/`HPUX/cpurev`; $(MAKE) -f Makefile.ipsend build TOP=../.. $(DEST) $(MFLAGS) "BITS=`getconf KERNEL_BITS`" `../makeargs`; cd ..)
d242 1
a242 1
	(cd SunOS4; make -f Makefile.ipsend build "CC=$(CC)" TOP=.. $(DEST) $(MFLAGS); cd ..)
d244 3
a246 3
sunos5 solaris2: null
	(cd SunOS5/$(CPUDIR); $(MAKE) build TOP=../.. "CC=$(CC)" $(DEST) $(MFLAGS) "SOLARIS2=$(SOLARIS2)" "CPU=-Dsparc -D__sparc__"; cd ..)
	(cd SunOS5/$(CPUDIR); $(MAKE) -f Makefile.ipsend build TOP=../.. "CC=$(CC)" $(DEST) $(MFLAGS); cd ..)
d248 1
a248 1
sunos5x86 solaris2x86: null
d250 1
a250 5
	(cd SunOS5/$(CPUDIR); make -f Makefile.ipsend build TOP=../.. "CC=$(CC)" $(DEST) $(MFLAGS); cd ..)

linux: null include
	(cd Linux; make build LINUX=`uname -r | awk -F. ' { for(i=0;i<NF;i++){printf("%02d",$$(i+1));}}'` TOP=.. "DEBUG=-g" "CC=$(CC)" $(MFLAGS) OBJ=$(CPUDIR) LINUXKERNEL=$(LINUXKERNEL); cd ..)
#	(cd Linux; make -f Makefile.ipsend build LINUX=`uname -r | awk -F. ' { for(i=0;i<NF;i++){printf("%02d",$$(i+1));}}'` TOP=.. "CC=$(CC)" $(MFLAGS); cd ..)
d252 3
a254 2
install-linux: linux
	(cd Linux/$(CPUDIR); make LINUX=`uname -r | awk -F. ' { for(i=0;i<NF;i++){printf("%02d",$$(i+1));}}'` TOP=../.. "DEBUG=-g" "CC=$(CC)" $(MFLAGS) OBJ=$(CPUDIR) install ; cd ..)
d261 1
a261 1
	(cd SunOS4; $(MAKE) CPU=$(CPU) TOP=.. install)
d264 1
a264 4
	(cd SunOS5; $(MAKE) CPU=$(CPU) TOP=.. install)

install-hpux: hpux
	(cd HPUX/`HPUX/cpurev`; $(MAKE) CPU=$(CPU) TOP=../.. "BITS=`getconf KERNEL_BITS`" install)
d267 1
a267 1
	(cd IRIX; smake install CPU=$(CPU) TOP=.. $(DEST) $(MFLAGS) CPUDIR=`./cpurev`)
d269 12
a280 3
install-osf install-tru64:
	(cd OSF/`OSF/cpurev`; make install "TOP=../.." $(MFLAGS); cd ..)
	(cd OSF/`OSF/cpurev`; make -f Makefile.ipsend INSTALL=$(INSTALL) install "TOP=../.." $(MFLAGS); cd ..)
a284 18
	/bin/rm -f ip_msnrpc_pxy.c ip_sunrpc_pxy.c

ip_rules.c ip_rules.h: rules/ip_rules tools/ipfcomp.c
	-./ipf -cc -f rules/ip_rules 2>/dev/null 1>&2

null:
	-@@if [ "`$(MAKE) -v 2>&1 | sed -ne 's/GNU.*/GNU/p'`" = "GNU" ] ; then \
		echo 'Do not use GNU make (gmake) to compile IPFilter'; \
		exit 1; \
	fi
	-@@echo make ok

mdb:
	/bin/rm -rf mdbgen_build
	mdbgen -D_KERNEL -DIPFILTER_LOG -DIPFILTER_LOOKUP -DSUNDDI \
	       -DIPFILTER_SCAN -DIPFILTER_LKM -DSOLARIS2=10 -n ipf_mdb -k \
	       -I/home/dr146992/pfil -I/home/dr146992/ipf -f \
	       /usr/include/netinet/in_systm.h,/usr/include/sys/ethernet.h,/usr/include/netinet/in.h,/usr/include/netinet/ip.h,/usr/include/netinet/ip_var.h,/usr/include/netinet/tcp.h,/usr/include/netinet/tcpip.h,/usr/include/netinet/ip_icmp.h,/usr/include/netinet/udp.h,ip_compat.h,ip_fil.h,ip_nat.h,ip_state.h,ip_proxy.h,ip_scan.h
@


1.1.1.8
log
@Import IPFilter 4.1.3
@
text
@d8 1
a8 1
# Id: Makefile,v 2.76.2.9 2004/07/08 13:12:00 darrenr Exp
a51 4
# WARNING: If you're building a commercial product based on IPFilter, using
#          this options *may* infringe at least one patent held by CheckPoint
#          (5,606,668.)
#
d63 1
a63 1
LINUXKERNEL=/usr/src/linux
d69 1
a69 1
ALLOPTS=-DIPFILTER_LOG -DIPFILTER_LOOKUP \
d109 1
a109 1
MACHASSERT=`/bin/ls -1 /usr/sys/*/mach_assert.h | head -1`
d127 1
a127 1
	@@echo "freebsd20	- compile for FreeBSD 2.0, 2.1 or earlier"
a142 4
retest:
	@@if [ -d test ]; then (cd test; make clean && make) \
	else echo test directory not present, sorry; fi

a148 1
	-(cd netinet; ln -s ../ip_rules.h ip_rules.h)
d177 1
a177 1
	make freebsd20
d212 1
a212 1
	(cd BSD/$(CPUDIR); make build TOP=../.. $(MFLAGS) 'DLKM=-D_LKM' "ML=mln_ipl.c" LKMR= "MLR=mln_rule.o"; cd ..)
d215 1
a215 1
openbsd: include
d217 1
a217 1
	(cd BSD/$(CPUDIR); make build TOP=../.. $(MFLAGS) 'DLKM=-D_LKM' "ML=mlo_ipl.c" LKMR= "MLR=mlo_rule.o"; cd ..)
d220 1
a220 1
freebsd20 freebsd21: include
d322 2
a323 2
linux: include
	(cd Linux; make build LINUX=`uname -r | awk -F. ' { for(i=0;i<3;i++){printf("%02d",$$(i+1));}}'` TOP=.. "DEBUG=-g" "CC=$(CC)" $(MFLAGS) OBJ=$(CPUDIR) LINUXKERNEL=$(LINUXKERNEL); cd ..)
d336 1
a336 1
install-sunos5: solaris null
d355 1
a355 1
	-./ipf -n -cc -f rules/ip_rules 2>/dev/null 1>&2
d358 1
a358 1
	@@if [ "`$(MAKE) -v 2>&1 | sed -ne 's/GNU.*/GNU/p'`" = "GNU" ] ; then \
@


1.1.1.9
log
@Import IPFilter 4.1.5
@
text
@d8 1
a8 1
# Id: Makefile,v 2.76.2.13 2004/11/08 18:42:40 darrenr Exp
a67 1
LINUX=`uname -r | awk -F. ' { printf"%d",$$1;for(i=1;i<NF&&i<3;i++){printf("%02d",$$(i+1));}}'`
d332 2
a333 3
	(cd Linux; make build LINUX=$(LINUX) TOP=.. "DEBUG=-g" "CC=$(CC)" $(MFLAGS) OBJ=$(CPUDIR) LINUXKERNEL=$(LINUXKERNEL); cd ..)
	(cd Linux; make ipflkm LINUX=$(LINUX) TOP=.. "DEBUG=-g" "CC=$(CC)" $(MFLAGS) OBJ=$(CPUDIR) LINUXKERNEL=$(LINUXKERNEL) WORKDIR=`pwd`; cd ..)
#	(cd Linux; make -f Makefile.ipsend build LINUX=$(LINUX) TOP=.. "CC=$(CC)" $(MFLAGS); cd ..)
d336 1
a336 1
	(cd Linux/; make LINUX=$(LINUX) TOP=.. "DEBUG=-g" "CC=$(CC)" $(MFLAGS) OBJ=$(CPUDIR) install ; cd ..)
@


1.1.1.10
log
@Import IPFilter 4.1.13
@
text
@d8 1
a8 1
# Id: Makefile,v 2.76.2.19 2006/03/17 10:38:38 darrenr Exp
a136 1
	@@echo "freebsd6 - compile for FreeBSD-6.x"
d189 1
a189 1
freebsd5 freebsd6: include
a194 9
	if [ "x$(IPFBPF)" = "x" ] ; then \
		echo "#undef NBPF" > opt_bpf.h; \
		echo "#undef NBPFILTER" > opt_bpf.h; \
		echo "#undef DEV_BPF" > opt_bpf.h; \
	else \
		echo "#define NBPF" > opt_bpf.h; \
		echo "#define NBPFILTER" > opt_bpf.h; \
		echo "#define DEV_BPF" > opt_bpf.h; \
	fi
a239 5
aix: null include
	make setup "TARGOS=AIX" "CPUDIR=`AIX/cpurev`"
	(cd AIX/`AIX/cpurev`; make build AIX=`uname -v` TOP=../.. "DEBUG=-g" $(MFLAGS) "OSREV=`../cpurev`" BITS=`../bootbits.sh`; cd ..)
#	(cd AIX/`AIX/cpurev`; make -f Makefile.ipsend build AIX=`uname -v` TOP=../.. $(MFLAGS) "OSREV=`../cpurev`"; cd ..)

a279 1
	(cd AIX; $(MAKE) TOP=.. clean)
a297 3
clean-aix: clean-include
	(cd AIX; make clean)

a349 4
install-aix:
	(cd AIX/`AIX/cpurev`; make install "TOP=../.." $(MFLAGS); cd ..)
#	(cd AIX/`AIX/cpurev`; make -f Makefile.ipsend INSTALL=$(INSTALL) install "TOP=../.." $(MFLAGS); cd ..)

d358 1
a380 1

@


1.1.1.11
log
@Import IPFilter 4.1.22
@
text
@d8 1
a8 1
# Id: Makefile,v 2.76.2.21 2007/05/11 21:57:25 darrenr Exp
d190 1
a190 1
freebsd5 freebsd6 freebsd7: include
a231 9
	@@if [ ! -d /sys -o ! -d /sys/arch ] ; then \
		echo "*****************************************************"; \
		echo "*                                                   *"; \
		echo "* Please extract source code to create /sys and     *";\
		echo "* /sys/arch and run 'config GENERIC'                *"; \
		echo "*                                                   *"; \
		echo "*****************************************************"; \
		exit 1; \
	fi
@


1.1.1.12
log
@Import IPFilter 4.1.29 to the vendor branch
@
text
@d8 1
a8 1
# Id: Makefile,v 2.76.2.27 2008/03/16 06:45:35 darrenr Exp
d82 1
a82 1
# Where to find the ncurses include files (if not in default path),
d134 4
a137 1
	@@echo "freebsd	- compile for all other versions of FreeBSD"
a153 1
	-mkdir -p net netinet
a168 3
freebsd:
	make freebsd`uname -r|cut -c1`

d190 1
a190 1
freebsd5 freebsd6 freebsd7 freebsd8: include
d353 1
a353 1
	(cd SunOS5/$(CPUDIR); $(MAKE) build TOP=../.. "CC=$(CC)" $(DEST) $(MFLAGS) "SOLARIS2=$(SOLARIS2)"; cd ..)
d356 4
d376 1
a376 1
	(cd SunOS5; $(MAKE) TOP=.. install)
@


1.1.1.13
log
@Import IPFilter 4.1.33

4.1.33 - Release 16 August 2009

2837931 wrong mode selected in ipf program for hash-entries
2826168 load_http can make ippool core dump
2825150 IPL_LOGMAX used to index some arrays
2825084 ipv6 fragments should not be allowed past 64k
2824713 ipfstat top output alternates between entries and nothing
2824712 ipfstat top output is shows negative ttl
2820965 a single bad ipv6 extension header should not impact others
2818197 ignored fragment bits defined as being reserved
2817667 IPv6 fragment header verification needs attention
2817098 fr_getrulen() finds the wrong rule
2817096 fr_rulen is unused
2741019 Lingering states (Established/Listen - 5/0) in state table
2702887 use of PBR/fastroute causes panic with ipv6
2671913 regression test in7 fails to execute
2598625 parsing empty config file results in an error
2698656 test parsing empty config files
2597956 not all pointers in a clone are reset
2543934 nat_t gets assigned ifp too early
2535795 No need to always bump fr_ref
2535778 Bad IPv6 packets droped by default
2031730 4.1.31 Nat drops fragmented packets after the first
2214661 ipf does not handle IPv6 fragments
2473273 NAT removed before RST/ICMP sent
2216500 fin_state serves no purpose
2424604 adding random MD5 data causes panic
2304435 Ineffecient lock usage in logging
2216491 fin_nat serves little purpose
2055619 duplicating a free-d packet will fail
2042949 Excessive locking when creating nat_t
2035610 nat_update does not need to get locks
2214658 ipf mostly ignores locking in NetBSD
1979427 Memory leak in user utilities - token never freed (rel br)
* SunOS4 does not have a curproc, but it does have u.
* The fix for 2020447 generated random port numbers but not within the
  range specified in the map rule.  Add in a regression test to verify
  that the "random" part works.
2020447 NAT can undo name server random port selection
1988795 NetBSD does not build with kernel malloc stats
1988782 fr_movequeue can take a short cut
1988669 first nat creation failure prevents further success
1988668 hostmap searching does not work properly
* on some 64bit architectures (such as alpha), the addrfamily_t is packed
  differently, throwing off the calculations for adf_len
* one too many READ_ENTERs in ip_sync code.
* clean up fr_fastroute a little by removing some #ifdefs and pushing the
  code around a bit to use the same variables (NetBSD)
* more recent NetBSDs use VOP related macros differently
@
text
@d8 1
a8 1
# Id: Makefile,v 2.76.2.29 2009/07/18 19:05:35 darrenr Exp
d67 1
a67 1
LINUXKERNEL=/usr/src/kernels/2.6.29.5-191.fc11.i586
a68 5
#
#
#
#BUILDROOT=/usr/src/redhat/BUILD/ipfilter
BUILDROOT=${HOME}/rpmbuild/BUILDROOT/ipfilter-4.1.32-1.i386
d243 1
a243 1
#	(cd BSD/$(CPUDIR); make -f Makefile.ipsend build TOP=../.. $(MFLAGS); cd ..)
d363 1
a363 1
	(cd Linux/; make LINUX=$(LINUX) TOP=.. "DEBUG=-g" "CC=$(CC)" $(MFLAGS) OBJ=$(CPUDIR) ROOTDIR=$(BUILDROOT) install ; cd ..)
d409 1
@


1.1.1.14
log
@Import IPFilter 4.1.34 into NetBSD

4.1.34 - Release 11 March 2010
2964907 uninitialised use compile error
2959506 ipfstat does not display rules with compat
2949139 FR_T_BUILTIN masked out incorrectly
2937422 packets filtered with pools should not be cached
2935529 use of rules with tags leads to deadlock
2917501 whitespace cleanup required
2881514 in/out object functions not wired for compatibility
2841771 ipf/ippool rule maintenace bugs: memory leak, ref-counter bug
2839698 H.323 proxy does not clear fin_state/fin_nat
@
text
@d8 1
a8 1
# Id: Makefile,v 2.76.2.31 2010/01/31 16:22:53 darrenr Exp
a37 4
# To enable IPFilter compatibility with older CLI utilities
#
COMPATIPF=-DIPFILTER_COMPAT
#
a116 1
	"COMPATIPF=$(COMPATIPF)" \
d219 1
a219 1
#	(cd BSD/$(CPUDIR); make -f Makefile.ipsend build TOP=../.. $(MFLAGS1); cd ..)
@
