Updated PROGN name and minor update to macro.
This commit is contained in:
parent
77d5a79c73
commit
e0251bd4e0
7
build.sh
7
build.sh
@ -4,11 +4,12 @@
|
|||||||
DIR=$(dirname $(readlink -f "$0"))
|
DIR=$(dirname $(readlink -f "$0"))
|
||||||
cd $DIR
|
cd $DIR
|
||||||
|
|
||||||
PROGN=${PROGN:-dc}
|
PROGN=${PROGN:-probotic}
|
||||||
PREFIX=${PREFIX:-$DIR}
|
PREFIX=${PREFIX:-$DIR}
|
||||||
|
|
||||||
CC=${CC-cc}
|
CC=${CC-cc}
|
||||||
CFLAGS='-std=c99 -Wall -Wextra -Wpedantic'
|
CFLAGS='-std=c99 -Wall -Wextra -Wpedantic'
|
||||||
|
CPPFLAGS='-I/usr/bin/ircclient/'
|
||||||
LDFLAGS='-lircclient'
|
LDFLAGS='-lircclient'
|
||||||
|
|
||||||
mkdir -p $PREFIX && echo "Made directory: $PREFIX"
|
mkdir -p $PREFIX && echo "Made directory: $PREFIX"
|
||||||
@ -18,6 +19,6 @@ if [ ! -z ${DEBUG} ] ; then CFLAG="$CFLAGS -Og -g3";
|
|||||||
|
|
||||||
[ ! -z ${SAN} ] && CFLAG="$CFLAGS -fsanitize=$SAN"
|
[ ! -z ${SAN} ] && CFLAG="$CFLAGS -fsanitize=$SAN"
|
||||||
|
|
||||||
echo "$CC $CFLAGS -pipe $DIR/src/unity.c -o $PREFIX/$PROGN $LDFLAGS"
|
echo "$CC $CFLAGS -pipe $DIR/src/unity.c -o $PREFIX/$PROGN $CPPFLAGS $LDFLAGS"
|
||||||
$CC $CFLAGS -pipe $DIR/src/unity.c -o $PREFIX/$PROGN $LDFLAGS
|
$CC $CFLAGS -pipe $DIR/src/unity.c -o $PREFIX/$PROGN $CPPFLAGS $LDFLAGS
|
||||||
echo "\nStatus: $?"
|
echo "\nStatus: $?"
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
#define CHANNEL "#/g/chad"
|
#define CHANNEL "#/g/chad"
|
||||||
#define USERNAME "probotic"
|
#define USERNAME "probotic"
|
||||||
|
|
||||||
#define ERR(ret,msg) do { fputs(msg "\n", stderr); return ret; } while (0)
|
#define ERR(ret,msg) do { fputs(msg "\n", stderr); return (ret); } while (0)
|
||||||
|
|
||||||
irc_session_t * session;
|
irc_session_t * session;
|
||||||
irc_callbacks_t callbacks;
|
irc_callbacks_t callbacks;
|
||||||
|
Reference in New Issue
Block a user