1 obj-m := crasher.o 2 KDIR := /lib/modules/$(shell uname -r)/build 3 PWD := $(shell pwd) 4 5 default: 6 $(MAKE) -C $(KDIR) M=$(PWD) modules 7 8 9 clean: 10 make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean 11 rm -f Module.symvers 12 #clean: 13 # rm -f *.mod.c *.ko *.o .*.cmd *.symvers 14 # rm -rf .tmp_versions 15