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:
|
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
BIN
code/leak
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue