mirror of
https://github.com/eunomia-bpf/bpf-developer-tutorial.git
synced 2026-02-03 18:24:27 +08:00
12 lines
272 B
Makefile
12 lines
272 B
Makefile
obj-m += hello.o # hello.o is the target
|
|
|
|
# Enable BTF generation
|
|
KBUILD_CFLAGS += -g -O2
|
|
|
|
all:
|
|
# Compile the module with BTF information
|
|
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
|
|
|
|
clean:
|
|
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
|