1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
diff --git a/Makefile.libretro b/Makefile.libretro
index 261be5b..5657784 100644
--- a/Makefile.libretro
+++ b/Makefile.libretro
@@ -505,7 +505,24 @@ else ifeq ($(platform), miyoo)
HAVE_ARMv6 = 0
LOW_MEMORY = 1
+# TRIMUI
+else ifeq ($(platform), trimui)
+ TARGET := $(TARGET_NAME)_libretro.so
+ CC = $(CROSS_COMPILE)gcc
+ CXX = $(CROSS_COMPILE)g++
+ AR = $(CROSS_COMPILE)ar
+ SHARED := -shared -Wl,--no-undefined
+ DONT_COMPILE_IN_ZLIB = 1
+ CFLAGS += -fomit-frame-pointer -ffast-math -march=armv5te -mtune=arm926ej-s -D__GCW0__
+ CFLAGS += -fno-PIC -flto
+ LDFLAGS += -flto
+ HAVE_ARMv6 = 0
+ LOW_MEMORY = 1
+ ifeq (,$(DEBUG))
+ LDFLAGS += -s
+ endif
+
# Windows MSVC 2017 all architectures
else ifneq (,$(findstring windows_msvc2017,$(platform)))
NO_GCC := 1
@@ -702,6 +719,13 @@ else
endif
endif
+ifeq ($(PROFILE), GENERATE)
+ CFLAGS += -fprofile-generate=./profile/$(TARGET_NAME)
+ LDFLAGS += -lgcov
+else ifeq ($(PROFILE), APPLY)
+ CFLAGS += -fprofile-use -fprofile-dir=../profile/$(TARGET_NAME) -fbranch-probabilities
+endif
+
ifneq (,$(findstring msvc,$(platform)))
OBJOUT = -Fo
LINKOUT = -out:
|