Mail Archives: djgpp/1998/12/08/05:06:39
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 -