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