Re: Generating makefile dependencies

Tech-Archive recommends: Fix windows errors by optimizing your registry



Jonathan Turkanis wrote:
> Hi,
>
> Many compilers have a command-line option, usually -m or -M, to
> generate dependencies for inclusion in a makefile. Does any version
> of the VC++ compiler support such an option?
No, ther is no such option. VC uses the project dependency information file
(.idb) that is generated at the first compilation with /Gm to get the
dependency graph of each .cpp file and avoid useless recompilations : there
is no need for the makefile-style implementation/headers dependency lists.

Arnaud
MVP - VC


.



Relevant Pages

  • Re: Strange behavior with Make dependencies...
    ... Make will check if the timestamp of the bootsect directory is ... so simple existence will skip the commands. ... add a dependency on the Makefile). ...
    (comp.unix.programmer)
  • Re: Java and make
    ... My makefile captures this as: ... make discovers a cyclic dependency and drops it. ... I believe make will not have problems of this kind in the context of C/ ... dependencies in Java programs where we don't have a seperate header ...
    (comp.lang.java.programmer)
  • Java and make
    ... I have a question about using make as the build-utilitiy for Java ... Please point me to a more appropriate news group if this is ... My makefile captures this as: ... make discovers a cyclic dependency and drops it. ...
    (comp.lang.java.programmer)
  • Re: make "quickworld"? (like in DragonFly)
    ... >> Makefile did something wrong. ... That kind of dependency (on a compiler ABI) is not easily ... As I said, there may be some exceptions, like midway compiler ...
    (freebsd-hackers)
  • Re: Cant generate dependencies in VS 2005?
    ... that feature creates dependency files ... figure out all the dependencies and write it out as a makefile fragment. ... command line just as you would nmake. ...
    (microsoft.public.dotnet.languages.vc)