summarylogtreecommitdiffstats
path: root/01-simd-lua51.patch
blob: 6c15e10cbb96527d2c48cc69009b8853d4f7986d (plain)
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
diff --git a/Makefile.Linux b/Makefile.Linux
index 968b868..af017b5 100644
--- a/Makefile.Linux
+++ b/Makefile.Linux
@@ -51,12 +51,19 @@ LIBS += -logg -lvorbis -lvorbisfile
 
 # optional: lua
 DEFS += -DUSE_LUA
-INCS += -I/usr/include/lua
-LIBS += -llua
+INCS += -I/usr/include/lua5.1
+LIBS += -llua5.1
 EXT_OBJS += LUAHandler$(OBJSUFFIX)
 
 # optional: SIMD optimizing
-DEFS += -DUSE_SIMD -DUSE_SIMD_X86_SSE2
+ifneq ($(filter i686 x86_64,$(ARCH)),)
+    DEFS += -DUSE_SIMD -DUSE_SIMD_X86_SSE2
+else
+    DEFS += -DUSE_SIMD_ARM_NEON
+    ifneq ($(filter armv7h armv7l,$(ARCH)),)
+	    EXT_FLAGS += -mfpu=neon
+    endif
+endif
 
 # optional: multicore rendering
 DEFS += -DUSE_OMP_PARALLEL