coverity appeasement - redundant check
[minix.git] / tools / make / buildmake.sh.in
blob59e3bfbbf95d850531cc7453ae72ea7cff5cab99
1 #! /bin/sh
2 # $NetBSD: buildmake.sh.in,v 1.8 2006/08/26 22:17:48 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}"