add git version as compile flag

This commit is contained in:
Steffen Jaeckel
2017-05-02 10:35:00 +02:00
parent 7898864b24
commit 7ac857686d
2 changed files with 11 additions and 1 deletions
+6
View File
@@ -78,6 +78,12 @@ CFLAGS += -Wno-typedef-redefinition -Wno-tautological-compare
endif
GIT_VERSION := $(shell [ -e .git ] && { echo -n git- ; git describe --tags --always --dirty ; } || echo $(VERSION))
ifneq ($(GIT_VERSION),)
CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
endif
HASH=hashsum
CRYPT=encrypt
SMALL=small