Mail Archives: djgpp/2001/06/19/10:30:12
Adam Majer <adamm AT galacticasoftware DOT com> wrote:
> Does anyone know how to make "make" understand that a new version of
> file.o is already there (ie. time is earlier than file.c, for ex) and
> not to invoke the rule to compile it again, and again, and again....
Two choices: get your own hands out of make's way, and let it do what
it knows best, unhindered. Or explicity tell it what to do --- but
that means you take responsibility for what you wrote into the Makefile.
> Under borland there is the .autodepend statement in a Makefile but does
> such a thing exist under DJGPP?
Yes, but it's a bit more complicated than that. You have to tell GCC
to create dependency information files as a byproduct or in a separate
run, and then you have to tell Make to go look for them and .include
them into the Makefile, as they become available. The tricks needed
are described in the GCC manual:
info gcc invoking preprocessor
(the '-M' family of options).
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -