Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/common/Util/Clooper/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'common/Util/Clooper/Makefile')
-rw-r--r--common/Util/Clooper/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/common/Util/Clooper/Makefile b/common/Util/Clooper/Makefile
index f82d475..0f28366 100644
--- a/common/Util/Clooper/Makefile
+++ b/common/Util/Clooper/Makefile
@@ -1,6 +1,14 @@
CC=gcc
-CSOUND_ARCH = $(shell arch | grep 64 >/dev/null && echo linux64 || echo linux32)
+
+ARCH_OUT = $(shell arch)
+
+CSOUND_ARCH = $(shell if [ -z "$(shell arch | grep arm)" ]; then \
+ echo $(ARCH_OUT) | grep 64 >/dev/null && echo linux64 || echo linux32; \
+ else \
+ echo $(ARCH_OUT); \
+ fi)
+
CSOUND_VERSION = $(shell csound --version 2>&1 | grep -o "Csound version [0-9]\+\.[0-9]\+" | awk '{print $$3}' | sed s/\\.//g)
LIB_NAME = $(CSOUND_ARCH)_$(CSOUND_VERSION)