This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: %.o: %.c - case sensitive


On 21 Dec 1998, Sheetal Gangakhedkar wrote:

> After a lot of testing, I was able to find the problem. The problem seems to occur when the makefile looks for a filename or path match when it expands the expressions of kind "%.o" or "%.c".  It only tries to look for files that are lower case. 
> 
> How is everybody getting around this bug? Should'nt the win32 version be case insensitive?

I have *never* run into this bug simply because all our software is
developed on Unix and then simply tar'd or CVS'd over to win32 so
that the case is the same. The same Makefiles work like a charm.

> Any input would be appreciated.

The trouble is that make uses strcmp after the filenames are munged
appropriately for various platforms (eg., DOS and VMS needs the munging)
part. However, for win32, it's more or less left in the same state and
hence strcmp can't match it. I remember looking at this a while back
and my conclusion was that a minor tweak to make.h to change the
definition of "streq" for win32 to handle filenames case insensitively
should fix the problem. The caveat here is that I didn't look into it
enough to know what else might break in the process.

Regards,
Mumit


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]