blob: 87caf59a5841f05b5939d85b7c75cfc180061897 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
CC=gcc
CFLAGS+=-g -Wall -Werror -fPIC -O3 -finline
PYTHON=/usr/include/python2.4
all : _SClient.so cmd_csound
%.o: %.c %.h
$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
%.o: %.c
$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
%.o: %.cpp %.h
$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
clean :
rm -f *.o _ttest.so _SClient.so
cmd_csound: cmd_csound.cpp SoundClient.o
g++ -o $@ $^ -lcsound
SoundClient_wrap.c: SoundClient.i SoundClient.h
swig -python $<
SoundClient_wrap.o: SoundClient_wrap.c
gcc -fPIC -I$(PYTHON) -o $@ -c $<
_SClient.so : SoundClient_wrap.o SoundClient.o
g++ -shared -o $@ $^ -lcsound
ttest_wrap.c: ttest.i
swig -python ttest.i
ttest_wrap.o: ttest_wrap.c
gcc -fPIC -I$(PYTHON) -o $@ -c $<
_ttest.so : ttest_wrap.o ttest.o
gcc -shared -o $@ $^
|