maybe like this for now
This commit is contained in:
parent
fb24304f5d
commit
ef6c9afe1f
1 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
obj-m += lkm.o
|
||||
|
||||
all: module leak
|
||||
all: module leak.c
|
||||
|
||||
run: leak
|
||||
./leak
|
||||
|
@ -8,8 +8,8 @@ run: leak
|
|||
module:
|
||||
make -C /lib/modules/$(shell uname -r)/build M=$(shell pwd) modules
|
||||
|
||||
%:
|
||||
gcc $@.c -o $@.o
|
||||
leak:
|
||||
gcc leak.c -o leak.o
|
||||
|
||||
clean:
|
||||
make -C /lib/modules/$(shell uname -r)/build M=$(shell pwd) clean
|
||||
|
|
Loading…
Add table
Reference in a new issue