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