diff options
author | Aleksey Lim <alsroot@member.fsf.org> | 2009-03-15 03:43:42 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@member.fsf.org> | 2009-03-15 03:43:42 (GMT) |
commit | 8087c22d97553eb90e45b9e9af1f211b1c521c5e (patch) | |
tree | 2a583966cbda030764a63cf415ad16563e717adc /common/Util/Clooper/Makefile | |
parent | 0fb85d883d529b1dbdc6932b7efa79cc01c9f1de (diff) |
Binary blobs rock&roll
Diffstat (limited to 'common/Util/Clooper/Makefile')
-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 c929fed..f82d475 100644 --- a/common/Util/Clooper/Makefile +++ b/common/Util/Clooper/Makefile @@ -1,15 +1,23 @@ CC=gcc +CSOUND_ARCH = $(shell arch | grep 64 >/dev/null && echo linux64 || echo linux32) +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) + CXXFLAGS = $(shell python-config --cflags) \ -Wall -Werror -fPIC -O2 -finline LDFLAGS+= $(python-config --libs) \ -lasound -lcsound all : aclient.so + rm -rf $(LIB_NAME) + mkdir $(LIB_NAME) + mv aclient.so $(LIB_NAME)/ + touch $(LIB_NAME)/__init__.py aclient.so : aclient.cpp audio.cpp g++ $(CXXFLAGS) -shared -o $@ $< $(LDFLAGS) clean : - rm aclient.so + rm aclient*.so |