delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/05/18/09:40:38

Date: Tue, 18 May 1999 14:21:20 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Ephraim Ben-Ishai <Ephraimbi AT orckit DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: using gcc to make dependencies
In-Reply-To: <9074E89DACDDD2119C4D00805FEDBE8921848F@ormail1.orckit.com>
Message-ID: <Pine.SUN.3.91.990518142022.24330u-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Tue, 18 May 1999, Ephraim Ben-Ishai wrote:

> I use gcc with the -MM switch to make dependencies. My dependency file comes
> out as follows:
> 
> file1.o: file1.c dep1.h dep2.h dep3.h dep4.h .......
> 
> my problem is as follows:
> 
> all the dependency files contain the correct path to the however the target
> does not have the path just the name: 
> 
> how do I get the gcc to place the path infront of the target.

You don't.

Instead, add a VPATH or vpath directive to your Makefile that would cause 
Make to search the correct directories for source files.

- Raw text -


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