1999-08-28 01:08:13 +00:00
|
|
|
# $FreeBSD$
|
1995-01-12 13:03:02 +00:00
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
2009-06-05 19:22:47 +00:00
|
|
|
.PATH: ${.CURDIR}/../../netinet/ipfw
|
2001-01-06 14:00:42 +00:00
|
|
|
|
1998-10-16 04:30:52 +00:00
|
|
|
KMOD= ipfw
|
2004-08-26 14:18:30 +00:00
|
|
|
SRCS= ip_fw2.c ip_fw_pfil.c
|
2011-03-29 06:42:52 +00:00
|
|
|
SRCS+= ip_fw_dynamic.c ip_fw_log.c
|
2009-12-17 17:44:34 +00:00
|
|
|
SRCS+= ip_fw_sockopt.c ip_fw_table.c
|
2011-11-04 16:24:19 +00:00
|
|
|
SRCS+= opt_inet.h opt_inet6.h opt_ipdivert.h opt_ipfw.h opt_ipsec.h
|
2001-01-06 14:00:42 +00:00
|
|
|
|
1999-04-20 14:31:23 +00:00
|
|
|
CFLAGS+= -DIPFIREWALL
|
2007-07-03 12:46:08 +00:00
|
|
|
CFLAGS+= -I${.CURDIR}/../../contrib/pf
|
1995-01-12 13:03:02 +00:00
|
|
|
#
|
1995-01-12 13:57:51 +00:00
|
|
|
#If you want it verbose
|
1995-01-12 13:03:02 +00:00
|
|
|
#CFLAGS+= -DIPFIREWALL_VERBOSE
|
1996-06-23 14:28:02 +00:00
|
|
|
#CFLAGS+= -DIPFIREWALL_VERBOSE_LIMIT=100
|
1995-01-12 13:03:02 +00:00
|
|
|
#
|
1997-09-10 04:19:07 +00:00
|
|
|
#If you want it to pass all packets by default
|
|
|
|
#CFLAGS+= -DIPFIREWALL_DEFAULT_TO_ACCEPT
|
|
|
|
#
|
1995-01-12 13:03:02 +00:00
|
|
|
|
2005-11-29 17:56:11 +00:00
|
|
|
.if !defined(KERNBUILDDIR)
|
2011-09-27 13:27:17 +00:00
|
|
|
.if ${MK_INET_SUPPORT} != "no"
|
|
|
|
opt_inet.h:
|
|
|
|
echo "#define INET 1" > ${.TARGET}
|
|
|
|
.endif
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_INET6_SUPPORT} != "no"
|
2005-11-29 17:56:11 +00:00
|
|
|
opt_inet6.h:
|
|
|
|
echo "#define INET6 1" > ${.TARGET}
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2000-05-27 01:14:33 +00:00
|
|
|
.include <bsd.kmod.mk>
|