Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/common/Util
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2011-08-16 17:24:34 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2011-08-16 17:24:34 (GMT)
commit9c88bd15d292e33d19798c3adaa2bbc6f4adfd5a (patch)
tree52f30e29ae0ac4022df3f470a5e8f1b55340a724 /common/Util
parent1f96994d2fde31221ecf8136f75c8fa3243589b0 (diff)
Identify ARM architecture to define the directory for the binary files
Signed-of-by: Gonzalo Odiard <gonzalo@laptop.org>
Diffstat (limited to 'common/Util')
-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)