summaryrefslogtreecommitdiffstats
path: root/extras/bpf/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'extras/bpf/Makefile')
-rw-r--r--extras/bpf/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/extras/bpf/Makefile b/extras/bpf/Makefile
new file mode 100644
index 00000000000..77b06434237
--- /dev/null
+++ b/extras/bpf/Makefile
@@ -0,0 +1,17 @@
+CC?=clang
+# where to find bpf includes?
+BPF_ROOT?=/usr/include
+#BPF_ROOT?=/opt/vpp/external/x86_64/include
+
+CFLAGS:=-O3 -g -Wextra -Wall -target bpf
+# Workaround for Ubuntu/Debian for asm/types.h
+CFLAGS+= -I/usr/include/x86_64-linux-gnu
+CFLAGS+= -I$(BPF_ROOT)
+#CFLAGS+= -DDEBUG
+
+all: af_xdp.bpf.o
+
+clean:
+ $(RM) af_xdp.bpf.o
+
+.PHONY: all clean