From a4b91ee98a0b092c3acdfaf67916685215f61773 Mon Sep 17 00:00:00 2001 From: Ignacio Sanchez Gines <863613+drhelius@users.noreply.github.com> Date: Thu, 28 Dec 2023 20:01:05 +0100 Subject: [PATCH] [libretro] Add SF2000 platform --- platforms/libretro/Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/platforms/libretro/Makefile b/platforms/libretro/Makefile index 85754b87..cb7ad8ff 100644 --- a/platforms/libretro/Makefile +++ b/platforms/libretro/Makefile @@ -248,6 +248,18 @@ else ifeq ($(platform), retrofw) CFLAGS += -fomit-frame-pointer -ffast-math -march=mips32 -mtune=mips32 -mhard-float CFLAGS += -flto -DPERFORMANCE CXXFLAGS += $(CFLAGS) +# SF2000 +else ifeq ($(platform), sf2000) + TARGET := $(TARGET_NAME)_libretro_$(platform).a + MIPS:=/opt/mips32-mti-elf/2019.09-03-2/bin/mips-mti-elf- + CC = $(MIPS)gcc + CXX = $(MIPS)g++ + AR = $(MIPS)ar + CFLAGS = -EL -march=mips32 -mtune=mips32 -msoft-float -G0 -mno-abicalls -fno-pic + CFLAGS += -ffast-math -fomit-frame-pointer -ffunction-sections -fdata-sections + CFLAGS += -DSF2000 -DMINIZ_NO_TIME + CXXFLAGS = $(CFLAGS) + STATIC_LINKING = 1 # MIYOO else ifeq ($(platform), miyoo) TARGET := $(TARGET_NAME)_libretro.so