chiark / gitweb /
only report "reporting" if we actually have something
[matchsticks-search.git] / Makefile
index 5443d23e6f53d34bdca5515d5fd12655f3bac2e2..c8e179f72d037e38dcaacd48cc7fa1528cbde0ff 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
-CFLAGS += -Wall -Wwrite-strings -Wstrict-prototypes -g -O2 -std=gnu99 -lm
+CFLAGS += -Wall -Wwrite-strings -Wstrict-prototypes -g -O2 -std=gnu99
+CPPFLAGS += -DVERSION="\"`git-describe --tags --dirty=+`\""
 LC_CTYPE=C
-LDLIBS = -lpub -lglpk
+LDLIBS = -lpub -lglpk -lm
 
 all: main