]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - sys/modules/pflog/Makefile
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / sys / modules / pflog / Makefile
1 # $FreeBSD$
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>