1155337Smlaier# $FreeBSD: releng/10.2/sys/modules/pflog/Makefile 240494 2012-09-14 11:51:49Z glebius $ 2155337Smlaier 3156813Sru.include <bsd.own.mk> 4156813Sru 5240494Sglebius.PATH: ${.CURDIR}/../../netpfil/pf 6155337Smlaier 7155337SmlaierKMOD= pflog 8223637SbzSRCS= if_pflog.c \ 9155337Smlaier opt_pf.h opt_inet.h opt_inet6.h opt_bpf.h 10223637SbzSRCS+= bus_if.h device_if.h 11155337Smlaier 12223637Sbz.if defined(KERNBUILDDIR) 13223637SbzMKDEP+= -include ${KERNBUILDDIR}/opt_global.h 14223637Sbz.else 15223637Sbz.if ${MK_INET_SUPPORT} != "no" 16155337Smlaieropt_inet.h: 17182668Simp echo "#define INET 1" > ${.TARGET} 18223637Sbz.endif 19155337Smlaier 20156813Sru.if ${MK_INET6_SUPPORT} != "no" 21155337Smlaieropt_inet6.h: 22182668Simp echo "#define INET6 1" > ${.TARGET} 23155337Smlaier.endif 24155337Smlaier 25155337Smlaieropt_bpf.h: 26182668Simp echo "#define DEV_BPF 1" > ${.TARGET} 27223637Sbz 28223637Sbz.if defined(VIMAGE) 29223637Sbzopt_global.h: 30223637Sbz echo "#define VIMAGE 1" >> ${.TARGET} 31223637SbzCFLAGS+= -include opt_global.h 32223637SbzMKDEP+= -include opt_global.h 33155337Smlaier.endif 34223637Sbz.endif 35155337Smlaier 36155337Smlaier.include <bsd.kmod.mk> 37