From 12713211fd2e9200b78af28f17b6594b9f0c6e1b Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 4 Mar 2016 06:25:04 +0100 Subject: [PATCH] Add GCW0 target --- Makefile.libretro | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Makefile.libretro b/Makefile.libretro index 198cb4f..509c531 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -257,6 +257,18 @@ else ifeq ($(platform), emscripten) TARGET := $(TARGET_NAME)_libretro_emscripten.bc ENDIANNESS_DEFINES := -DLSB_FIRST -DALIGN_LONG -DHAVE_ALLOCA_H -DUSE_DYNAMIC_ALLOC -DUSE_MEMORY_H -DBYTE_ORDER=BIG_ENDIAN -DHAVE_ZLIB +# 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 -Wl,--version-script=libretro/link.T -Wl,--no-undefined + fpic := -fPIC + LDFLAGS += $(PTHREAD_FLAGS) + CFLAGS += $(PTHREAD_FLAGS) -DHAVE_MKDIR + CFLAGS += -ffast-math -march=mips32 -mtune=mips32r2 -mhard-float + # Windows else TARGET := $(TARGET_NAME)_libretro.dll