]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - sys/modules/pf/Makefile
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / sys / modules / pf / Makefile
1 # $FreeBSD$
2
3 .include <bsd.own.mk>
4
5 .PATH: ${.CURDIR}/../../contrib/pf/net
6 .PATH: ${.CURDIR}/../../contrib/pf/netinet
7
8 KMOD=   pf
9 SRCS=   pf.c pf_if.c pf_lb.c pf_osfp.c pf_ioctl.c pf_norm.c pf_table.c \
10         pf_ruleset.c \
11         in4_cksum.c \
12         opt_pf.h opt_inet.h opt_inet6.h opt_bpf.h opt_global.h
13
14 CFLAGS+= -I${.CURDIR}/../../contrib/pf
15
16 .if !defined(KERNBUILDDIR)
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 # pflog can be loaded as a module, have the additional checks turned on
31 # pfsync can be loaded as a module, have the additional checks turned on
32 opt_pf.h:
33         echo "#define DEV_PF 1" > ${.TARGET}
34         echo "#define DEV_PFLOG 1" >> ${.TARGET}
35         echo "#define DEV_PFSYNC 1" >> ${.TARGET}
36         echo "#define DEV_PFLOW 1" >> ${.TARGET}
37
38 .if defined(VIMAGE)
39 opt_global.h:
40         echo "#define VIMAGE 1" >> ${.TARGET}
41 .endif
42 .endif
43
44 .include <bsd.kmod.mk>