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 opt_mac.h 13 14CFLAGS+= -I${.CURDIR}/../../contrib/pf 15 16.if !defined(KERNBUILDDIR) 17opt_inet.h: 18 echo "#define INET 1" > opt_inet.h 19 20.if ${MK_INET6_SUPPORT} != "no" 21opt_inet6.h: 22 echo "#define INET6 1" > opt_inet6.h 23.endif 24 25opt_bpf.h: 26 echo "#define DEV_BPF 1" > opt_bpf.h 27 28# pflog can be loaded as a module, have the additional checks turned on 29opt_pf.h: 30 echo "#define DEV_PF 1" > opt_pf.h 31 echo "#define DEF_PFLOG 1" >> opt_pf.h 32.endif 33 34.include <bsd.kmod.mk> 35