delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/12/03:58:20

Date: Tue, 12 Jan 1999 10:57:02 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Charles Wood <c DOT r DOT wood AT worldnet DOT att DOT net>
cc: djgpp AT delorie DOT com
Subject: Re: MakeFile Creation
In-Reply-To: <77dkhp$kjk@bgtnsc03.worldnet.att.net>
Message-ID: <Pine.SUN.3.91.990112105641.15876L-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

On 11 Jan 1999, Charles Wood wrote:

> This CPP program (source only) will check all the dependencies of all the
> cpp file and .h files in a directory.  Then it will output a file called
> makefile.inc .  Just do a !include  in your makefile and all dependencies
> are done.

Thanks.  

However, note that GCC already has a bunch of switches that cause the
compiler to emit such dependencies automatically, in the format
expected by Make.  Check out the -MM switch and the ones described
near it.

The GNU Make manual even describes how to use this facility
automatically from a Makefile (see the node called "Automatic
Dependencies" in the GNU Make manual).

Also, please don't post uuencoded files.  If it is a source, just post
it as text.  If it's too large to post, tell people who are interested
to mail you privately.

- Raw text -


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