Mail Archives: djgpp-workers/2001/10/15/15:43:52
> From: Tim Van Holder <tim DOT van DOT holder AT pandora DOT be>
> Date: 15 Oct 2001 17:16:58 +0200
> >
> > Unfortunately, raw COFF files produced by the linker don't have
> > extensions, as well as shell scripts.
>
> Right. Though if you have a file like 'autoconf' under WinME, you'll
> probably have an LFN entry for it (all lowercase), while 'README' would
> not have an LFN entry. So maybe we could skip downcasing for
> extensionless files on LFN=y only?
I _was_ talking about LFN=y. The problem is that a file could come
from DOS or be created when LFN=n was in effect. Then you turn LFN=y
back again, and all h*ll breaks lose...
> > If we don't downcase COFF files, Make will always want to remake all
> > targets like this:
> >
> > foo: foo.o
> > $(CC) $(LDFLAGS) $< -o $@ $(LOADLIBES)
>
> True - but that's the same as the situation where gcc creates foo.exe
> instead of foo.
GCC only creates foo.exe without foo if you say "-o foo.exe".
Makefiles which do that should say "foo.exe: foo.o", not "foo: foo.o".
If they do this, there's no problem.
> > Even worse, targets like below will always fail:
> >
> > all: foo
>
> Why?
Because if we don't downcase `foo', Make might see `FOO' in the
directory, not `foo'.
- Raw text -