Subject: Re: make problem with .OBJDIR?
To: None <current-users@NetBSD.org>
From: Alan Barrett <apb@cequrux.com>
List: current-users
Date: 11/14/2006 15:10:17
On Tue, 14 Nov 2006, Matthias Drochner wrote:
> The Makefile defines the directory by:
> LIBOBJ:= ${.OBJDIR}
> 
> If I check this I get:
> # make -V .OBJDIR
> /usr/src/sys/arch/i386/stand/bootxx/obj.zelz27
> # make -V LIBOBJ
> /usr/src/sys/arch/i386/stand/bootxx

Maybe .OBJDIR changes as the Makefile is parsed (possibly due to
bsd.obj.mk).  Assignment using ":=" will pick up the value at the time
that line is parsed, whereas assignment using "=" will be deferred until
later.

--apb (Alan Barrett)