NetBSD/tools/make/buildmake.sh.in
ross 4ea0ff5fba Track make(1) build simplifications.
Instead of adding MAKE_BOOTSTRAP for hosted environments, i.e., when
you want things simple, instead add MAKE_NATIVE to get those hugely
important features like __RCSID().

Also, get rid of a now-unneeded -I.
2004-05-07 00:04:37 +00:00

24 lines
504 B
Bash
Executable File

#! /bin/sh
# $NetBSD: buildmake.sh.in,v 1.5 2004/05/07 00:04:37 ross Exp $
#
# buildmake.sh.in - Autoconf-processed shell script for building make(1).
#
: ${HOST_CC="@CC@"}
: ${HOST_CFLAGS="@CPPFLAGS@ @CFLAGS@"}
: ${HOST_LDFLAGS="@LDFLAGS@ @LIBS@"}
: ${runcmd=""}
docmd () {
echo "$1"
$1 || exit 1
}
SRCDIR=@srcdir@/../../usr.bin/make
for f in $SRCDIR/*.c $SRCDIR/lst.lib/*.c; do
docmd "${HOST_CC} ${HOST_CFLAGS} @DEFS@ -c $f"
done
docmd "${HOST_CC} ${HOST_CFLAGS} -o nbmake *.o ${HOST_LDFLAGS}"