Add gcw0 target

This commit is contained in:
twinaphex 2016-03-04 06:31:12 +01:00
parent 83a8a54962
commit 5370914961
2 changed files with 11 additions and 1 deletions

View File

@ -229,6 +229,16 @@ else ifneq (,$(findstring hardfloat,$(platform)))
FLAGS += -mfloat-abi=hard
endif
FLAGS += -DARM
else ifeq ($(platform), gcw0)
TARGET := $(TARGET_NAME).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=link.T
LDFLAGS += $(PTHREAD_FLAGS)
FLAGS += $(PTHREAD_FLAGS) -DHAVE_MKDIR
FLAGS += -ffast-math -march=mips32 -mtune=mips32r2 -mhard-float
else
TARGET := $(TARGET_NAME).dll
CC = gcc

View File

@ -41,7 +41,7 @@ class MDFNFILE
int read32le(uint32 *Bufo);
int read16le(uint16 *Bufo);
inline int fgetc(void)
inline int _fgetc(void)
{
if(location < f_size)
return f_data[location++];