2004-02-26 03:53:54 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
.PATH: ${.CURDIR}/../../contrib/pf/net
|
|
|
|
.PATH: ${.CURDIR}/../../contrib/pf/netinet
|
2004-06-16 23:24:02 +00:00
|
|
|
.PATH: ${.CURDIR}/../../netinet
|
2004-02-26 03:53:54 +00:00
|
|
|
|
|
|
|
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 \
|
|
|
|
if_pflog.c \
|
|
|
|
in4_cksum.c ip_id.c \
|
2004-02-26 03:53:54 +00:00
|
|
|
opt_pf.h opt_inet.h opt_inet6.h opt_bpf.h opt_random_ip_id.h
|
|
|
|
|
|
|
|
CFLAGS+= -Wall -I${.CURDIR}/../../contrib/pf
|
|
|
|
|
|
|
|
opt_pf.h:
|
|
|
|
echo "#define DEV_PF 1" > opt_pf.h
|
|
|
|
echo "#define DEV_PFLOG 1" >> opt_pf.h
|
|
|
|
|
|
|
|
opt_inet.h:
|
|
|
|
echo "#define INET 1" > opt_inet.h
|
|
|
|
|
|
|
|
opt_inet6.h:
|
2004-04-06 15:12:50 +00:00
|
|
|
.if defined(NOINET6)
|
|
|
|
echo > opt_inet6.h
|
|
|
|
.else
|
2004-02-26 03:53:54 +00:00
|
|
|
echo "#define INET6 1" > opt_inet6.h
|
2004-04-06 15:12:50 +00:00
|
|
|
.endif
|
2004-02-26 03:53:54 +00:00
|
|
|
|
|
|
|
opt_bpf.h:
|
|
|
|
echo "#define DEV_BPF 1" > opt_bpf.h
|
|
|
|
|
|
|
|
opt_random_ip_id.h:
|
|
|
|
echo "#define RANDOM_IP_ID 1" > opt_random_ip_id.h
|
|
|
|
|
|
|
|
.include <bsd.kmod.mk>
|