+CFLAGS = -g -Wall -fPIC --std=c99
+CPPFLAGS = -I/usr/include/awk -I. -DHAVE_CONFIG_H
+
test:Q:
- awk -f rhawk < testirc.txt
+ rm -f var/sp_cur.json
#awk -f rhawk < testirc.txt
- #awk -f test.awk test.txt | awk -f rhawk #| grep 'points\|bid\|took'
+ #awk -f rhawk < testirc.txt
+ awk -f test.awk test.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
+
+%.so: %.o
+ gcc $CFLAGS -shared -o $target $prereq $LDFLAGS
+
+%.o: %.c
+ gcc $CPPFLAGS $CFLAGS -c -o $target $prereq