chiark / gitweb /
report something to stdout even if no answer
[matchsticks-search.git] / Makefile
index 166f614380eaf5cf6406a7bfa3ef96716111aaa4..139319be8531e42c7d00b89191429f648a15bbf7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,7 @@
-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