summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTwinaphex2016-12-10 00:42:50 +0100
committerGitHub2016-12-10 00:42:50 +0100
commite87b0278d9785a4cfa6d63009ce717f5b78000fb (patch)
tree75960394a4425afd1730304175197b8bd22897c7 /Makefile
parent4d860aeb3d0c2d2c8c4f0dee9d295f80dbc2033e (diff)
parent415b5ba67bd7f07dcb87d4841da69b0c3254e5c0 (diff)
downloadpicogpsp-e87b0278d9785a4cfa6d63009ce717f5b78000fb.tar.gz
picogpsp-e87b0278d9785a4cfa6d63009ce717f5b78000fb.tar.bz2
picogpsp-e87b0278d9785a4cfa6d63009ce717f5b78000fb.zip
Merge pull request #34 from GregorR/libretro-git-version
Report git version with library_version
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index b7b35a5..d0d8b7d 100644
--- a/Makefile
+++ b/Makefile
@@ -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 :=