Userland test programs

This commit is contained in:
Ciro Santilli
2017-05-15 09:08:16 +01:00
parent 9370512176
commit 690284a3bf
9 changed files with 29 additions and 14 deletions

View File

@@ -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