improved makefile
This commit is contained in:
parent
9cabbefc77
commit
fb24304f5d
2 changed files with 4 additions and 0 deletions
|
@ -8,8 +8,12 @@ run: leak
|
|||
module:
|
||||
make -C /lib/modules/$(shell uname -r)/build M=$(shell pwd) modules
|
||||
|
||||
%:
|
||||
gcc $@.c -o $@.o
|
||||
|
||||
clean:
|
||||
make -C /lib/modules/$(shell uname -r)/build M=$(shell pwd) clean
|
||||
rm *.o
|
||||
|
||||
insert: module
|
||||
insmod lkm.ko
|
||||
|
|
BIN
code/leak
BIN
code/leak
Binary file not shown.
Loading…
Add table
Reference in a new issue