Mail Archives: djgpp/1998/03/29/12:38:57
On Fri, 27 Mar 1998, Jason A Bennett wrote:
> The one-line makefile:
> CC = f:\msc\ax\cl
>
> causes the error.
What happens if you change the Makefile to say this:
CC = f:/msc/ax/cl
> It seems to run, then nothing.
How do you know it runs at all? ("Error -1" usually means that Make
didn't find some file, e.g. the compiler it needs to run.)
> D:\pos5\intrface\du\src>make su_du
> f:\msc\ax\cl su_du.c -o su_du
This might be a problem: the GNU Make's default rule of how to invoke
a C compiler might not work with MS C compiler. For example: does it
support the "-o foo" option as meaning ``create a program named
"foo.exe"''? (Note that there is no explicit .exe extension in the
command issued by Make.) If not, you might need to define a full
rule, so Make doesn't use its internal database. For example:
.c.exe:
f:/msc/ax/cl -out:$@ $<
(The above might not be correct, as I don't really know how to invoke
CL.)
- Raw text -