aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3a87d57..e8620ac 100644
--- a/Makefile
+++ b/Makefile
@@ -39,6 +39,10 @@ TARGET_NAME := snes9x2005_plus
else
TARGET_NAME := snes9x2005
endif
+GIT_VERSION := " $(shell git rev-parse --short HEAD || echo unknown)"
+ifneq ($(GIT_VERSION)," unknown")
+ CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
+endif
DEFS :=
LIBM := -lm