3 LLVM_STRIP ?= llvm-strip
5 INC_FLAGS = `$(CLANG) -print-file-name=include`
6 EXTRA_CFLAGS ?= -O2 -g -target bpf
14 rm -f rss.bpf.skeleton.h
17 $(CLANG) $(INC_FLAGS) \
18 -D__KERNEL__ -D__ASM_SYSREG_H \
19 -I../include $(LINUXINCLUDE) \
20 $(EXTRA_CFLAGS) -c $< -o $@
22 bpftool gen skeleton rss.bpf.o > rss.bpf.skeleton.h
23 cp rss.bpf.skeleton.h ../../ebpf/