diff --git a/Makefile b/Makefile index 8746015..23338dd 100755 --- a/Makefile +++ b/Makefile @@ -18,6 +18,7 @@ MAKECMDGOALS := $(DEFAULT) endif VERSION := 0.9 +export VERSION CONF ?= debug BIN := build/bin diff --git a/libretro/Makefile b/libretro/Makefile index 9761843..bde47c1 100644 --- a/libretro/Makefile +++ b/libretro/Makefile @@ -6,6 +6,8 @@ ifneq ($(GIT_VERSION)," unknown") CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\" endif +CFLAGS += -DSAMEBOY_CORE_VERSION=\"$(VERSION)\" + ifeq ($(platform),) platform = unix ifeq ($(shell uname -a),) diff --git a/libretro/libretro.c b/libretro/libretro.c index 7320a7a..fefb316 100644 --- a/libretro/libretro.c +++ b/libretro/libretro.c @@ -14,8 +14,6 @@ #define snprintf _snprintf #endif -#define SAMEBOY_CORE_VERSION "0.9" - #include #include "libretro.h"