chiark
/
gitweb
/
~ianmdlvl
/
matchsticks-search.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
show git version in output
[matchsticks-search.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index 2b3faff49fe803c4d8ef2ad08164b55822d2ac58..c8e179f72d037e38dcaacd48cc7fa1528cbde0ff 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,5
+1,6
@@
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