aboutsummaryrefslogtreecommitdiffstats
path: root/extras/bpf/Makefile
blob: 9ad26eaacb1f1890b22bcc582cd233291bd5dd9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
CC := $(shell which 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