diff --git a/Makefile b/Makefile index 4cec012..95e2497 100644 --- a/Makefile +++ b/Makefile @@ -335,6 +335,26 @@ else ifeq ($(platform), miyoo) USE_CYCLONE = 1 USE_DRZ80 = 1 +# Trimui +else ifeq ($(platform), trimui) + TARGET = $(TARGET_NAME)_libretro.so + CC = $(CROSS_COMPILE)gcc + CXX = $(CROSS_COMPILE)g++ + AR = $(CROSS_COMPILE)ar + LDFLAGS += -shared -Wl,--version-script=link.T -Wl,-no-undefined -fno-PIC -flto + CFLAGS += -fomit-frame-pointer -ffast-math -mcpu=arm926ej-s -mtune=arm926ej-s -fno-PIC -flto + CFLAGS += -fsingle-precision-constant + CFLAGS += -fno-exceptions -fcommon -fno-unwind-tables -fno-asynchronous-unwind-tables + CFLAGS += -funroll-loops -fno-optimize-sibling-calls + DISABLE_ERROR_LOGGING := 1 + ARM = 1 + USE_CYCLONE = 1 + USE_DRZ80 = 1 + OPTIMIZE := -Ofast -DNDEBUG + ifeq (,$(DEBUG)) + LDFLAGS += -s + endif + # Windows MSVC 2010 x64 else ifeq ($(platform), windows_msvc2010_x64) CC = cl.exe @@ -522,6 +542,8 @@ endif ifeq ($(DEBUG), 1) CFLAGS += -O0 -g +else ifneq (,$(OPTIMIZE)) +CFLAGS += $(OPTIMIZE) else CFLAGS += -O2 -DNDEBUG endif