mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-13 20:12:26 +00:00
13 lines
273 B
Makefile
13 lines
273 B
Makefile
obj-m += hello.o
|
|
ccflags-y := -Wno-declaration-after-statement -std=gnu99
|
|
|
|
.PHONY: all clean
|
|
|
|
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
|