1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
ifneq ($(KERNELRELEASE),) obj-m := fastd.o else KDIR := /lib/modules/$(shell uname -r)/build PWD := $(shell pwd) all: $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules endif .PHONY: clean clean: rm -rf *.o .depend .*.cmd *.ko *.mod.c *.markers *.symvers *.order