mirror of
https://github.com/libretro/scenewalker-libretro.git
synced 2024-11-23 15:59:52 +00:00
Add ARM target
This commit is contained in:
parent
2acf147dbf
commit
721f37ecae
28
Makefile
28
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
|
||||
|
Loading…
Reference in New Issue
Block a user