Make updates object files if one or more of its dependencies is out-of-date.
However, it's really a pain to write down the right dependency tree.
You may simply forget to add a header file to dependencies when you put an extra #include.
What if one of the headers in the dependencies list included another header?
What if ...
So I am looking for automatic method to generate the 'correct' dependency tree for the makefile.
Thanks!