Subject: Re: New possibility to move "obj" logic *out* of make(1)
To: None <>
From: Christos Zoulas <>
List: tech-toolchain
Date: 10/31/2001 15:26:22
In article <Pine.WNT.4.33.0110310847080.1148-100000@todd>,
Todd Vierling <> wrote:
>A change I made to make(1) last night makes it possible to set ${.OBJDIR} in
>Makefiles directly, by using the special target ".OBJDIR:".  This feature
>will be used to implement the host-specific obj directories requested by
>several people for Makefiles which use <> (particularly
>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 <>.
>This would fix PR bin/3938, which describes how our make(1) will happily
>make use of an "obj" directory if it exists--even for third-party sources
>that probably do not want that kind of handling.

I would not go that far, but as a first step we could make it so that
an empty


rule, disables objdir handling in make. For that to work, we probably
need to move the objdir directory changing code...