1 2 3 4 5 6 7
ifneq ($(KERNELRELEASE),) include Kbuild else KERNELDIR := /lib/modules/`uname -r`/build all:: $(MAKE) -C $(KERNELDIR) M=`pwd` $@ endif