yes, u are right. u can see other makefile to know how to write a one. u had better write kernel module first instead of add code to kernel directly. easy for debugging.
btw, i will move this post to another kernel branch. this is only for kernel code reading.
really? u read so carefully. i just browse it.
can u post the difference here? for example, gnu make manual page xx said ..., while linux makefile ....
then we can have a comparison and judge. thx.
hehe. that is what i mean. kernel will not create a new make variant. it will follow the makefile. but the problem is as u said. so read that kbuild/... is easier to understand. but anyway, u need basic knowledge about make before that file.
xdwjack, can u use the main Makefile, one or two Makefile under subdir, and the Rules.make to explain how kernel compile the files? pls, accept this task and it will force u to read it more carefully and then gain more. after that, u feedback what u learn here.