Subject: Re: obj.${MACHINE_ARCH}-${OBJECT_FMT}
To: Simon J. Gerraty <>
From: Jason R Thorpe <>
List: tech-userlevel
Date: 10/18/2001 16:12:29
On Thu, Oct 18, 2001 at 03:47:40PM -0700, Simon J. Gerraty wrote:

 > Yep, for trees configured to be built for multiple platforms 
 > I use a HOST_OBJTOP that works out to have something like
 > obj-netbsd1-sparc64
 > obj-freebsd4-i386
 > obj-sunos5-sun4u

Ooh, I like that ... esp since it makes it more Cygwin compatible (no
long names after the ".").

 > for the tree that holds things that need to run on the build host, and
 > currently MACHINE_ARCH etc is used to refer to the target system.
 > Using explicit HOST_* and TARGET_* is a good idea.
 > >Anyway, this would then allow a builder to simply set TARGET_MACHINE
 > >and TARGET_MACHINE_ARCH, and be able to cross-build the tree without
 > >the weird side-effects of overriding MACHINE and MACHINE_ARCH.
 > Sounds good.

Well, I'm not up enough on our .mk magic to actually implement it...
Gee, Simon, you're pretty good at this stuff, though.... ;-)

        -- Jason R. Thorpe <>