delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/11/20/01:08:52

Date: Wed, 20 Nov 2002 08:07:40 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: djgpp AT delorie DOT com
Subject: Re: Why the djgpp.ver dependancy?
In-Reply-To: <3DDAEF0A.6D1FAAF2@yahoo.com>
Message-ID: <Pine.SUN.3.91.1021120080312.24803D-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Wed, 20 Nov 2002, CBFalconer wrote:

> Why does the underlined dependancy appear? Can it be suppressed?

DJ already explained why it appears.  Suppressing it is tricky, unless 
you edit the results of "gcc -MM" with Sed.

Does that dependency really hurt you?

> I am trying to set up automatic dependancies in the makefile early
> in the project, since I expect them to change continuously.  Can I
> make them from the list of object files alone? i.e. have the gcc
> -MM operate on filename.c when supplied filename.obj.

GNU Make's pattern rules should help you, in conjunction with the $* 
built-in variable (which extracts the stem of a file name).

- Raw text -


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