diff options
Diffstat (limited to 'internal/c/Makefile')
| -rw-r--r-- | internal/c/Makefile | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/internal/c/Makefile b/internal/c/Makefile new file mode 100644 index 0000000..196b2d3 --- /dev/null +++ b/internal/c/Makefile @@ -0,0 +1,14 @@ +export LIBBPFGO = $(CURDIR)/../../../libbpfgo +export CC = clang + +all: bpfbuild + +.PHONY: bpfbuild +bpfbuild: + bpftool btf dump file /sys/kernel/btf/vmlinux format c > vmlinux.h + $(CC) -g -O2 -Wall -fpie -target bpf -D__TARGET_ARCH_amd64 -I$(LIBBPFGO)/output -c ioriotng.bpf.c -o ioriotng.bpf.o + +.PHONY: clean +clean: + find . -name \*.o -delete + find . -name vmlinux.h -delete |
