Re: Can't generate dependencies in VS 2005?



jpetrang@xxxxxxxxxx wrote:
We use VS6.0 to support our automated build environment, and we'd like
to move to something that is currently supported. One aspect of VS6.0
is part of the "Generate Makefile" feature, which it seems was removed
in VS 2003. Specifically, that feature creates dependency (.dep) files
useful for the automated build environment.

I saw a post that suggested using cl.exe flags (/showincludes,
together with /E or /P) and then write a script to parse that info to
get what we want, but we would like to use the same compiler options
for all our compiles without having this dump happen all the time.

Is there another way to get the dependency information?

Nothing built into the product that I know of.

In the past when I needed this information, I wrote a Perl script that would
figure out all the dependencies and write it out as a makefile fragment.
That's a bit of work, but it may be an option.

You can also build the project by simply invoking devenv.exe from the
command line just as you would nmake. For a lighter weight solution,
there's vcbuild.exe (included in VC2005 - I'm not sure about 2003 or 2002).
vcbuild.exe builds a single .vcproj project and is strictly a command-line
tool.

-cd


.



Relevant Pages

  • Re: questionable feature in FreeBSD pmake
    ... DS>> variables or environment variables: ... this feature lies at the base of the FreeBSD base system build ... DS>on using a special environment variable or make command option or makefile ... DS>in which the make command is invoked and there is NO WAY to avoid it. ...
    (freebsd-hackers)
  • Re: questionable feature in FreeBSD pmake
    ... > variables or environment variables: ... this feature lies at the base of the FreeBSD base system build ... It is clear that a great deal of current FreeBSD OS makefile practice ... command or makefile variable. ...
    (freebsd-hackers)
  • Re: XPe SP2 bloat
    ... checking the archives will answer some of your questions. ... This means that if to effect security changes in Pro SP2 a feature needs to ... introduce a dependency that was not there for SP1 or Gold, ...
    (microsoft.public.windowsxp.embedded)
  • 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)