mirror of
https://github.com/Pecusx/libretro-atari800.git
synced 2026-05-20 22:33:22 +02:00
Added Classic systems
This commit is contained in:
@@ -291,6 +291,60 @@ else ifneq (,$(findstring armv,$(platform)))
|
|||||||
endif
|
endif
|
||||||
PLATFORM_DEFINES += -DARM
|
PLATFORM_DEFINES += -DARM
|
||||||
|
|
||||||
|
# Classic Platforms ####################
|
||||||
|
# Platform affix = classic_<ISA>_<µARCH>
|
||||||
|
# Help at https://modmyclassic.com/comp
|
||||||
|
|
||||||
|
# (armv7 a7, hard point, neon based) ###
|
||||||
|
# NESC, SNESC, C64 mini
|
||||||
|
else ifeq ($(platform), classic_armv7_a7)
|
||||||
|
TARGET := $(TARGET_NAME)_libretro.so
|
||||||
|
fpic := -fPIC
|
||||||
|
LDFLAGS := -shared -Wl,--version-script=link.T -Wl,--no-undefined
|
||||||
|
CFLAGS += -Ofast \
|
||||||
|
-flto=4 -fwhole-program -fuse-linker-plugin \
|
||||||
|
-fdata-sections -ffunction-sections -Wl,--gc-sections \
|
||||||
|
-fno-stack-protector -fno-ident -fomit-frame-pointer \
|
||||||
|
-falign-functions=1 -falign-jumps=1 -falign-loops=1 \
|
||||||
|
-fno-unwind-tables -fno-asynchronous-unwind-tables -fno-unroll-loops \
|
||||||
|
-fmerge-all-constants -fno-math-errno \
|
||||||
|
-marm -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard
|
||||||
|
CXXFLAGS += $(CFLAGS)
|
||||||
|
CPPFLAGS += $(CFLAGS)
|
||||||
|
ASFLAGS += $(CFLAGS)
|
||||||
|
HAVE_NEON = 1
|
||||||
|
ifeq ($(shell echo `$(CC) -dumpversion` "< 4.9" | bc -l), 1)
|
||||||
|
CFLAGS += -march=armv7-a
|
||||||
|
else
|
||||||
|
CFLAGS += -march=armv7ve
|
||||||
|
# If gcc is 5.0 or later
|
||||||
|
ifeq ($(shell echo `$(CC) -dumpversion` ">= 5" | bc -l), 1)
|
||||||
|
LDFLAGS += -static-libgcc -static-libstdc++
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
# (armv8 a35, hard point, neon based) ###
|
||||||
|
# PlayStation Classic
|
||||||
|
else ifeq ($(platform), classic_armv8_a35)
|
||||||
|
TARGET := $(TARGET_NAME)_libretro.so
|
||||||
|
fpic := -fPIC
|
||||||
|
LDFLAGS := -shared -Wl,--version-script=link.T -Wl,--no-undefined
|
||||||
|
CFLAGS += -Ofast \
|
||||||
|
-flto -fwhole-program -fuse-linker-plugin \
|
||||||
|
-fdata-sections -ffunction-sections -Wl,--gc-sections \
|
||||||
|
-fno-stack-protector -fno-ident -fomit-frame-pointer \
|
||||||
|
-falign-functions=1 -falign-jumps=1 -falign-loops=1 \
|
||||||
|
-fno-unwind-tables -fno-asynchronous-unwind-tables -fno-unroll-loops \
|
||||||
|
-fmerge-all-constants -fno-math-errno \
|
||||||
|
-marm -mtune=cortex-a35 -mfpu=neon-fp-armv8 -mfloat-abi=hard
|
||||||
|
CXXFLAGS += $(CFLAGS)
|
||||||
|
CPPFLAGS += $(CFLAGS)
|
||||||
|
ASFLAGS += $(CFLAGS)
|
||||||
|
HAVE_NEON = 1
|
||||||
|
CFLAGS += -march=armv8-a
|
||||||
|
LDFLAGS += -static-libgcc -static-libstdc++
|
||||||
|
#######################################
|
||||||
|
|
||||||
# emscripten
|
# emscripten
|
||||||
else ifeq ($(platform), emscripten)
|
else ifeq ($(platform), emscripten)
|
||||||
TARGET := $(TARGET_NAME)_libretro_emscripten.bc
|
TARGET := $(TARGET_NAME)_libretro_emscripten.bc
|
||||||
|
|||||||
Reference in New Issue
Block a user