any building tool can automatically understand file dependencies in C++ project?
<p>I have a project with 50+ <code>.h</code> files and 50+ <code>.cpp</code> files. I'm using <code>make</code> to build a project, which looks something like this (it's just a piece of an entire file):</p>

<pre><code>HEADERS := $(shell find $(INCLUDE) -name "*.h")
%.obj: %.cpp $(HEADERS)
    $(CPP) $(CPPFLAGS) -fPIC -o $@ -g -c $&lt;
</code></pre>

<p>When I'm making changes to one <code>.h</code> file, the whole project has to be re-compiled. It's annoying and time-consuming. But I don't want to hard-code file dependencies inside <code>Makefile</code>, since it's even more time-consuming. I would like to have some <code>make</code>-like tool, which will find dependencies right inside my <code>.cpp</code>/<code>.h</code> files, automatically. Any suggestions? Thanks in advance!</p>
