I was just reading The Linux Kernel Module Programming Guide and and got stuck on character device drivers example.
Makefiles for previous examples were provided, but no
obj-m += chardev.o