]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/modules/ipfw/Makefile
Sync to HEAD@r272516.
[FreeBSD/FreeBSD.git] / sys / modules / ipfw / Makefile
1 # $FreeBSD$
2
3 .include <src.opts.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 ip_fw_table_algo.c ip_fw_iface.c
11 SRCS+=  ip_fw_table_value.c
12 SRCS+=  dxr_fwd.c dxr_algo.c
13 SRCS+=  opt_inet.h opt_inet6.h opt_ipdivert.h opt_ipfw.h opt_ipsec.h
14
15 CFLAGS+= -DIPFIREWALL
16 #
17 #If you want it verbose
18 #CFLAGS+= -DIPFIREWALL_VERBOSE
19 #CFLAGS+= -DIPFIREWALL_VERBOSE_LIMIT=100
20 #
21 #If you want it to pass all packets by default
22 #CFLAGS+= -DIPFIREWALL_DEFAULT_TO_ACCEPT
23 #
24
25 .if !defined(KERNBUILDDIR)
26 .if ${MK_INET_SUPPORT} != "no"
27 opt_inet.h:
28         echo "#define INET 1" > ${.TARGET}
29 .endif
30 .if ${MK_INET6_SUPPORT} != "no"
31 opt_inet6.h:
32         echo "#define INET6 1" > ${.TARGET}
33 .endif
34 .endif
35
36 .include <bsd.kmod.mk>