aboutsummaryrefslogtreecommitdiff
path: root/shared/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'shared/makefile')
-rw-r--r--shared/makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/shared/makefile b/shared/makefile
index cfdf8ac..e5a6ff6 100644
--- a/shared/makefile
+++ b/shared/makefile
@@ -1,5 +1,9 @@
SOURCES += $(wildcard ../shared/*.c)
HEADERS += $(wildcard ../shared/*.h)
+# debug build info string
+BUILD_STR=$(shell git update-index -q --refresh; git describe --tags --dirty='*' --broken='x' | cut -c1-20)
+CFLAGS += -DW2_BUILD_STR=\"$(BUILD_STR)\"
+
clean::
rm -f ../shared/*.o