From 45dd2c2bdeb83f002192a490ea61c3760c269f25 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 22 Aug 2015 21:03:28 +0200 Subject: [PATCH] Fix Makefile --- cores/libretro-test/Makefile | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/cores/libretro-test/Makefile b/cores/libretro-test/Makefile index 1a06c12b63..7d7142f5b8 100644 --- a/cores/libretro-test/Makefile +++ b/cores/libretro-test/Makefile @@ -1,8 +1,3 @@ - -ifneq ($(EMSCRIPTEN),) - platform = emscripten -endif - ifeq ($(platform),) platform = unix ifeq ($(shell uname -a),) @@ -16,6 +11,21 @@ else ifneq ($(findstring win,$(shell uname -a)),) endif endif +# system platform +system_platform = unix +ifeq ($(shell uname -a),) + EXE_EXT = .exe + system_platform = win +else ifneq ($(findstring Darwin,$(shell uname -a)),) + system_platform = osx + arch = intel +ifeq ($(shell uname -p),powerpc) + arch = ppc +endif +else ifneq ($(findstring MINGW,$(shell uname -a)),) + system_platform = win +endif + TARGET_NAME := test LIBM = -lm @@ -42,7 +52,7 @@ else ifneq (,$(findstring qnx,$(platform))) TARGET := $(TARGET_NAME)_libretro_qnx.so fpic := -fPIC SHARED := -shared -Wl,--version-script=link.T -Wl,--no-undefined -else ifneq ($(platform), emscripten) +else ifeq ($(platform), emscripten) TARGET := $(TARGET_NAME)_libretro_emscripten.bc fpic := -fPIC SHARED := -shared -Wl,--version-script=link.T -Wl,--no-undefined