Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/common/Util/Clooper/Makefile
blob: f82d475e51e3f662f6f1481fb15487e8d1d8789e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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