mirror of https://github.com/OISF/suricata
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
320 B
Makefile
14 lines
320 B
Makefile
if BUILD_EBPF
|
|
|
|
# Maintaining a local copy of UAPI linux/bpf.h
|
|
BPF_CFLAGS = -Iinclude
|
|
|
|
all: lb.bpf filter.bpf bypass_filter.bpf xdp_filter.bpf vlan_filter.bpf
|
|
|
|
%.bpf: %.c
|
|
${CC} -Wall $(BPF_CFLAGS) -O2 -D__KERNEL__ -D__ASM_SYSREG_H -emit-llvm -c $< -o - | ${LLC} -march=bpf -filetype=obj -o $@
|
|
|
|
CLEANFILES = *.bpf
|
|
|
|
endif
|