From 4c188bb4a13253c12698b6edb8ad0d1d53242ae3 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 14 Jul 2013 02:31:53 +0200 Subject: [PATCH] (Makefile) Add ARM target --- Makefile.libretro | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/Makefile.libretro b/Makefile.libretro index e4e210d..4b51e28 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -104,6 +104,29 @@ else ifeq ($(platform), wii) AR = $(DEVKITPPC)/bin/powerpc-eabi-ar$(EXE_EXT) PLATFORM_DEFINES := -DGEKKO -DHW_RVL -mrvl -mcpu=750 -meabi -mhard-float -DALT_RENDER STATIC_LINKING = 1 +else ifneq (,$(findstring armv,$(platform))) + TARGET := $(TARGET_NAME)_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 = gcc +ifneq (,$(findstring cortexa8,$(platform))) + PLATFORM_DEFINES += -marm -mcpu=cortex-a8 +else ifneq (,$(findstring cortexa9,$(platform))) + PLATFORM_DEFINES += -marm -mcpu=cortex-a9 +endif + PLATFORM_DEFINES += -marm +ifneq (,$(findstring neon,$(platform))) + PLATFORM_DEFINES += -mfpu=neon + HAVE_NEON = 1 +endif +ifneq (,$(findstring softfloat,$(platform))) + PLATFORM_DEFINES += -mfloat-abi=softfp +else ifneq (,$(findstring hardfloat,$(platform))) + PLATFORM_DEFINES += -mfloat-abi=hard +endif + PLATFORM_DEFINES += -DARM else TARGET := $(TARGET_NAME)_libretro.dll CC = gcc