A build utility makes it easy to create a Makefile to compile and 'build' kernel modules from C files.
All that is necessary is to add the name of an ordinary object file to a list.
The build utility then looks for the C file (or files) and builds the .o and .ko files.