make problem with cygwin
Martin R. Calsyn
martin at commonspace.net
Thu Aug 26 17:07:41 UTC 2004
Ahh - having $(LIB) set could be it. If you have almost any version of
Microsoft Visual Studio installed, LIB and INCLUDE will be set in global
environment variables and make will pick up those settings.
-----Original Message-----
From: Ralf Corsepius [mailto:ralf_corsepius at rtems.org]
Sent: Thursday, August 26, 2004 8:57 AM
To: Martin R. Calsyn
Cc: Haberhausen, Dierk; RTEMS Users
Subject: RE: make problem with cygwin
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