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
44
45
|
--- a/Makefile.Linux 2016-12-01 21:17:39.000000000 +0800
+++ b/Makefile.Linux 2017-05-26 23:10:26.000000000 +0800
@@ -9,11 +9,7 @@
.SUFFIXES:
.SUFFIXES: $(OBJSUFFIX) .cpp .h
-TARGET = onscripter$(EXESUFFIX) \
- sardec$(EXESUFFIX) \
- nsadec$(EXESUFFIX) \
- sarconv$(EXESUFFIX) \
- nsaconv$(EXESUFFIX)
+TARGET = onscripter$(EXESUFFIX)
EXT_OBJS =
# mandatory: SDL, SDL_ttf, SDL_image, SDL_mixer, bzip2
@@ -56,7 +52,16 @@
EXT_OBJS += LUAHandler$(OBJSUFFIX)
# optional: SIMD optimizing
-DEFS += -DUSE_SIMD -DUSE_SIMD_X86_SSE2
+ARCH = $(shell uname -m)
+DEFS += -DUSE_SIMD
+ifneq ($(filter i686 x86_64,$(ARCH)),)
+DEFS += -DUSE_SIMD_X86_SSE2
+else
+ifneq ($(filter armv7h armv7l,$(ARCH)),)
+DEFS += -DUSE_SIMD_ARM_NEON
+EXT_FLAGS += -mfpu=neon
+endif
+endif
# optional: multicore rendering
DEFS += -DUSE_OMP_PARALLEL
diff --color --unified --recursive --text onscripter-jh/Makefile.Linux onscripter-jh.new/Makefile.Linux
--- onscripter-jh/Makefile.Linux 2021-02-22 18:04:18.112513668 +0800
+++ onscripter-jh.new/Makefile.Linux 2021-02-22 18:05:19.409515250 +0800
@@ -57,7 +57,7 @@
ifneq ($(filter i686 x86_64,$(ARCH)),)
DEFS += -DUSE_SIMD_X86_SSE2
else
+DEFS += -DUSE_SIMD_ARM_NEON
ifneq ($(filter armv7h armv7l,$(ARCH)),)
-DEFS += -DUSE_SIMD_ARM_NEON
EXT_FLAGS += -mfpu=neon
endif
|