make problem with cygwin

Ralf Corsepius ralf_corsepius at rtems.org
Thu Aug 26 15:56:49 UTC 2004


On Thu, 2004-08-26 at 17:13, Martin R. Calsyn wrote:
> I ran into this same problem.  The 'multiple targets' error is a bit
> misleading.  I solved the error by removing the .PRECIOUS entry/entries
> on or immediately before the line indicated (567 in your example below).
> I encountered this in perhaps six makefiles and each time it was solved
> by removing a dotted makefile directive.

> I haven't dug deeper into why this is happening - it seems to be an
> incompatibility with the 'make' packaged in cygwin.

>   I haven't submitted
> deltas because I don't have enough confidence that this is a proper fix
> or just a workaround for cygwin weirdness.
I am pretty sure it is not. Conversely, I am pretty sure it will do
harm.

I'd guess, the cause is Dierk having $(LIB) or $(ARCH) set in his
environment:
....
.PRECIOUS: $(LIB)
 
${ARCH}/%.$(OBJEXT): sapi/%.c
        ${COMPILE} -o $@ -c $<
 
${ARCH}/%.$(OBJEXT): rtems/%.c
        ${COMPILE} -o $@ -c $<
....

Ralf






More information about the users mailing list