Updated PROGN name and minor update to macro.

This commit is contained in:
Emil 2023-08-02 07:38:10 -06:00
parent 77d5a79c73
commit e0251bd4e0
3 changed files with 5 additions and 4 deletions

View File

@ -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: $?"

BIN
dc

Binary file not shown.

View File

@ -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;