chiark / gitweb /
Read the full dissections and double-check them.
[matchsticks-search.git] / Makefile
index c8e179f72d037e38dcaacd48cc7fa1528cbde0ff..75efaf3fdb135d0e4a77423f85e43740ec0bc325 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,13 @@
 CFLAGS += -Wall -Wwrite-strings -Wstrict-prototypes -g -O2 -std=gnu99
-CPPFLAGS += -DVERSION="\"`git-describe --tags --dirty=+`\""
+CFLAGS += $(CMDLINE_CFLAGS)
+CPPFLAGS += -DVERSION="\"`git describe --tags --dirty=+`\""
 LC_CTYPE=C
 LDLIBS = -lpub -lglpk -lm
 
 all: main
+
+test: test.pl main
+       ./test.pl
+
+clean:
+       rm -f main