Update build.sh to support new main.c
This commit is contained in:
parent
7a6947ed91
commit
39fbceed7e
7
build.sh
7
build.sh
@ -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: $?"
|
||||
|
Reference in New Issue
Block a user