From 42bd6e6867e3ac6b1711051a7fbedaf68f4f677c Mon Sep 17 00:00:00 2001 From: Jonathan Wright Date: Tue, 6 Jan 2009 15:11:44 +1300 Subject: [PATCH] Set IO_VERSION_STRING to last git tag while building --- Makefile.lib | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/Makefile.lib b/Makefile.lib index aa49070..347453f 100755 --- a/Makefile.lib +++ b/Makefile.lib @@ -49,6 +49,11 @@ DLL_l := $(addprefix -l,$(DLL_l)) CFLAGS = $(OPTIMIZE) $(WARN) $(HEADERS) #--param max-inline-insns-single=500 +IO_GIT_DESCRIBE=$(shell git describe) +ifneq (,$(IO_GIT_DESCRIBE)) +CFLAGS += -D'IO_VERSION_STRING="'$(IO_GIT_DESCRIBE)'"' +endif + # Uncommment for Coros to register their stack with Valgrind #CFLAGS += -DUSE_VALGRIND -- 1.6.1