2006-02-05 17:17:32 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2014-05-06 04:22:01 +00:00
|
|
|
.include <src.opts.mk>
|
2006-03-17 18:54:44 +00:00
|
|
|
|
2012-09-14 11:51:49 +00:00
|
|
|
.PATH: ${.CURDIR}/../../netpfil/pf
|
2006-02-05 17:17:32 +00:00
|
|
|
|
|
|
|
KMOD= pflog
|
2011-06-28 11:57:25 +00:00
|
|
|
SRCS= if_pflog.c \
|
2006-02-05 17:17:32 +00:00
|
|
|
opt_pf.h opt_inet.h opt_inet6.h opt_bpf.h
|
2011-06-28 11:57:25 +00:00
|
|
|
SRCS+= bus_if.h device_if.h
|
2006-02-05 17:17:32 +00:00
|
|
|
|
2011-06-28 11:57:25 +00:00
|
|
|
.if defined(KERNBUILDDIR)
|
|
|
|
MKDEP+= -include ${KERNBUILDDIR}/opt_global.h
|
|
|
|
.else
|
|
|
|
.if ${MK_INET_SUPPORT} != "no"
|
2006-02-05 17:17:32 +00:00
|
|
|
opt_inet.h:
|
2008-09-01 23:59:00 +00:00
|
|
|
echo "#define INET 1" > ${.TARGET}
|
2011-06-28 11:57:25 +00:00
|
|
|
.endif
|
2006-02-05 17:17:32 +00:00
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_INET6_SUPPORT} != "no"
|
2006-02-05 17:17:32 +00:00
|
|
|
opt_inet6.h:
|
2008-09-01 23:59:00 +00:00
|
|
|
echo "#define INET6 1" > ${.TARGET}
|
2006-02-05 17:17:32 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
opt_bpf.h:
|
2008-09-01 23:59:00 +00:00
|
|
|
echo "#define DEV_BPF 1" > ${.TARGET}
|
2011-06-28 11:57:25 +00:00
|
|
|
|
|
|
|
.if defined(VIMAGE)
|
|
|
|
opt_global.h:
|
|
|
|
echo "#define VIMAGE 1" >> ${.TARGET}
|
|
|
|
CFLAGS+= -include opt_global.h
|
|
|
|
MKDEP+= -include opt_global.h
|
|
|
|
.endif
|
2006-02-05 17:17:32 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.kmod.mk>
|