Mail Archives: djgpp/1997/12/10/20:18:44
At 09:12 12/10/1997 -0600, tessman AT cibc DOT ca wrote:
>I'm having fresh trouble running make on a new machine where I've set up
>djgpp. (It has worked on this project for the past year or so, so I
>must've done something wrong somewhere, I suspect.)
>
>Basically, I have sources in two directories, the parent of the makefile
>and 'c:\hc', which contains portable code that can be used with any ANSI
>compiler. The C sources are hc.c and hcdjgpp.c.
>
>My makefile looks like this:
>
>TARGET=hc.exe
>SOURCE_DIR=c:\hc
>COMPILE=c:\gcc\bin\gcc
>LINK=c:\gcc\bin\gcc
>CFLAGS=-Ic:\gcc\include -I$(SOURCE_DIR) -c
I suspect the problem is with the backslashes. GNU Make can interpret
backslashes specially (it uses them to escape special characters and strips
them otherwise). Try replacing them with double backslashes ("\\") or front
slashes and see if that works.
This is just a guess, but I've seen similar problems before.
Btw, your DJGPP *is* installed under the `c:\gcc" directory, right? Just
checking.
Alternatively, try removing the paths (COMPILE=gcc, etc) and remove the
-Ic:\gcc\include, since GCC looks there anyway.
I hope this helps.
Nate Eldredge
eldredge AT ap DOT net
- Raw text -