diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2011-08-16 17:24:34 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2011-08-16 17:24:34 (GMT) |
commit | 9c88bd15d292e33d19798c3adaa2bbc6f4adfd5a (patch) | |
tree | 52f30e29ae0ac4022df3f470a5e8f1b55340a724 | |
parent | 1f96994d2fde31221ecf8136f75c8fa3243589b0 (diff) |
Identify ARM architecture to define the directory for the binary files
Signed-of-by: Gonzalo Odiard <gonzalo@laptop.org>
-rw-r--r-- | common/Util/Clooper/Makefile | 10 |
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) |