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