Examples' Makefiles are completed and tested.
[Faustine.git] / interpretor / preprocessor / faust-0.9.47mr3 / examples / rewriting / Makefile
1
2 dspsrc := $(wildcard *.dsp)
3 cppsrc := $(dspsrc:.dsp=.cpp)
4 plugins := $(dspsrc:%.dsp=%~.pd_linux)
5 svg := $(dspsrc:.dsp=-svg)
6 xml := $(dspsrc:.dsp=.dsp.xml)
7 pd := $(dspsrc:.dsp=.pd)
8
9 all: $(plugins) $(svg)
10
11 clean:
12 rm -Rf *~ $(cppsrc) $(plugins) $(svg) $(xml)
13
14 %.cpp %.dsp.xml %-svg: %.dsp
15 faust -xml -svg -sd -a puredata.cpp $< -o $@
16
17 %~.pd_linux: %.cpp
18 g++ -shared -fPIC -Dmydsp=$(@:%~.pd_linux=%) -o $@ $<
19
20 %.pd: %.dsp.xml
21 faust2pd -s $<