From df791afeb727f56288d31af9081949721c3b41fb Mon Sep 17 00:00:00 2001 From: paradadf Date: Fri, 2 Aug 2019 14:03:22 -0400 Subject: Add ARM platform --- Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'Makefile') 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 -- cgit v1.2.3