diff --git a/build.sh b/build.sh index 9214c9e..fe58f74 100755 --- a/build.sh +++ b/build.sh @@ -4,11 +4,12 @@ DIR=$(dirname $(readlink -f "$0")) cd $DIR -PROGN=${PROGN:-dc} +PROGN=${PROGN:-probotic} PREFIX=${PREFIX:-$DIR} CC=${CC-cc} CFLAGS='-std=c99 -Wall -Wextra -Wpedantic' +CPPFLAGS='-I/usr/bin/ircclient/' LDFLAGS='-lircclient' 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" -echo "$CC $CFLAGS -pipe $DIR/src/unity.c -o $PREFIX/$PROGN $LDFLAGS" -$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 $CPPFLAGS $LDFLAGS echo "\nStatus: $?" diff --git a/dc b/dc deleted file mode 100755 index 7595fd2..0000000 Binary files a/dc and /dev/null differ diff --git a/src/main.c b/src/main.c index 960c426..e37ec8b 100644 --- a/src/main.c +++ b/src/main.c @@ -13,7 +13,7 @@ #define CHANNEL "#/g/chad" #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_callbacks_t callbacks;