1228753Smm# $FreeBSD: releng/10.3/sys/modules/ipfw/Makefile 240494 2012-09-14 11:51:49Z glebius $
2232153Smm
3228753Smm.include <bsd.own.mk>
4228753Smm
5228753Smm.PATH: ${.CURDIR}/../../netpfil/ipfw
6228753Smm
7228753SmmKMOD=	ipfw
8228753SmmSRCS=	ip_fw2.c ip_fw_pfil.c
9228753SmmSRCS+=	ip_fw_dynamic.c ip_fw_log.c
10228753SmmSRCS+=	ip_fw_sockopt.c ip_fw_table.c
11228753SmmSRCS+=	opt_inet.h opt_inet6.h opt_ipdivert.h opt_ipfw.h opt_ipsec.h
12228753Smm
13228753SmmCFLAGS+= -DIPFIREWALL
14228753Smm#
15228753Smm#If you want it verbose
16228753Smm#CFLAGS+= -DIPFIREWALL_VERBOSE
17228753Smm#CFLAGS+= -DIPFIREWALL_VERBOSE_LIMIT=100
18228753Smm#
19228753Smm#If you want it to pass all packets by default
20228753Smm#CFLAGS+= -DIPFIREWALL_DEFAULT_TO_ACCEPT
21228753Smm#
22228753Smm
23228753Smm.if !defined(KERNBUILDDIR)
24228753Smm.if ${MK_INET_SUPPORT} != "no"
25228753Smmopt_inet.h:
26228753Smm	echo "#define INET 1" > ${.TARGET}
27228753Smm.endif
28228753Smm.if ${MK_INET6_SUPPORT} != "no"
29228753Smmopt_inet6.h:
30228753Smm	echo "#define INET6 1" > ${.TARGET}
31228753Smm.endif
32228753Smm.endif
33228753Smm
34228753Smm.include <bsd.kmod.mk>
35228763Smm