aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTwinaphex2019-08-02 20:59:30 +0200
committerGitHub2019-08-02 20:59:30 +0200
commit0ed20f0a360817a8a3c21274bfdca93fb6e0dae5 (patch)
treefb2acca9469d4ef7ce152577c47c6fdf94a5def8 /Makefile
parente5954a7e3abf8eacded2c5f8fd06a6306630f3b0 (diff)
parentdf791afeb727f56288d31af9081949721c3b41fb (diff)
downloadsnes9x2005-0ed20f0a360817a8a3c21274bfdca93fb6e0dae5.tar.gz
snes9x2005-0ed20f0a360817a8a3c21274bfdca93fb6e0dae5.tar.bz2
snes9x2005-0ed20f0a360817a8a3c21274bfdca93fb6e0dae5.zip
Merge pull request #66 from paradadf/arm-patch
Add ARM platform
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 384e2a9..3bfef2e 100644
--- a/Makefile
+++ b/Makefile
@@ -70,6 +70,25 @@ ifeq ($(platform), unix)
fpic := -fPIC
SHARED := -shared -Wl,--no-undefined -Wl,--version-script=link.T
CFLAGS += -fno-builtin -fno-exceptions -ffunction-sections
+# ARM
+else ifneq (,$(findstring armv,$(platform)))
+ TARGET := $(TARGET_NAME)_libretro.so
+ fpic := -fPIC
+ SHARED := -shared -Wl,--no-undefined -Wl,--version-script=link.T
+ CC = gcc
+ CXX = g++
+ PLATFORM_DEFINES += -marm
+ ifneq (,$(findstring softfloat,$(platform)))
+ PLATFORM_DEFINES += -mfloat-abi=softfp
+ else ifneq (,$(findstring hardfloat,$(platform)))
+ PLATFORM_DEFINES += -mfloat-abi=hard
+ endif
+ ifneq (,$(findstring neon,$(platform)))
+ FLAGS += -mfpu=neon
+ ASFLAGS += -mfpu=neon
+ HAVE_NEON = 1
+ endif
+ PLATFORM_DEFINES += -DARM
else ifeq ($(platform), linux-portable)
TARGET := $(TARGET_NAME)_libretro.so
fpic := -fPIC -nostdlib