1obj-m += empty.o 2obj-m += single_function.o 3obj-m += single_function_gpl.o 4obj-m += single_variable.o 5obj-m += single_variable_gpl.o 6obj-m += one_of_each.o 7 8KDIR := /tmp/some/kernel/source/dir 9 10PWD := $(shell pwd) 11default: 12 make -C $(KDIR) tinyconfig 13 pushd $(KDIR); ./scripts/config -e 64BIT -e MODULES; $(MAKE) olddefconfig; popd 14 $(MAKE) -C $(KDIR) 15 $(MAKE) -C $(KDIR) M=$(PWD) modules 16 rm -rf *.mod.c *.o .*.cmd .*.d *.mod modules.order Module.symvers .tmp_versions 17 18clean: 19 rm *.ko 20