From 3f80a5e72805eef5a851817fe34e6ad732e6ec00 Mon Sep 17 00:00:00 2001 From: neonloop Date: Wed, 9 Feb 2022 07:02:38 +0000 Subject: Adds trimui s support --- Makefile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/Makefile b/Makefile index 4e40cc1..1bb245a 100644 --- a/Makefile +++ b/Makefile @@ -293,6 +293,22 @@ else ifeq ($(platform), miyoo) LIBM := FLAGS += -fomit-frame-pointer -ffast-math -march=armv5te -mtune=arm926ej-s +else ifeq ($(platform), trimui) + TARGET := $(TARGET_NAME)_libretro.so + CC = $(CROSS_COMPILE)gcc + AR = $(CROSS_COMPILE)ar + SHARED := -shared -Wl,--version-script=link.T -Wl,--no-undefined + CFLAGS += -fsingle-precision-constant -fno-PIC -flto + CFLAGS += -DLSB_FIRST -DFAST_ALIGNED_LSB_WORD_ACCESS -DRIGHTSHIFT_IS_SAR + CFLAGS += -std=c99 -fomit-frame-pointer -ffast-math -mcpu=arm926ej-s -mtune=arm926ej-s + LDFLAGS += -flto +ifeq ($(DEBUG),1) + LDFLAGS += -g +else + LDFLAGS += -s +endif + OPTIMIZE += -Ofast -DNDEBUG=1 + # (armv7 a7, hard point, neon based) ### # NESC, SNESC, C64 mini else ifeq ($(platform), classic_armv7_a7) @@ -582,10 +598,20 @@ endif ifeq ($(DEBUG),1) FLAGS += -O0 -g +else ifneq (,$(OPTIMIZE)) + FLAGS += $(OPTIMIZE) else FLAGS += -O2 -DNDEBUG endif + +ifeq ($(PROFILE), GENERATE) + CFLAGS += -fprofile-generate=./profile/$(TARGET_NAME) + LIBS += -lgcov +else ifeq ($(PROFILE), APPLY) + CFLAGS += -fprofile-use -fprofile-dir=../profile/$(TARGET_NAME) -fbranch-probabilities +endif + ifneq (,$(findstring msvc,$(platform))) ifeq ($(DEBUG),1) FLAGS += -MTd -- cgit v1.2.3