1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
ifndef KERNELRELEASE PWD := $(shell pwd) all: $(MAKE) -C $(KERNELDIR) SUBDIRS=$(PWD) modules clean: rm -f *.o *.ko *.mod.* .*.cmd Module.symvers rm -rf .tmp_versions install: $(MAKE) -C $(KERNELDIR) SUBDIRS=$(PWD) modules_install else obj-m := udlfb.o endif