X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=mkfile;h=b1ef8c44d57b650eed393c2520b9ae7f2ef8f16d;hb=cf7a03157ed581ada350fe636c00804c45ef74cc;hp=e9a6d991f1c80388eea97a54436626bebbfe4423;hpb=00d7bc9269a24b8ed85d9e86bd9528a10afda857;p=~andy%2Frhawk diff --git a/mkfile b/mkfile index e9a6d99..b1ef8c4 100644 --- a/mkfile +++ b/mkfile @@ -1,20 +1,30 @@ CFLAGS = -g -Wall -fPIC --std=c99 -CPPFLAGS = -I/usr/include/awk -I. -DHAVE_CONFIG_H + +CPPFLAGS = -I/usr/include/awk \ + -DDYNAMIC \ + -DHAVE_VPRINTF \ + -DHAVE_STDARG_H \ + -DHAVE_STDBOOL_H \ + -DHAVE_STDDEF_H + +default: select.so test:Q: rm -f var/sp_cur.json #awk -f rhawk < testirc.txt #awk -f rhawk < testirc.txt - awk -f test.awk test.txt \ - | awk '-vDEBUG=1' -frhawk 2>&1 \ - | grep -v '^ >\|USER\|NICK\|CAP\|JOIN\|TOPIC\|WHO\|unicode' - #| grep 'points\|bid\|took' + awk -f test.awk spades.txt \ + | awk '-vDEBUG=1' -frhawk 2>&1 1>/dev/null \ + | grep -v '^ > \(USER\|NICK\|CAP\|JOIN\|TOPIC\|WHO\)' \ + | grep -v '^ . .*\(ACCOUNT\|IDENTIFY\|unicode\|colors\)' \ + | sed -e 's/^ > PRIVMSG #\w* :/rhawk:\t/' \ + -e 's/^ < :\([^!]*\)![^ ]* PRIVMSG #\w* :/\1:\t/ ' test-select:Q: select.so - #awk -f select.awk + awk -f select.awk %.so: %.o gcc $CFLAGS -shared -o $target $prereq $LDFLAGS -%.o: %.c - gcc $CPPFLAGS $CFLAGS -c -o $target $prereq +%.o: %.c mkfile config.h + gcc $CPPFLAGS $CFLAGS -c -o $target $stem.c