xref: /freebsd/sys/modules/pf/Makefile (revision 21fdc27a054f668c8b6c2be503fa68622e5226da)
1# $FreeBSD$
2
3.include <bsd.own.mk>
4
5.PATH: ${.CURDIR}/../../contrib/pf/net
6.PATH: ${.CURDIR}/../../contrib/pf/netinet
7
8KMOD=	pf
9SRCS = 	pf.c pf_if.c pf_subr.c pf_osfp.c pf_ioctl.c pf_norm.c pf_table.c \
10	pf_ruleset.c \
11	in4_cksum.c \
12	opt_pf.h opt_inet.h opt_inet6.h opt_bpf.h
13
14CFLAGS+=  -I${.CURDIR}/../../contrib/pf
15
16.if !defined(KERNBUILDDIR)
17opt_inet.h:
18	echo "#define INET 1" > ${.TARGET}
19
20.if ${MK_INET6_SUPPORT} != "no"
21opt_inet6.h:
22	echo "#define INET6 1" > ${.TARGET}
23.endif
24
25opt_bpf.h:
26	echo "#define DEV_BPF 1" > ${.TARGET}
27
28# pflog 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.endif
33
34.include <bsd.kmod.mk>
35