]> Pileus Git - ~andy/rhawk/blobdiff - mkfile
Save game after flipping the table
[~andy/rhawk] / mkfile
diff --git a/mkfile b/mkfile
index 47c18066bf31597ff354f017d2da0815cf0789d4..ed945c11d0509fd695098655c0233989f8aa4697 100644 (file)
--- a/mkfile
+++ b/mkfile
@@ -1,7 +1,18 @@
 CFLAGS   = -g -Wall -fPIC --std=c99
-CPPFLAGS = -I/usr/include/awk -I. -DHAVE_CONFIG_H
 
-test:Q:
+CPPFLAGS = -I/usr/include/awk \
+           -DDYNAMIC          \
+           -DHAVE_VPRINTF     \
+           -DHAVE_STDARG_H    \
+           -DHAVE_STDBOOL_H   \
+           -DHAVE_STDDEF_H
+
+default:V: stats
+
+stats:QV:
+       awk -f stats.awk
+
+test:QV:
        rm -f var/sp_cur.json
        #awk -f rhawk < testirc.txt
        #awk -f rhawk < testirc.txt
@@ -13,10 +24,10 @@ test:Q:
               -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