BenoƮt Ganne | 4a76d6f | 2020-06-12 08:47:34 +0200 | [diff] [blame] | 1 | CC?=clang |
2 | # where to find bpf includes? | ||||
3 | BPF_ROOT?=/usr/include | ||||
4 | #BPF_ROOT?=/opt/vpp/external/x86_64/include | ||||
5 | |||||
6 | CFLAGS:=-O3 -g -Wextra -Wall -target bpf | ||||
7 | # Workaround for Ubuntu/Debian for asm/types.h | ||||
8 | CFLAGS+= -I/usr/include/x86_64-linux-gnu | ||||
9 | CFLAGS+= -I$(BPF_ROOT) | ||||
10 | #CFLAGS+= -DDEBUG | ||||
11 | |||||
12 | all: af_xdp.bpf.o | ||||
13 | |||||
14 | clean: | ||||
15 | $(RM) af_xdp.bpf.o | ||||
16 | |||||
17 | .PHONY: all clean |