Date: Tue, 18 May 1999 14:21:20 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Ephraim Ben-Ishai cc: djgpp AT delorie DOT com Subject: Re: using gcc to make dependencies In-Reply-To: <9074E89DACDDD2119C4D00805FEDBE8921848F@ormail1.orckit.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk 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.