1 # $FreeBSD$
2
3 .include <bsd.own.mk>
4
5 .PATH: ${.CURDIR}/../../netpfil/pf
6
7 KMOD= pf
8 SRCS= pf.c pf_if.c pf_lb.c pf_osfp.c pf_ioctl.c pf_norm.c pf_table.c \
9 pf_ruleset.c in4_cksum.c \
10 bus_if.h device_if.h \
11 opt_pf.h opt_inet.h opt_inet6.h opt_bpf.h opt_global.h
12
13 .if !defined(KERNBUILDDIR)
14 .if ${MK_INET_SUPPORT} != "no"
15 opt_inet.h:
16 echo "#define INET 1" > ${.TARGET}
17 .endif
18
19 .if ${MK_INET6_SUPPORT} != "no"
20 opt_inet6.h:
21 echo "#define INET6 1" > ${.TARGET}
22 .endif
23
24 opt_bpf.h:
25 echo "#define DEV_BPF 1" > ${.TARGET}
26
27 # pflog can be loaded as a module, have the additional checks turned on
28 # pfsync can be loaded as a module, have the additional checks turned on
29 opt_pf.h:
30 echo "#define DEV_PF 1" > ${.TARGET}
31 echo "#define DEV_PFLOG 1" >> ${.TARGET}
32 echo "#define DEV_PFSYNC 1" >> ${.TARGET}
33
34 .if defined(VIMAGE)
35 opt_global.h:
36 echo "#define VIMAGE 1" >> ${.TARGET}
37 .endif
38 .endif
39
40 .include <bsd.kmod.mk>
Cache object: c15581d368710ab7e3115d0c320165f2
|