diff options
author | Gregor Richards | 2016-12-09 18:42:12 -0500 |
---|---|---|
committer | Gregor Richards | 2016-12-09 18:42:12 -0500 |
commit | 415b5ba67bd7f07dcb87d4841da69b0c3254e5c0 (patch) | |
tree | 75960394a4425afd1730304175197b8bd22897c7 /Makefile | |
parent | 4d860aeb3d0c2d2c8c4f0dee9d295f80dbc2033e (diff) | |
download | picogpsp-415b5ba67bd7f07dcb87d4841da69b0c3254e5c0.tar.gz picogpsp-415b5ba67bd7f07dcb87d4841da69b0c3254e5c0.tar.bz2 picogpsp-415b5ba67bd7f07dcb87d4841da69b0c3254e5c0.zip |
Report git version with library_version
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 := |