summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authortwinaphex2016-03-01 22:31:55 +0100
committertwinaphex2016-03-01 22:31:55 +0100
commitc87b24f54d0e6ac3478902ebd71bbacd122d3712 (patch)
tree4993b014a585e91096fd833f13312fff329e1692 /Makefile
parent033a61a80cc1249fa81f16dda8d1f9e54242be20 (diff)
downloadsnes9x2002-c87b24f54d0e6ac3478902ebd71bbacd122d3712.tar.gz
snes9x2002-c87b24f54d0e6ac3478902ebd71bbacd122d3712.tar.bz2
snes9x2002-c87b24f54d0e6ac3478902ebd71bbacd122d3712.zip
Add GCW Zero target
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