1# $FreeBSD$
2
3.include <bsd.own.mk>
4
5.PATH: ${.CURDIR}/../../contrib/pf/net
6
7KMOD=	pfsync
8SRCS=	if_pfsync.c \
9	opt_pf.h opt_inet.h opt_inet6.h
10
11CFLAGS+= -I${.CURDIR}/../../contrib/pf
12SRCS+=	bus_if.h device_if.h
13
14.if defined(KERNBUILDDIR)
15MKDEP+=		-include ${KERNBUILDDIR}/opt_global.h
16.else
17.if ${MK_INET_SUPPORT} != "no"
18opt_inet.h:
19	echo "#define INET 1" > ${.TARGET}
20.endif
21
22.if ${MK_INET6_SUPPORT} != "no"
23opt_inet6.h:
24	echo "#define INET6 1" > ${.TARGET}
25.endif
26
27.if defined(VIMAGE)
28opt_global.h:
29	echo "#define VIMAGE 1" >> ${.TARGET}
30CFLAGS+=	-include opt_global.h
31MKDEP+=		-include opt_global.h
32.endif
33.endif
34
35.include <bsd.kmod.mk>
36