bible/Makefile

20 lines
300 B
Makefile
Raw Permalink Normal View History

2017-08-04 14:03:15 +02:00
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