2

Is possible to detect automatically source dependency in a NMake makefile using VS 2005 compiler (as actually possible with GNU make and GCC compiler)?

Look at the '-M' option of GCC. Including the outputted text of GCC in the makefile cause to automatically track source dependencies without maintaining them, since the GCC invocation can be automated using a phony target.

Luca
  • 11,646
  • 11
  • 70
  • 125
  • what do you mean, exactly? Can you give an example? – Cheeso Nov 06 '10 at 20:03
  • 4
    possible duplicate of [makedepend equivalent for use with nmake?](http://stackoverflow.com/questions/946105/makedepend-equivalent-for-use-with-nmake) –  Nov 07 '10 at 08:55
  • 1
    Possible duplicate of [makedepend equivalent for use with nmake?](https://stackoverflow.com/questions/946105/makedepend-equivalent-for-use-with-nmake) – Paul Sweatte Jun 08 '17 at 21:12

0 Answers0