add -g to c-form Makefile

This commit is contained in:
Pragyansh Chaturvedi
2025-09-08 00:37:42 +05:30
parent d87decd25e
commit 70dfa0ff58
2 changed files with 2 additions and 2 deletions

View File

@ -11,4 +11,4 @@ clean:
all: install compile
.PHONY: all clean
.PHONY: all clean

View File

@ -10,7 +10,7 @@ OBJ := $(SRC:.bpf.c=.bpf.o)
all: $(LL) $(OBJ)
%.bpf.o: %.bpf.c
$(BPF_CLANG) -O2 -target bpf -c $< -o $@
$(BPF_CLANG) -O2 -g -target bpf -c $< -o $@
%.bpf.ll: %.bpf.c
$(BPF_CLANG) $(CFLAGS) -S $< -o $@