What is the best way to get a list - for a given configuration - of include directories, library directories, libraries, version flags etc...

I need to get this info to pass to another build system (celeriD)