summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 06509fd..42ec880 100644
--- a/Makefile
+++ b/Makefile
@@ -305,6 +305,17 @@ else ifneq (,$(findstring armv,$(platform)))
else ifeq ($(platform), emscripten)
TARGET := $(TARGET_NAME)_libretro_emscripten.bc
+# GCW0
+else ifeq ($(platform), gcw0)
+ TARGET := $(TARGET_NAME)_libretro.so
+ CC = /opt/gcw0-toolchain/usr/bin/mipsel-linux-gcc
+ CXX = /opt/gcw0-toolchain/usr/bin/mipsel-linux-g++
+ AR = /opt/gcw0-toolchain/usr/bin/mipsel-linux-ar
+ SHARED := -shared -nostdlib -Wl,--version-script=link.T
+ fpic := -fPIC
+ CFLAGS += $(PTHREAD_FLAGS) -DHAVE_MKDIR
+ CFLAGS += -ffast-math -march=mips32 -mtune=mips32r2 -mhard-float
+
# Windows
else
TARGET := $(TARGET_NAME)_libretro.dll