I have a quite large make file project (c++) which depending on environment variables build certain files and ignores other in my source directory.
I want to generate a list of files which are actually used in the make process with the current environmental settings. I.e. I want to get all the source files compiled and all header files included printed.
The reason I want to do this is to be able to add all file to a qtcreator project and thus only get relevant files in my project.
I know I have done this before some how but now I can't seem to find it anywhere on the internet.
EDIT: I'm pretty sure this should be possible without editing the makefile and that would be preferable in this case due to the complexity of the make system. There is a lot of makefiles involved in the project.