emit BTF data using -g flag

This commit is contained in:
Pragyansh Chaturvedi
2025-09-07 17:22:24 +05:30
parent acfb8b4424
commit 734a49b295
2 changed files with 5 additions and 5 deletions

View File

@ -1,16 +1,16 @@
BPF_CLANG := clang
CFLAGS := -O2 -emit-llvm -target bpf -c
SRC := example.bpf.c
OUT := example.bpf.ll
OBJECT := example.bpf.o
SRC := ex3.bpf.c
OUT := ex3.bpf.ll
OBJECT := ex3.bpf.o
.PHONY: all clean
all: $(OUT)
object: $(SRC)
$(BPF_CLANG) -O2 -target bpf -c $< -o $(OBJECT)
$(BPF_CLANG) -O2 -g -target bpf -c $< -o $(OBJECT)
$(OUT): $(SRC) object
$(BPF_CLANG) $(CFLAGS) -S $< -o $@