Add GCW Zero target

This commit is contained in:
twinaphex 2016-03-01 22:29:35 +01:00
parent 1ce0cc74c1
commit 26850a7cd8
2 changed files with 11 additions and 1 deletions

View File

@ -218,6 +218,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) -lrt
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++];