xref: /freebsd/sys/modules/pf/Makefile (revision 74bf4e164ba5851606a27d4feff27717452583e5)
1# $FreeBSD$
2
3.PATH: ${.CURDIR}/../../contrib/pf/net
4.PATH: ${.CURDIR}/../../contrib/pf/netinet
5.PATH: ${.CURDIR}/../../netinet
6
7KMOD=	pf
8SRCS = 	pf.c pf_if.c pf_subr.c pf_osfp.c pf_ioctl.c pf_norm.c pf_table.c \
9	if_pflog.c \
10	in4_cksum.c \
11	opt_pf.h opt_inet.h opt_inet6.h opt_bpf.h
12
13CFLAGS+=  -Wall -I${.CURDIR}/../../contrib/pf
14
15opt_pf.h:
16	echo "#define DEV_PF 1" > opt_pf.h
17	echo "#define DEV_PFLOG 1" >> opt_pf.h
18
19opt_inet.h:
20	echo "#define INET 1" > opt_inet.h
21
22opt_inet6.h:
23.if defined(NOINET6)
24	echo > opt_inet6.h
25.else
26	echo "#define INET6 1" > opt_inet6.h
27.endif
28
29opt_bpf.h:
30	echo "#define DEV_BPF 1" > opt_bpf.h
31
32.include <bsd.kmod.mk>
33