Report git version with library_version

This commit is contained in:
Gregor Richards
2016-12-09 18:42:12 -05:00
parent 4d860aeb3d
commit 415b5ba67b
3 changed files with 13 additions and 1 deletions

View File

@@ -62,6 +62,10 @@ else ifneq ($(findstring Darwin,$(UNAME)),)
endif
TARGET_NAME := gpsp
GIT_VERSION := " $(shell git rev-parse --short HEAD || echo unknown)"
ifneq ($(GIT_VERSION)," unknown")
CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
endif
LIBM := -lm
CORE_DIR := .
LDFLAGS :=