2002-01-15 22:15:47 +03:00
|
|
|
#! /bin/sh
|
2006-08-27 02:17:48 +04:00
|
|
|
# $NetBSD: buildmake.sh.in,v 1.8 2006/08/26 22:17:48 christos Exp $
|
2002-01-15 22:15:47 +03:00
|
|
|
#
|
|
|
|
# buildmake.sh.in - Autoconf-processed shell script for building make(1).
|
|
|
|
#
|
|
|
|
|
2002-09-13 23:55:52 +04:00
|
|
|
: ${HOST_CC="@CC@"}
|
|
|
|
: ${HOST_CFLAGS="@CPPFLAGS@ @CFLAGS@"}
|
|
|
|
: ${HOST_LDFLAGS="@LDFLAGS@ @LIBS@"}
|
|
|
|
: ${runcmd=""}
|
2002-01-15 22:15:47 +03:00
|
|
|
|
|
|
|
docmd () {
|
|
|
|
echo "$1"
|
2002-04-25 01:17:24 +04:00
|
|
|
$1 || exit 1
|
2002-01-15 22:15:47 +03:00
|
|
|
}
|
|
|
|
|
2006-08-27 02:15:14 +04:00
|
|
|
MKSRCDIR=@srcdir@/../../usr.bin/make
|
2002-01-15 22:15:47 +03:00
|
|
|
|
2006-08-27 02:17:48 +04:00
|
|
|
for f in $MKSRCDIR/*.c $MKSRCDIR/lst.lib/*.c; do
|
2004-05-07 04:04:37 +04:00
|
|
|
docmd "${HOST_CC} ${HOST_CFLAGS} @DEFS@ -c $f"
|
2002-01-15 22:15:47 +03:00
|
|
|
done
|
|
|
|
|
2006-06-30 23:47:46 +04:00
|
|
|
docmd "${HOST_CC} ${HOST_CFLAGS} -o ${_TOOL_PREFIX:-nb}make *.o ${HOST_LDFLAGS}"
|