From owner-cvs-all Sat Oct 10 03:08:24 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA17289 for cvs-all-outgoing; Sat, 10 Oct 1998 03:08:24 -0700 (PDT) (envelope-from owner-cvs-all) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.15.68.22]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA17282; Sat, 10 Oct 1998 03:08:14 -0700 (PDT) (envelope-from bde@godzilla.zeta.org.au) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.7/8.8.7) id UAA22994; Sat, 10 Oct 1998 20:08:04 +1000 Date: Sat, 10 Oct 1998 20:08:04 +1000 From: Bruce Evans Message-Id: <199810101008.UAA22994@godzilla.zeta.org.au> To: peter@netplex.com.au, rnordier@nordier.com Subject: Re: cvs commit: src/sys/boot/i386 Makefile Cc: committers@FreeBSD.ORG, rnordier@FreeBSD.ORG, skynyrd@opus.cts.cwu.edu Sender: owner-cvs-all@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >> By the way, it is possible to set $OBJFORMAT (the environment variable) in >> a Makefile. This might be an idea for sys/boot/Makefile and >> sys/i386/boot/Makefile >> >> Is this worth doing? For example: >> [ ... ] > >That's a useful technique I wasn't aware of. > >For /sys/i386/boot, which is completely oriented to a.out, it seems >the ideal solution. No, ideal for changing the default a whole subtree is to put the change in Makefile.inc at the top of the tree and inherit this recursively. The MAKEFLAGS hack fails for normal builds (when `make' is run in a leaf directory) because it doesn't affect the current invocation of make. Only the setting of LIBDIR in bsd.own.mk is wrong if a Makefile[.inc] changes OBJFORMAT. This is fairly harmless except for installng libraries. Bruce