1# $FreeBSD$
2
3.include <bsd.own.mk>
4
5.PATH: ${.CURDIR}/../../netpfil/pf
6
7KMOD=	pf
8SRCS=	pf.c pf_if.c pf_lb.c pf_osfp.c pf_ioctl.c pf_norm.c pf_table.c \
9	pf_ruleset.c in4_cksum.c \
10	bus_if.h device_if.h \
11	opt_pf.h opt_inet.h opt_inet6.h opt_bpf.h opt_global.h
12
13.if !defined(KERNBUILDDIR)
14.if ${MK_INET_SUPPORT} != "no"
15opt_inet.h:
16	echo "#define INET 1" > ${.TARGET}
17.endif
18
19.if ${MK_INET6_SUPPORT} != "no"
20opt_inet6.h:
21	echo "#define INET6 1" > ${.TARGET}
22.endif
23
24opt_bpf.h:
25	echo "#define DEV_BPF 1" > ${.TARGET}
26
27# pflog can be loaded as a module, have the additional checks turned on
28# pfsync can be loaded as a module, have the additional checks turned on
29opt_pf.h:
30	echo "#define DEV_PF 1" > ${.TARGET}
31	echo "#define DEV_PFLOG 1" >> ${.TARGET}
32	echo "#define DEV_PFSYNC 1" >> ${.TARGET}
33
34.if defined(VIMAGE)
35opt_global.h:
36	echo "#define VIMAGE 1" >> ${.TARGET}
37.endif
38.endif
39
40.include <bsd.kmod.mk>
41