cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Win32 build: Makefile.vc6 and /YX

From: Gisle Vanem <gvanem_at_broadpark.no>
Date: Wed, 26 May 2004 15:39:58 +0200

"Mohun Biswas" <m_biswas_at_mailinator.com> said:

> file will fail consistency checks and be rebuilt, thus resulting in
> wasted effort. Or is it possible the vc60.pch (or vc70.pch for MSVC 7)
> simply gets "adjusted" or "improved" with each compilation? That's what
> I'm trying to understand.

I think precompiled header makes sense mostly when cl is invoked once.
Like the VStudio project files does. E.g.
  cl -YX -Fo.\release\ *.c

This produces a much larger vc60.pch than by single compiles. So I
assume cl restarts/rebuilds the pch on each invokation.

Not sure nmake has a rule similar to Borland's make:
.c.obj:
  bcc $(CFLAGS) {$*.c }

Would fill the cmdline with files that needs rebuilding.

--gv
Received on 2004-05-26