I need a tool to safely optimally construct the dependency tree. I found http://code.google.com/p/include-what-you-use/ but i'm thinking it is two complex. An easier solution is to just simply scan the file for #include and for the macro hack just to ignore it.