Subject: re: fortune makefiles incorrect ?
To: Frederick Bruckman <fb@enteract.com>
From: matthew green <mrg@towers-of-dub.eterna.com.au>
List: current-users
Date: 09/07/1999 00:08:53
the reason builds for <sys/endian.h> failed to build lately is that
two of the games have helpers that are built with ${HOST_CC} rather
than ${CC} and also were changed to include <sys/endian.h> -- but
the host compiler won't have a <sys/endian.h> yet if you build into
a $DESTDIR like i do and so your build (or builds, four of, in my
case) will fail.  fortunately, this is solvable by copying the new
header into /usrincluide -- but note that this is just another
"bootstrap" issue of running -current, _not_ any particularly failure
of $DESTDIR etc.  $DESTDIR works fine for everything _except_ 
/usr/share/mk, which should be solvable with 'make -m'.


also, `make obj' works for multiple architectures quite fine.  here
is what i use (from a file included by /etc/mk.conf):

BSDSRCDIR?=             /orb/v/src
BSDOBJDIR?=             /var/obj
OBJMACHINE?=            yes
USR_OBJMACHINE?=        yes

where /orb/v/src is the Real location of the sources, i have
obj.${MACHINE} symlinks to /var/obj.${MACHINE}/path/to/dir.  eg, in
my /usr/src/bin/ps directory:

lrwxrwxr-x  1 mrg   wsrc   21 Sep  3 20:45 obj.alpha@ -> /var/obj.alpha/bin/ps
lrwxrwxr-x  1 mrg   wsrc   21 Aug 27 20:23 obj.arm32@ -> /var/obj.arm32/bin/ps
lrwxrwxr-x  1 mrg   wsrc   21 Aug  6 08:39 obj.hp300@ -> /var/obj.hp300/bin/ps
lrwxrwxr-x  1 mrg   wsrc   20 Aug  2 08:21 obj.i386@ -> /var/obj.i386/bin/ps
lrwxrwxr-x  1 mrg   wsrc   20 Aug 28 20:20 obj.pmax@ -> /var/obj.pmax/bin/ps
lrwxrwxr-x  1 mrg   wsrc   21 Aug 27 10:18 obj.sparc@ -> /var/obj.sparc/bin/ps