2 CFLAGS = -g -O2 -Wall -Wextra
11 rm -f vmlinux.h *.bpf.o *.skel.h
15 bpftool btf dump file /sys/kernel/btf/vmlinux format c > $@
17 %.bpf.o: %.bpf.c vmlinux.h
18 $(CLANG) $(CFLAGS) -target bpf -c $<
21 bpftool gen skeleton $< > $@
23 $(PROGS): %: %.c %.skel.h
24 $(CC) $(CFLAGS) -o $@ $< -lbpf