Subject: re: New possibility to move "obj" logic *out* of make(1)
To: matthew green <>
From: Todd Vierling <>
List: tech-toolchain
Date: 10/31/2001 10:47:04
On Thu, 1 Nov 2001, matthew green wrote:

:    While musing about it this morning, I realized that this new ability will
:    make it possible to move the logic which finds the obj directory out of
:    make(1) entirely, and into <>.

:    And finally, it should make it possible to set MAKEOBJDIR and/or
:    MAKEOBJDIRPREFIX in mk.conf.  Currently these must be set in the environment
:    in order to function properly.
: hmmm. MAKEOBJDIRPREFIX handling is done before Makefile is read, so
: i'm not sure how you will cope with that.  sjg will have more to say
: i'm sure, though...

If the .OBJDIR is set by the Makefile fragments, then MAKEOBJDIRPREFIX
doesn't need to exist before Makefiles are read.

The only difference that may come into play here is the disabling of the
"logical path" (using the PWD environment variable) for .CURDIR, which
currently happens only for MAKEOBJDIRPREFIX.  However, this part needs to be
revisited.  There are reasons that make(1) should use resolved paths,
ignoring PWD, even without MAKEOBJDIRPREFIX; the same problems can afflict

-- Todd Vierling <>  *  Wasabi & NetBSD:  Run with it.
-- CDs, Integration, Embedding, Support --