]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - sys/modules/pflog/Makefile
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / sys / modules / pflog / Makefile
1 # $FreeBSD$
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>