add retrofw target (#77)

Co-authored-by: Poligraf <>
This commit is contained in:
Poligraf
2021-08-03 21:50:18 +12:00
committed by GitHub
parent b59fb7e925
commit bcbbf63c04
2 changed files with 22 additions and 0 deletions
+11
View File
@@ -346,6 +346,17 @@ else ifeq ($(platform), classic_armv8_a35)
LDFLAGS += -static-libgcc -static-libstdc++
#######################################
#RETROFW
else ifneq (,$(findstring retrofw,$(platform)))
TARGET := $(TARGET_NAME)_libretro.so
CC = /opt/retrofw-toolchain/usr/bin/mipsel-linux-gcc
CXX = /opt/retrofw-toolchain/usr/bin/mipsel-linux-g++
AR = /opt/retrofw-toolchain/usr/bin/mipsel-linux-ar
fpic := -fPIC
SHARED := -shared -Wl,-version-script=link.T -Wl,-no-undefined
CFLAGS += -fomit-frame-pointer -march=mips32 -mtune=mips32 -mhard-float
PLATFORM_DEFINES += -DRETROFW
# emscripten
else ifeq ($(platform), emscripten)
TARGET := $(TARGET_NAME)_libretro_emscripten.bc