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 a8d1875..85e2a82 100644
--- a/Makefile
+++ b/Makefile
@@ -95,6 +95,17 @@ else ifeq ($(platform), ctr)
CFLAGS += -D_3DS
PLATFORM_DEFINES := -D_3DS
STATIC_LINKING := 1
+# 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
+ fpic := -fPIC
+ SHARED := -shared -Wl,--version-script=libretro/link.T -Wl,--no-undefined
+ CFLAGS += -std=c99 -ffast-math -march=mips32 -mtune=mips32r2 -mhard-float
+ CFLAGS += -fno-builtin -fno-exceptions
+ CFLAGS += -DPATH_MAX=256
else
TARGET := $(TARGET_NAME)_libretro.dll
CC = gcc