20 lines
300 B
Makefile
20 lines
300 B
Makefile
|
ifneq ($(KERNELRELEASE),)
|
||
|
obj-m := bible.o
|
||
|
|
||
|
else
|
||
|
KDIR ?= /lib/modules/`uname -r`/build
|
||
|
|
||
|
default:
|
||
|
$(MAKE) -C $(KDIR) M=$$PWD
|
||
|
|
||
|
clean:
|
||
|
find . \( -name '*.o' -or -name '*.ko' \) -delete
|
||
|
rm -f *.mod.c
|
||
|
rm -rf modules.order Module.symvers
|
||
|
|
||
|
install:
|
||
|
$(MAKE) -C $(KDIR) M=$$PWD modules_install
|
||
|
|
||
|
endif
|
||
|
|