Update build.sh to support new main.c

This commit is contained in:
Emil 2023-08-02 07:15:49 -06:00
parent 7a6947ed91
commit 39fbceed7e

View File

@ -9,8 +9,7 @@ PREFIX=${PREFIX:-$DIR}
CC=${CC-cc}
CFLAGS='-std=c99 -Wall -Wextra -Wpedantic'
CPPFLAGS='-Iinclude'
LDFLAGS='-lgmp -lreadline'
LDFLAGS='-lircclient'
mkdir -p $PREFIX && echo "Made directory: $PREFIX"
@ -19,6 +18,6 @@ if [ ! -z ${DEBUG} ] ; then CFLAG="$CFLAGS -Og -g3";
[ ! -z ${SAN} ] && CFLAG="$CFLAGS -fsanitize=$SAN"
echo "$CC $CFLAGS -pipe $DIR/src/unity.c -o $PREFIX/$PROGN $CPPFLAGS $LDFLAGS"
$CC $CFLAGS -pipe $DIR/src/unity.c -o $PREFIX/$PROGN $CPPFLAGS $LDFLAGS
echo "$CC $CFLAGS -pipe $DIR/src/unity.c -o $PREFIX/$PROGN $LDFLAGS"
$CC $CFLAGS -pipe $DIR/src/unity.c -o $PREFIX/$PROGN $LDFLAGS
echo "\nStatus: $?"