util: Delete checks for old host definitions
[qemu/armbru.git] / tools / ebpf / Makefile.ebpf
blob3391e7ce08981acecd1fa2cc97738e7843f77e3e
1 OBJS = rss.bpf.o
3 LLVM_STRIP ?= llvm-strip
4 CLANG ?= clang
5 INC_FLAGS = `$(CLANG) -print-file-name=include`
6 EXTRA_CFLAGS ?= -O2 -g -target bpf
8 all: $(OBJS)
10 .PHONY: clean
12 clean:
13         rm -f $(OBJS)
14         rm -f rss.bpf.skeleton.h
16 $(OBJS):  %.o:%.c
17         $(CLANG) $(INC_FLAGS) \
18                 -D__KERNEL__ -D__ASM_SYSREG_H \
19                 -I../include $(LINUXINCLUDE) \
20                 $(EXTRA_CFLAGS) -c $< -o $@
21         $(LLVM_STRIP) -g $@
22         bpftool gen skeleton rss.bpf.o > rss.bpf.skeleton.h
23         cp rss.bpf.skeleton.h ../../ebpf/