From 721f37ecaec699b1ea17c95158048280307ed64e Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 14 Jul 2013 13:23:13 +0200 Subject: [PATCH] Add ARM target --- Makefile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/Makefile b/Makefile index ddec2bb..6878f8f 100644 --- a/Makefile +++ b/Makefile @@ -69,6 +69,34 @@ else ifeq ($(platform), sncps3) DEFINES := -D__CELLOS_LV2__ INCFLAGS = -I. -Iinclude/miniz -Iinclude/compat STATIC_LINKING = 1 +else ifneq (,$(findstring armv,$(platform))) + CC = gcc + CXX = g++ + TARGET := $(TARGET_NAME)_libretro.so + fpic := -fPIC + SHARED := -shared -Wl,--version-script=link.T -Wl,--no-undefined + CXXFLAGS += -I. +ifneq (,$(findstring gles,$(platform))) + GLES := 1 +else + GL_LIB := -lGL +endif +ifneq (,$(findstring cortexa8,$(platform))) + CXXFLAGS += -marm -mcpu=cortex-a8 +else ifneq (,$(findstring cortexa9,$(platform))) + CXXFLAGS += -marm -mcpu=cortex-a9 +endif + CXXFLAGS += -marm +ifneq (,$(findstring neon,$(platform))) + CXXFLAGS += -mfpu=neon + HAVE_NEON = 1 +endif +ifneq (,$(findstring softfloat,$(platform))) + CXXFLAGS += -mfloat-abi=softfp +else ifneq (,$(findstring hardfloat,$(platform))) + CXXFLAGS += -mfloat-abi=hard +endif + CXXFLAGS += -DARM else CXX = g++ TARGET := $(TARGET_NAME)_libretro.dll