a3f1b4c719
Update custom XDP program example to work with libbpf 0.8.0 and libxdp 1.2.9. Type: fix Signed-off-by: Yulong Pei <yulong.pei@intel.com> Change-Id: Ib8d03f0be7f71fe996dfb7da0cfe35165711ebb0 Signed-off-by: Yulong Pei <yulong.pei@intel.com>
19 lines
371 B
Makefile
19 lines
371 B
Makefile
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
|