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