Skip to content

Commit

Permalink
[libretro] Add SF2000 platform
Browse files Browse the repository at this point in the history
  • Loading branch information
drhelius authored Dec 28, 2023
1 parent 302fc34 commit a4b91ee
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions platforms/libretro/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a4b91ee

Please sign in to comment.