maybe like this for now

This commit is contained in:
twoneis 2025-03-27 22:14:57 +01:00
parent fb24304f5d
commit ef6c9afe1f

View file

@ -1,6 +1,6 @@
obj-m += lkm.o obj-m += lkm.o
all: module leak all: module leak.c
run: leak run: leak
./leak ./leak
@ -8,8 +8,8 @@ run: leak
module: module:
make -C /lib/modules/$(shell uname -r)/build M=$(shell pwd) modules make -C /lib/modules/$(shell uname -r)/build M=$(shell pwd) modules
%: leak:
gcc $@.c -o $@.o gcc leak.c -o leak.o
clean: clean:
make -C /lib/modules/$(shell uname -r)/build M=$(shell pwd) clean make -C /lib/modules/$(shell uname -r)/build M=$(shell pwd) clean