]> Pileus Git - ~andy/rhawk/blob - mkfile
Add limit to tied message
[~andy/rhawk] / mkfile
1 CFLAGS   = -g -Wall -fPIC --std=c99
2
3 CPPFLAGS = -I/usr/include/awk \
4            -DDYNAMIC          \
5            -DHAVE_VPRINTF     \
6            -DHAVE_STDARG_H    \
7            -DHAVE_STDBOOL_H   \
8            -DHAVE_STDDEF_H
9
10 default: select.so
11
12 test:Q:
13         rm -f var/sp_cur.json
14         #awk -f rhawk < testirc.txt
15         #awk -f rhawk < testirc.txt
16         awk -f test.awk spades.txt \
17         | awk '-vDEBUG=1' -frhawk 2>&1 1>/dev/null \
18         | grep -v '^  > \(USER\|NICK\|CAP\|JOIN\|TOPIC\|WHO\)' \
19         | grep -v '^  . .*\(ACCOUNT\|IDENTIFY\|unicode\|colors\)' \
20         | sed  -e 's/^  > PRIVMSG #\w* :/rhawk:\t/' \
21                -e 's/^  < :\([^!]*\)![^ ]* PRIVMSG #\w* :/\1:\t/ '
22
23 test-select:Q: select.so
24         awk -f select.awk
25
26 %.so: %.o
27         gcc $CFLAGS -shared -o $target $prereq $LDFLAGS
28
29 %.o: %.c mkfile config.h
30         gcc $CPPFLAGS $CFLAGS -c -o $target $stem.c