20 lines
487 B
Makefile
20 lines
487 B
Makefile
obj-m += empty.o
|
|
obj-m += single_function.o
|
|
obj-m += single_function_gpl.o
|
|
obj-m += single_variable.o
|
|
obj-m += single_variable_gpl.o
|
|
obj-m += one_of_each.o
|
|
|
|
KDIR := /tmp/some/kernel/source/dir
|
|
|
|
PWD := $(shell pwd)
|
|
default:
|
|
make -C $(KDIR) tinyconfig
|
|
pushd $(KDIR); ./scripts/config -e 64BIT -e MODULES; $(MAKE) olddefconfig; popd
|
|
$(MAKE) -C $(KDIR)
|
|
$(MAKE) -C $(KDIR) M=$(PWD) modules
|
|
rm -rf *.mod.c *.o .*.cmd .*.d *.mod modules.order Module.symvers .tmp_versions
|
|
|
|
clean:
|
|
rm *.ko
|