title: generate dependencies for a makefile for a project in C/C++
body: <p>I have a project that has a makefile with broken dependencies.  Is there any best known way to generate a list of dependencies for the project that I can use in the makefile, other than examining each source file by hand or with a hand written perl script?</p>