1 # $FreeBSD: releng/9.2/sys/modules/pflog/Makefile 223637 2011-06-28 11:57:25Z bz $
2
3 .include <bsd.own.mk>
4
5 .PATH: ${.CURDIR}/../../contrib/pf/net
6
7 KMOD= pflog
8 SRCS= if_pflog.c \
9 opt_pf.h opt_inet.h opt_inet6.h opt_bpf.h
10
11 CFLAGS+= -I${.CURDIR}/../../contrib/pf
12 SRCS+= bus_if.h device_if.h
13
14 .if defined(KERNBUILDDIR)
15 MKDEP+= -include ${KERNBUILDDIR}/opt_global.h
16 .else
17 .if ${MK_INET_SUPPORT} != "no"
18 opt_inet.h:
19 echo "#define INET 1" > ${.TARGET}
20 .endif
21
22 .if ${MK_INET6_SUPPORT} != "no"
23 opt_inet6.h:
24 echo "#define INET6 1" > ${.TARGET}
25 .endif
26
27 opt_bpf.h:
28 echo "#define DEV_BPF 1" > ${.TARGET}
29
30 .if defined(VIMAGE)
31 opt_global.h:
32 echo "#define VIMAGE 1" >> ${.TARGET}
33 CFLAGS+= -include opt_global.h
34 MKDEP+= -include opt_global.h
35 .endif
36 .endif
37
38 .include <bsd.kmod.mk>
Cache object: 3f8da464427f4b5069e10f8bae40339a
|