I have a C program which uses a small part of the Gandalf C Machine Vision Library. There are thousands of source files. Some are includes (both .h and .c) and some are dependent in the linker stage.
I don't want to have a monolithic library. I would like to include in my source tree only the include and source files that are required. My test project is in VS2010, but I'm open to all options.
Is there a tool that I can use to detect both the include and source file dependencies?
This question is the closest I could find, but it's asking only to find all header file dependencies: