I've gotten as far as trying to bootstrap bmake, but it seems that not all the
vars from makefile.boot.in get replaced properly when creating the
Minix/makefile.boot. E.g.:
$ diff makefile.boot.in Minix/makefile.boot
8c8
< srcdir=@srcdir@
---
srcdir=/usr/pkgsrc/bootstrap/work/bmake
21,23c21,23
< CFLAGS= @CFLAGS@ -I. -I$(srcdir) @DEFS@ @CPPFLAGS@ ${XDEFS} \
< -D_PATH_DEFSYSPATH=\"${DEFAULT_SYS_PATH}\"
< MDEFS="-D@force_machine@MACHINE=\"@machine@\""
"-DMACHINE_ARCH=\"@machine_arch@\""
---
CFLAGS= -g -O2 -I. -I$(srcdir) -DHAVE_CONFIG_H
-I/usr/pkgsrc/bootstrap/work/bmake/missing ${XDEFS} \
-D_PATH_DEFSYSPATH=\"${DEFAULT_SYS_PATH}\"
MDEFS="-DMACHINE=\"minix3\"" "-DMACHINE_ARCH=\"i386\""
44c44
< ${CC} *.o lst.lib/*.o -o $@ @LDFLAGS@ @LIBS@
---
${CC} *.o lst.lib/*.o -o $@ @LIBS@
Other vars, namely @prefix@, @CC@, @mksrc@, @default_sys_path@, @LIBOBJS@, and
@LIBS@, are unchanged. I'm not sure why...