improved makefile

This commit is contained in:
twoneis 2025-03-27 22:10:51 +01:00
parent 9cabbefc77
commit fb24304f5d
2 changed files with 4 additions and 0 deletions

View file

@ -8,8 +8,12 @@ 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
%:
gcc $@.c -o $@.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
rm *.o
insert: module insert: module
insmod lkm.ko insmod lkm.ko

BIN
code/leak

Binary file not shown.