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:
authorAleksey Lim <alsroot@activitycentral.org>2011-02-28 16:13:13 (GMT)
committer Aleksey Lim <alsroot@activitycentral.org>2011-02-28 16:13:13 (GMT)
commita0705d8ff9b25c1172e38925ec27bb28f9e5a1e9 (patch)
treed3a20dff1d1e8d196fab33530fb21dd470addef5 /common/Util/Clooper/Makefile
parent0c8e687ce284d7599b9bfb7c578b0fc7fb32c493 (diff)
Revert "fixing simlimking build error"
This reverts commit 0c8e687ce284d7599b9bfb7c578b0fc7fb32c493. Since common/ directory will be copied to .xo in setup.py anyway.
Diffstat (limited to 'common/Util/Clooper/Makefile')
-rw-r--r--common/Util/Clooper/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/common/Util/Clooper/Makefile b/common/Util/Clooper/Makefile
new file mode 100644
index 0000000..f82d475
--- /dev/null
+++ b/common/Util/Clooper/Makefile
@@ -0,0 +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
+