Skip to content

Commit

Permalink
Add GCw0 target
Browse files Browse the repository at this point in the history
  • Loading branch information
inactive123 committed Mar 11, 2016
1 parent be67ef1 commit 2bb82ae
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Makefile.libretro
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,20 @@ endif
CFLAGS += -DARM
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
fpic := -fPIC
SHARED := -shared -Wl,-no-undefined -Wl,--version-script=libretro/link.T
LDFLAGS += $(PTHREAD_FLAGS)
CFLAGS += $(PTHREAD_FLAGS) -DHAVE_MKDIR
CFLAGS += -ffast-math -march=mips32 -mtune=mips32r2 -mhard-float

# Windows
else
TARGET := $(TARGET_NAME)_libretro.dll
CC = gcc
Expand Down

0 comments on commit 2bb82ae

Please sign in to comment.