chiark / gitweb /
Add a small README for people cloning this repo.
[matchsticks-search.git] / Makefile
index af97bd23fabf36eb663bba7b52b9ad18e655361d..26fa92b5b3fe991293ebc62403d1a7d654387cd6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +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 -lm
 
 all: main
+
+index.html: tabulate.py $(wildcard data/*)
+       ./tabulate.py > $@
+
+test: test.pl main
+       ./test.pl
+
+clean:
+       rm -f main