]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - sys/modules/ipfw/Makefile
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / sys / modules / ipfw / Makefile
1 # $FreeBSD$
2
3 .include <bsd.own.mk>
4
5 .PATH: ${.CURDIR}/../../netpfil/ipfw
6
7 KMOD=   ipfw
8 SRCS=   ip_fw2.c ip_fw_pfil.c
9 SRCS+=  ip_fw_dynamic.c ip_fw_log.c
10 SRCS+=  ip_fw_sockopt.c ip_fw_table.c
11 SRCS+=  opt_inet.h opt_inet6.h opt_ipdivert.h opt_ipfw.h opt_ipsec.h
12
13 CFLAGS+= -DIPFIREWALL
14 #
15 #If you want it verbose
16 #CFLAGS+= -DIPFIREWALL_VERBOSE
17 #CFLAGS+= -DIPFIREWALL_VERBOSE_LIMIT=100
18 #
19 #If you want it to pass all packets by default
20 #CFLAGS+= -DIPFIREWALL_DEFAULT_TO_ACCEPT
21 #
22
23 .if !defined(KERNBUILDDIR)
24 .if ${MK_INET_SUPPORT} != "no"
25 opt_inet.h:
26         echo "#define INET 1" > ${.TARGET}
27 .endif
28 .if ${MK_INET6_SUPPORT} != "no"
29 opt_inet6.h:
30         echo "#define INET6 1" > ${.TARGET}
31 .endif
32 .endif
33
34 .include <bsd.kmod.mk>