mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-26 11:41:35 +01:00
Userland test programs
This commit is contained in:
@@ -3,14 +3,10 @@ ccflags-y := -Wno-declaration-after-statement -std=gnu99
|
||||
|
||||
.PHONY: all clean
|
||||
|
||||
all: hello.ko ins_rm_mod.out
|
||||
all: hello.ko
|
||||
|
||||
hello.ko: hello.c
|
||||
make -C '/lib/modules/$(shell uname -r)/build' M='$(PWD)' modules
|
||||
|
||||
clean:
|
||||
make -C '/lib/modules/$(shell uname -r)/build' M='$(PWD)' clean
|
||||
rm -f ins_rm_mod.out
|
||||
|
||||
ins_rm_mod.out: ins_rm_mod.c hello.c
|
||||
gcc -Wall -std=gnu99 -o ins_rm_mod.out ins_rm_mod.c
|
||||
|
||||
Reference in New Issue
Block a user