Try to use $(subst) function in file name ( replace / by \ and /cygdrive/e by e: ). But it will not work if you are using multiple target patterns.
Cheers.

CN wrote:
Hi,

I am using make 3.81 with cygwin. I am trying to build files using cl.exe
and I am getting following error

$ make all
cl    -c -o /cygdrive/e/cnair/tmp/hai.o /cygdrive/e/cnair/tmp/hai.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.00.9466 for 80x86
Copyright (C) Microsoft Corporation 1984-2001. All rights reserved.

cl : Command line warning D4002 : ignoring unknown option
'/cygdrive/e/cnair/tmp
/hai.c'
cl : Command line error D2003 : missing source filename
make: *** [/cygdrive/e/cnair/tmp/hai.o] Error 2

Here c.exe cannot understand cygwin path format.

If I change my path to normal windows format(e:/cnair/tmp), then make is
giving me problem.

$ make all
Makefile:4: *** target pattern contains no `%'.  Stop.

Is there any solution which I can build files using c.exe and make in cygwin
?

Thanks and reagrds,
Chanthu




--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to