um exemplo Makefile
:
obj-m += hello.o
all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
O linux-headers
(kernel-headers) e o build-essential
(development-tools) devem ser instalados.