2012-08-02 04:22:32 +04:00
|
|
|
# $NetBSD: Makefile,v 1.3 2012/08/02 00:22:32 matt Exp $
|
2010-01-26 01:21:28 +03:00
|
|
|
#
|
|
|
|
|
|
|
|
.include "../Makefile.inc"
|
|
|
|
|
|
|
|
.PATH: ${S}/net
|
|
|
|
|
|
|
|
KMOD= bpf
|
|
|
|
# XXX: bpf_filter.c maybe needs to be its own module (or made
|
|
|
|
# inseparable from bpfilter?)
|
|
|
|
SRCS= bpf.c bpf_filter.c
|
|
|
|
|
2012-08-02 03:24:28 +04:00
|
|
|
.PATH: ${S}/arch/${MACHINE}/${MACHINE}
|
|
|
|
.PATH: ${S}/arch/${MACHINE_ARCH}/${MACHINE_ARCH}
|
|
|
|
.PATH: ${S}/arch/${MACHINE_CPU}/${MACHINE_CPU}
|
|
|
|
|
|
|
|
.if (exists(${S}/arch/${MACHINE}/${MACHINE}/bpf_jit_machdep.c)) || \
|
2012-08-02 04:22:32 +04:00
|
|
|
(exists(${S}/arch/${MACHINE_ARCH}/${MACHINE_ARCH}/bpf_jit_machdep.c)) || \
|
2012-08-02 03:24:28 +04:00
|
|
|
(exists(${S}/arch/${MACHINE_CPU}/${MACHINE_CPU}/bpf_jit_machdep.c))
|
|
|
|
SRCS+= bpf_jit.c
|
|
|
|
SRCS+= bpf_jit_machdep.c
|
|
|
|
CPPFLAGS+= -DBPF_JIT
|
|
|
|
.endif
|
|
|
|
|
2010-01-26 01:21:28 +03:00
|
|
|
.include <bsd.kmodule.mk>
|