]> Pileus Git - ~andy/rhawk/blobdiff - mkfile
Add select
[~andy/rhawk] / mkfile
diff --git a/mkfile b/mkfile
index 4f52cb26d22832df549d10183f350a495e3423c4..138af83407c7495e14045256b834d05fbaa3c30a 100644 (file)
--- a/mkfile
+++ b/mkfile
@@ -1,4 +1,14 @@
-test:Q:
-       awk -f rhawk < testirc.txt
+CFLAGS   = -g -Wall -fPIC --std=c99
+CPPFLAGS = -I/usr/include/awk -I. -DHAVE_CONFIG_H
+
+test:Q: select.so
+       awk -f select.awk
+       #awk -f rhawk < testirc.txt
        #awk -f rhawk < testirc.txt
        #awk -f test.awk test.txt | awk -f rhawk #| grep 'points\|bid\|took'
+
+%.so: %.o
+       gcc $CFLAGS -shared -o $target $prereq $LDFLAGS
+
+%.o: %.c
+       gcc $CPPFLAGS $CFLAGS -c -o $target $prereq