mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-09-10 16:53:15 +02:00
(Makefile) Add ARM target
This commit is contained in:
parent
7033010412
commit
4c188bb4a1
@ -104,6 +104,29 @@ else ifeq ($(platform), wii)
|
|||||||
AR = $(DEVKITPPC)/bin/powerpc-eabi-ar$(EXE_EXT)
|
AR = $(DEVKITPPC)/bin/powerpc-eabi-ar$(EXE_EXT)
|
||||||
PLATFORM_DEFINES := -DGEKKO -DHW_RVL -mrvl -mcpu=750 -meabi -mhard-float -DALT_RENDER
|
PLATFORM_DEFINES := -DGEKKO -DHW_RVL -mrvl -mcpu=750 -meabi -mhard-float -DALT_RENDER
|
||||||
STATIC_LINKING = 1
|
STATIC_LINKING = 1
|
||||||
|
else ifneq (,$(findstring armv,$(platform)))
|
||||||
|
TARGET := $(TARGET_NAME)_libretro.so
|
||||||
|
fpic := -fPIC
|
||||||
|
SHARED := -shared -Wl,--version-script=libretro/link.T -Wl,--no-undefined -lz
|
||||||
|
ENDIANNESS_DEFINES := -DLSB_FIRST
|
||||||
|
PLATFORM_DEFINES := -DHAVE_ZLIB
|
||||||
|
CC = gcc
|
||||||
|
ifneq (,$(findstring cortexa8,$(platform)))
|
||||||
|
PLATFORM_DEFINES += -marm -mcpu=cortex-a8
|
||||||
|
else ifneq (,$(findstring cortexa9,$(platform)))
|
||||||
|
PLATFORM_DEFINES += -marm -mcpu=cortex-a9
|
||||||
|
endif
|
||||||
|
PLATFORM_DEFINES += -marm
|
||||||
|
ifneq (,$(findstring neon,$(platform)))
|
||||||
|
PLATFORM_DEFINES += -mfpu=neon
|
||||||
|
HAVE_NEON = 1
|
||||||
|
endif
|
||||||
|
ifneq (,$(findstring softfloat,$(platform)))
|
||||||
|
PLATFORM_DEFINES += -mfloat-abi=softfp
|
||||||
|
else ifneq (,$(findstring hardfloat,$(platform)))
|
||||||
|
PLATFORM_DEFINES += -mfloat-abi=hard
|
||||||
|
endif
|
||||||
|
PLATFORM_DEFINES += -DARM
|
||||||
else
|
else
|
||||||
TARGET := $(TARGET_NAME)_libretro.dll
|
TARGET := $(TARGET_NAME)_libretro.dll
|
||||||
CC = gcc
|
CC = gcc
|
||||||
|
Loading…
Reference in New Issue
Block a user