aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authortwinaphex2016-03-01 22:30:02 +0100
committertwinaphex2016-03-01 22:30:02 +0100
commite0660daedf5204da39ff12ba83a4ac1a5f3b9bb3 (patch)
tree19eaba187537d3de779db8f1bcbb7814a057dc72 /Makefile
parent81def24a904cf870d10b7b3b0a0aca53eedbeba1 (diff)
downloadsnesemu-e0660daedf5204da39ff12ba83a4ac1a5f3b9bb3.tar.gz
snesemu-e0660daedf5204da39ff12ba83a4ac1a5f3b9bb3.tar.bz2
snesemu-e0660daedf5204da39ff12ba83a4ac1a5f3b9bb3.zip
Add GCW Zero target
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index daceccd..63e9e69 100644
--- a/Makefile
+++ b/Makefile
@@ -196,6 +196,19 @@ else ifeq ($(platform), wii)
CFLAGS += -DGEKKO -DHW_RVL -mrvl -mcpu=750 -meabi -mhard-float -D__ppc__ -DMSB_FIRST
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 -nostdlib
+ SHARED := -shared -Wl,--version-script=link.T
+
+ LIBM :=
+ LOAD_FROM_MEMORY_TEST = 0
+ CFLAGS += -ffast-math -march=mips32 -mtune=mips32r2 -mhard-float
+
else
TARGET := $(TARGET_NAME)_libretro.dll
CC = gcc