delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/11/26/11:40:32

Date: Sun, 26 Nov 1995 09:48:42 -0500
From: dj (DJ Delorie)
To: devitto AT senna DOT ferndown DOT ate DOT slb DOT com
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: makedepend program ??

> : gcc will automatically generate dependencies as it compiles, and make
> : will automatically use any that gcc has generated.  This is much more
> : reliable than using makedepend.
> 
> But requires you to run make twice to be sure everything is built.

Actually, it doesn't, because the first time through the objects don't
exist, so everything gets built anyway.  After that, if any of the
dependencies change, then one of the EXISTING dependencies must have
also changed, in order to change the #include, so the object will get
rebuilt because of that change anyway.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019