xref: /freebsd/sys/modules/ipfw/Makefile (revision 1e413cf93298b5b97441a21d9a50fdcd0ee9945e)
1# $FreeBSD$
2
3.include <bsd.own.mk>
4
5.PATH: ${.CURDIR}/../../netinet
6
7KMOD=	ipfw
8SRCS=	ip_fw2.c ip_fw_pfil.c
9SRCS+=	opt_inet6.h opt_ipsec.h opt_mac.h
10
11CFLAGS+= -DIPFIREWALL
12CFLAGS+= -I${.CURDIR}/../../contrib/pf
13#
14#If you want it verbose
15#CFLAGS+= -DIPFIREWALL_VERBOSE
16#CFLAGS+= -DIPFIREWALL_VERBOSE_LIMIT=100
17#
18#If you want it to pass all packets by default
19#CFLAGS+= -DIPFIREWALL_DEFAULT_TO_ACCEPT
20#
21
22.if !defined(KERNBUILDDIR)
23.if ${MK_INET6_SUPPORT} != "no"
24opt_inet6.h:
25	echo "#define INET6 1" > ${.TARGET}
26.endif
27.endif
28
29.include <bsd.kmod.mk>
30