diff options
author | neonloop | 2022-02-09 07:02:38 +0000 |
---|---|---|
committer | neonloop | 2022-02-09 07:02:38 +0000 |
commit | 874c431fdaff24413886416ed3ffa3455681ac01 (patch) | |
tree | e8d497ae2077dccf34599c9558222bf2d4920c77 | |
parent | afac587aab5265fda4c198f40ae054c74115f12b (diff) | |
download | snes9x2005-874c431fdaff24413886416ed3ffa3455681ac01.tar.gz snes9x2005-874c431fdaff24413886416ed3ffa3455681ac01.tar.bz2 snes9x2005-874c431fdaff24413886416ed3ffa3455681ac01.zip |
-rw-r--r-- | Makefile | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -288,6 +288,22 @@ else ifeq ($(platform), miyoo) FLAGS += -fomit-frame-pointer -ffast-math -march=armv5te -mtune=arm926ej-s FLAGS += -DFAST_ALIGNED_LSB_WORD_ACCESS -fno-unroll-loops +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) @@ -577,10 +593,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 |