|
From: Graff_Zoltan <zo...@z1...> - 2003-03-28 14:13:52
|
Hi!
I try to compile the same project under DOS (DJGPP), under Linux
and Mingw. It works well in DJGPP and Linux. But not in MINGW.
Every filename are UPPER case (files are on a Netware drive, DOS always
make UPPERcase filenames). Under Linux I can set up ncpfs to show the
filenames on the netware drives in lowercase.
Under WinXp I cannot do that.
In a huge project I'd like to use
$(OBJDIR)/%.o: %.c
but it doesnt work in MINGW.
My opinion is, that in MINGW upper and lower case filenames sometimes
differ, sometimes not.
I've got a very simple example to demonstrate it.
'make x1.exe' works, but 'make x2.exe' doesn't work under MINGW.
The X1.C and X2.X files (note UPPERCASE filenames) contains the same:
int main() { return 0; }
The makefile contents:
CC=gcc
# It works
x1.o: x1.c
@echo C: $@ - $<
@$(CC) -c $(CFLAGS) $<
x1.exe: x1.o
@echo L: $@ - $<
@$(CC) $(CFLAGS) $? -o $@
# does'n work
%.o: %.c
@echo C: $@ - $<
@$(CC) -c $(CFLAGS) $<
x2.exe: x2.o
@echo L: $@ - $<
@$(CC) $(CFLAGS) $? -o $@
What can I do?
Thanks
Zoltan Graff
|