From 8fc5171a4c53b6f0e7ef7247d36ee5e05eaf0a07 Mon Sep 17 00:00:00 2001 From: Gregor Richards Date: Fri, 9 Dec 2016 19:56:33 -0500 Subject: Report git version with library_version --- Makefile.libretro | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile.libretro') diff --git a/Makefile.libretro b/Makefile.libretro index a7fa0eb..df1cec2 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -22,6 +22,10 @@ CC_AS ?= $(CC) CFLAGS ?= TARGET_NAME := pcsx_rearmed +GIT_VERSION := " $(shell git rev-parse --short HEAD || echo unknown)" +ifneq ($(GIT_VERSION)," unknown") + CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\" +endif LIBZ := -lz LIBPTHREAD := -lpthread LIBDL := -ldl -- cgit v1.2.3