2004-02-26 03:53:54 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
2004-02-26 03:53:54 +00:00
|
|
|
.PATH: ${.CURDIR}/../../contrib/pf/net
|
|
|
|
.PATH: ${.CURDIR}/../../contrib/pf/netinet
|
|
|
|
|
|
|
|
KMOD= pf
|
2004-06-16 23:24:02 +00:00
|
|
|
SRCS = pf.c pf_if.c pf_subr.c pf_osfp.c pf_ioctl.c pf_norm.c pf_table.c \
|
2007-07-03 12:46:08 +00:00
|
|
|
pf_ruleset.c \
|
2004-08-14 15:32:40 +00:00
|
|
|
in4_cksum.c \
|
2009-06-08 19:57:35 +00:00
|
|
|
opt_pf.h opt_inet.h opt_inet6.h opt_bpf.h
|
2004-02-26 03:53:54 +00:00
|
|
|
|
2004-09-01 07:39:12 +00:00
|
|
|
CFLAGS+= -I${.CURDIR}/../../contrib/pf
|
2004-02-26 03:53:54 +00:00
|
|
|
|
2005-10-14 23:30:17 +00:00
|
|
|
.if !defined(KERNBUILDDIR)
|
2004-02-26 03:53:54 +00:00
|
|
|
opt_inet.h:
|
2008-09-01 23:59:00 +00:00
|
|
|
echo "#define INET 1" > ${.TARGET}
|
2004-02-26 03:53:54 +00:00
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_INET6_SUPPORT} != "no"
|
2004-02-26 03:53:54 +00:00
|
|
|
opt_inet6.h:
|
2008-09-01 23:59:00 +00:00
|
|
|
echo "#define INET6 1" > ${.TARGET}
|
2004-04-06 15:12:50 +00:00
|
|
|
.endif
|
2004-02-26 03:53:54 +00:00
|
|
|
|
|
|
|
opt_bpf.h:
|
2008-09-01 23:59:00 +00:00
|
|
|
echo "#define DEV_BPF 1" > ${.TARGET}
|
2007-07-03 12:46:08 +00:00
|
|
|
|
|
|
|
# pflog can be loaded as a module, have the additional checks turned on
|
|
|
|
opt_pf.h:
|
2008-09-01 23:59:00 +00:00
|
|
|
echo "#define DEV_PF 1" > ${.TARGET}
|
2009-10-10 03:32:46 +00:00
|
|
|
echo "#define DEV_PFLOG 1" >> ${.TARGET}
|
2005-10-14 23:30:17 +00:00
|
|
|
.endif
|
2004-02-26 03:53:54 +00:00
|
|
|
|
|
|
|
.include <bsd.kmod.mk>
|