From 9c88bd15d292e33d19798c3adaa2bbc6f4adfd5a Mon Sep 17 00:00:00 2001 From: Gonzalo Odiard Date: Tue, 16 Aug 2011 17:24:34 +0000 Subject: Identify ARM architecture to define the directory for the binary files Signed-of-by: Gonzalo Odiard --- (limited to 'common/Util') 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) -- cgit v0.9.1