delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/12/08/05:06:39

Date: Tue, 8 Dec 1998 12:06:19 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Rick Gungadoo <rick AT nct-active DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Help on VPATH
In-Reply-To: <040e01be2208$99ebc200$c7ec7bc1@nctserver.nct-active.com>
Message-ID: <Pine.SUN.3.91.981208120600.19046E-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

On Mon, 7 Dec 1998, Rick Gungadoo wrote:

> gcc -c -Wall -g -pg -a ../src/file1.c -o file1.o
> make.exe: *** No rule to make target 'file2.c', needed by 'file2.o'.  Stop

I cannot reproduce this problem.  I used your exact setup, including
the directory structure and the Makefile (except that file?.c and
header?.h were empty), and it worked as expected: Make compiled and
linked all of the files into prog.exe.  This was on Windows 95, like
in your case.

Maybe you are using an old and buggy Make.  The latest ported version
is 3.77 (get v2gnu/mak377b.zip from the usual DJGPP sites).

Btw, your Makefile didn't use TAB characters in the commands, so it
won't even run before I added the TABS.  Are you sure you were using
the exact Makefile you posted, and that you were using the DJGPP port
of Make?

- Raw text -


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