summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortwinaphex2016-03-04 06:37:04 +0100
committertwinaphex2016-03-04 06:37:04 +0100
commit7a5380ca8448ed840a3932fb1f4d65e43782c9a7 (patch)
tree27465a18dcfdbbcbc347ddd7592e0f8dcd498aaa
parent5c11ca16d62c72e6048e187fd66702bbf90196ee (diff)
downloadpicogpsp-7a5380ca8448ed840a3932fb1f4d65e43782c9a7.tar.gz
picogpsp-7a5380ca8448ed840a3932fb1f4d65e43782c9a7.tar.bz2
picogpsp-7a5380ca8448ed840a3932fb1f4d65e43782c9a7.zip
Add gcw0 target
-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