add git hash to library_version

This commit is contained in:
hunterk
2017-07-15 20:28:31 -05:00
parent bd1db4eff9
commit 611eba91a6
3 changed files with 6 additions and 1 deletions
+4
View File
@@ -1,4 +1,8 @@
TARGET_NAME := atari800
GIT_VERSION := " $(shell git rev-parse --short HEAD || echo unknown)"
ifneq ($(GIT_VERSION)," unknown")
CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
endif
DEBUG = 0
LOG_PERFORMANCE = 1