1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
obj-m := pl2501.o ifndef KERNELRELEASE KRELEASE := $(shell uname -r) else KRELEASE := $(KERNELRELEASE) endif KDIR := /usr/lib/modules/$(KRELEASE)/build PWD := $(shell pwd) default: $(MAKE) -C $(KDIR) M=$(PWD) modules clean: $(MAKE) -C $(KDIR) M=$(PWD) clean