This has been a thorn in my side as well. The 'quick and dirty' solution I
always end up using is to change the order of the objects / SUBDIRS= in
the individual makefiles so that the module I want to compile is compiled
first.
Jim Nance has been working on changing this. He is slowly getting a few of
his ideas into the kernel tree at a time (too slowly, imho, but that's for
Linus to decide, not Jim or myself.) Jim is working towards a central
'rules' file for all 'common' rules between makefiles, which then provides
a lot of flexibility in terms of changing the 'rules' globablly.
Jim: Keep up the good work!
Linus: Please continue to add Jim's makefile suggestions to the kernel...I
find them much more efficient not only in compiling time and
flexibility, but also in space.
My $.02...
-- Todd Fries...tfries@umr.edu