MFC in the pf and pflog modules:

pf: Respect KERNBUILDDIR.
both: Don't depend on DEV_*.

Approved by:	re (scottl)
This commit is contained in:
yar 2006-03-22 15:56:32 +00:00
parent 7ce10275c7
commit ec98efa564
2 changed files with 2 additions and 6 deletions

View File

@ -10,9 +10,7 @@ SRCS = pf.c pf_if.c pf_subr.c pf_osfp.c pf_ioctl.c pf_norm.c pf_table.c \
CFLAGS+= -I${.CURDIR}/../../contrib/pf
opt_pf.h:
echo "#define DEV_PF 1" > opt_pf.h
.if !defined(KERNBUILDDIR)
opt_inet.h:
echo "#define INET 1" > opt_inet.h
@ -23,5 +21,6 @@ opt_inet6.h:
opt_bpf.h:
echo "#define DEV_BPF 1" > opt_bpf.h
.endif
.include <bsd.kmod.mk>

View File

@ -9,9 +9,6 @@ SRCS = if_pflog.c \
CFLAGS+= -I${.CURDIR}/../../contrib/pf
.if !defined(KERNBUILDDIR)
opt_pf.h:
echo "#define DEV_PFLOG 1" > opt_pf.h
opt_inet.h:
echo "#define INET 1" > opt_inet.h