mirror of https://github.com/snes9xgit/snes9x.git
(Makefile Libretro) Add ARM target
This commit is contained in:
parent
7bd0e2af33
commit
a4c39684a8
|
@ -74,6 +74,28 @@ else ifeq ($(platform), wii)
|
||||||
AR = $(DEVKITPPC)/bin/powerpc-eabi-ar$(EXE_EXT)
|
AR = $(DEVKITPPC)/bin/powerpc-eabi-ar$(EXE_EXT)
|
||||||
CXXFLAGS += -DGEKKO -mrvl -mcpu=750 -meabi -mhard-float -DBLARGG_BIG_ENDIAN=1 -D__ppc__
|
CXXFLAGS += -DGEKKO -mrvl -mcpu=750 -meabi -mhard-float -DBLARGG_BIG_ENDIAN=1 -D__ppc__
|
||||||
STATIC_LINKING = 1
|
STATIC_LINKING = 1
|
||||||
|
else ifneq (,$(findstring armv,$(platform)))
|
||||||
|
TARGET := $(TARGET_NAME)_libretro.so
|
||||||
|
SHARED := -shared -Wl,--no-undefined
|
||||||
|
fpic := -fPIC
|
||||||
|
CC = gcc
|
||||||
|
CXX = g++
|
||||||
|
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
|
else
|
||||||
TARGET := $(TARGET_NAME)_libretro.dll
|
TARGET := $(TARGET_NAME)_libretro.dll
|
||||||
CC = gcc
|
CC = gcc
|
||||||
|
|
2
port.h
2
port.h
|
@ -334,7 +334,7 @@ void SetInfoDlgColor(unsigned char, unsigned char, unsigned char);
|
||||||
#define TITLE "Snes9x"
|
#define TITLE "Snes9x"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__i386__) || defined(__i486__) || defined(__i586__) || defined(__i686__) || defined(__x86_64__) || defined(__alpha__) || defined(__MIPSEL__) || defined(_M_IX86) || defined(_M_X64) || defined(_XBOX1)
|
#if defined(__i386__) || defined(__i486__) || defined(__i586__) || defined(__i686__) || defined(__x86_64__) || defined(__alpha__) || defined(__MIPSEL__) || defined(_M_IX86) || defined(_M_X64) || defined(_XBOX1) || defined(ARM)
|
||||||
#define LSB_FIRST
|
#define LSB_FIRST
|
||||||
#define FAST_LSB_WORD_ACCESS
|
#define FAST_LSB_WORD_ACCESS
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue