chiark / gitweb /
Fix the test script.
[matchsticks-search.git] / Makefile
index 166f614380eaf5cf6406a7bfa3ef96716111aaa4..26fa92b5b3fe991293ebc62403d1a7d654387cd6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,16 @@
-CFLAGS += -Wall -Wwrite-strings -Wstrict-prototypes
+CFLAGS += -Wall -Wwrite-strings -Wstrict-prototypes -g -O2 -std=gnu99
+CFLAGS += $(CMDLINE_CFLAGS)
+CPPFLAGS += -DVERSION="\"`git describe --tags --dirty=+`\""
 LC_CTYPE=C
-LDLIBS = -lpub -lglpk
+LDLIBS = -lpub -lglpk -lm
 
 all: main
+
+index.html: tabulate.py $(wildcard data/*)
+       ./tabulate.py > $@
+
+test: test.pl main
+       ./test.pl
+
+clean:
+       rm -f main