Skip to content

Commit 2bb82ae

Browse files
committed
Add GCw0 target
1 parent be67ef1 commit 2bb82ae

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Makefile.libretro

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,20 @@ endif
191191
CFLAGS += -DARM
192192
else ifeq ($(platform), emscripten)
193193
TARGET := $(TARGET_NAME)_libretro_emscripten.bc
194+
195+
# GCW0
196+
else ifeq ($(platform), gcw0)
197+
TARGET := $(TARGET_NAME)_libretro.so
198+
CC = /opt/gcw0-toolchain/usr/bin/mipsel-linux-gcc
199+
CXX = /opt/gcw0-toolchain/usr/bin/mipsel-linux-g++
200+
AR = /opt/gcw0-toolchain/usr/bin/mipsel-linux-ar
201+
fpic := -fPIC
202+
SHARED := -shared -Wl,-no-undefined -Wl,--version-script=libretro/link.T
203+
LDFLAGS += $(PTHREAD_FLAGS)
204+
CFLAGS += $(PTHREAD_FLAGS) -DHAVE_MKDIR
205+
CFLAGS += -ffast-math -march=mips32 -mtune=mips32r2 -mhard-float
206+
207+
# Windows
194208
else
195209
TARGET := $(TARGET_NAME)_libretro.dll
196210
CC = gcc

0 commit comments

Comments
 (0)