From a1af649899803ab8b6123c0e3aba297139f29b92 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 14 Jul 2013 13:37:37 +0200 Subject: [PATCH] (libretro-test-gl) Add ARM target --- libretro-test-gl/Makefile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/libretro-test-gl/Makefile b/libretro-test-gl/Makefile index 6743ccffc9..2506afd81d 100644 --- a/libretro-test-gl/Makefile +++ b/libretro-test-gl/Makefile @@ -49,6 +49,33 @@ else ifeq ($(platform), qnx) AR = qcc -Vgcc_ntoarmv7le CFLAGS += -D__BLACKBERRY_QNX__ -DGLES GL_LIB := -lGLESv2 +else ifneq (,$(findstring armv,$(platform))) + CC = gcc + TARGET := $(TARGET_NAME)_libretro.so + fpic := -fPIC + SHARED := -shared -Wl,--version-script=link.T -Wl,--no-undefined + CFLAGS += -I. +ifneq (,$(findstring gles,$(platform))) + GLES := 1 +else + GL_LIB := -lGL +endif +ifneq (,$(findstring cortexa8,$(platform))) + CFLAGS += -marm -mcpu=cortex-a8 +else ifneq (,$(findstring cortexa9,$(platform))) + CFLAGS += -marm -mcpu=cortex-a9 +endif + CFLAGS += -marm +ifneq (,$(findstring neon,$(platform))) + CFLAGS += -mfpu=neon + HAVE_NEON = 1 +endif +ifneq (,$(findstring softfloat,$(platform))) + CFLAGS += -mfloat-abi=softfp +else ifneq (,$(findstring hardfloat,$(platform))) + CFLAGS += -mfloat-abi=hard +endif + CFLAGS += -DARM else CC = gcc TARGET := $(TARGET_NAME)_retro.dll