No empty .Rs/.Re
[netbsd-mini2440.git] / tools / make / buildmake.sh.in
blob720bb5efc247cb7c9ab27a614941f1d160f147da
1 #! /bin/sh
2 # $NetBSD: buildmake.sh.in,v 1.7 2006/08/26 22:15:14 christos Exp $
4 # buildmake.sh.in - Autoconf-processed shell script for building make(1).
7 : ${HOST_CC="@CC@"}
8 : ${HOST_CFLAGS="@CPPFLAGS@ @CFLAGS@"}
9 : ${HOST_LDFLAGS="@LDFLAGS@ @LIBS@"}
10 : ${runcmd=""}
12 docmd () {
13 echo "$1"
14 $1 || exit 1
17 MKSRCDIR=@srcdir@/../../usr.bin/make
19 for f in $MKSRCDIR/*.c $MKSRCDIR/lst.lib/*.c; do
20 docmd "${HOST_CC} ${HOST_CFLAGS} @DEFS@ -c $f"
21 done
23 docmd "${HOST_CC} ${HOST_CFLAGS} -o ${_TOOL_PREFIX:-nb}make *.o ${HOST_LDFLAGS}"