From 555fc8db4c625a5dd346f603c08ed9254e3b5445 Mon Sep 17 00:00:00 2001 From: meancoot Date: Sun, 17 Mar 2013 18:51:57 -0400 Subject: [PATCH 1/2] Add iOS build target --- Makefile.libretro | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile.libretro b/Makefile.libretro index 8394520..50cee50 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -42,6 +42,14 @@ else ifeq ($(platform), osx) SHARED := -dynamiclib -lz ENDIANNESS_DEFINES := -DLSB_FIRST PLATFORM_DEFINES := -DHAVE_ZLIB +else ifeq ($(platform), ios) + TARGET := genesis_plus_gx_libretro.dylib + fpic := -fPIC + SHARED := -dynamiclib -lz + ENDIANNESS_DEFINES := -DLSB_FIRST + PLATFORM_DEFINES := -DHAVE_ZLIB + + CC = clang -arch armv7 -isysroot $(IOSSDK) else ifeq ($(platform), sncps3) TARGET := genesis_plus_gx_libretro_ps3.a CC = $(CELL_SDK)/host-win32/sn/bin/ps3ppusnc.exe From 28e73319fbf650d4c090cb4f35ac5668a03b02fb Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 25 Mar 2013 07:10:32 +0100 Subject: [PATCH 2/2] (Blackberry) Add qnx target to Makefile.libretro --- Makefile.libretro | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Makefile.libretro b/Makefile.libretro index 50cee50..dd0354f 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -50,6 +50,15 @@ else ifeq ($(platform), ios) PLATFORM_DEFINES := -DHAVE_ZLIB CC = clang -arch armv7 -isysroot $(IOSSDK) +else ifeq ($(platform), qnx) + TARGET := genesis_plus_gx_libretro.so + fpic := -fPIC + SHARED := -shared -Wl,--version-script=libretro/link.T -Wl,--no-undefined -lz + ENDIANNESS_DEFINES := -DLSB_FIRST + PLATFORM_DEFINES := -DHAVE_ZLIB + CC = qcc -Vgcc_ntoarmv7le + AR = qcc -Vgcc_ntoarmv7le + PLATFORM_DEFINES := -D__BLACKBERRY_QNX__ -marm -mcpu=cortex-a9 -mfpu=neon -mfloat-abi=softfp else ifeq ($(platform), sncps3) TARGET := genesis_plus_gx_libretro_ps3.a CC = $(CELL_SDK)/host-win32/sn/bin/ps3ppusnc.exe @@ -161,12 +170,6 @@ ifeq ($(LOGSOUND), 1) LIBRETRO_CFLAGS := -DLOGSOUND endif -ifeq ($(platform), sncps3) -CODE_DEFINES = -else -CODE_DEFINES = -std=gnu99 -endif - DEFINES := CFLAGS += $(fpic) $(DEFINES) $(CODE_DEFINES)