2002-01-15 22:15:47 +03:00
|
|
|
#! /bin/sh
|
2002-04-25 01:17:24 +04:00
|
|
|
# $NetBSD: buildmake.sh.in,v 1.3 2002/04/24 21:17:24 bjh21 Exp $
|
2002-01-15 22:15:47 +03:00
|
|
|
#
|
|
|
|
# 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"
|
2002-04-25 01:17:24 +04:00
|
|
|
$1 || exit 1
|
2002-01-15 22:15:47 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
SRCDIR=@srcdir@/../../usr.bin/make
|
|
|
|
|
|
|
|
for f in $SRCDIR/*.c $SRCDIR/lst.lib/*.c; do
|
2002-01-25 20:50:28 +03:00
|
|
|
docmd "${HOST_CC} ${HOST_CFLAGS} @DEFS@ -DMAKE_BOOTSTRAP -I$SRCDIR -c $f"
|
2002-01-15 22:15:47 +03:00
|
|
|
done
|
|
|
|
|
|
|
|
docmd "${HOST_CC} ${HOST_CFLAGS} -o nbmake *.o ${HOST_LDFLAGS}"
|