I develop C/C++ using the Eclipse IDE. Eclipse also generates a makefile which I don\'t want to edit as it will simply be overwritten.
I want to use that makefile fo
You could write a small program to include the headers and write a makefile fragment which you include in the main makefile (requires GNU make).
This is a fairly ugly solution that requires a fair amount of hand hackery. More elegant would be to parse the project file and write the makefile fragment.