Or you can let the compiler generate the header-dependency Makefiles for you:
http://make.mad-scientist.net/papers/advanced-auto-dependenc...
You already tried that? I do not find it painful to set up.
http://make.mad-scientist.net/papers/advanced-auto-dependenc...
You already tried that? I do not find it painful to set up.
The syntax is a tad hairy though,and I'd want to adapt it - I tend to avoid compiling individual C files to objects these days, due to WHOPR optimisation.