Files
python-bpf/examples/c-form/Makefile
2025-08-30 18:49:08 +05:30

16 lines
209 B
Makefile

BPF_CLANG := clang
CFLAGS := -O2 -emit-llvm -target bpf -c
SRC := example.bpf.c
OUT := example.bpf.ll
.PHONY: all clean
all: $(OUT)
$(OUT): $(SRC)
$(BPF_CLANG) $(CFLAGS) -S $< -o $@
clean:
rm -f $(OUT)