Merge branch 'newtree'
[Faustine.git] / interpretor / preprocessor / faust-0.9.47mr3 / examples / Makefile.qcompile
1 DEST := qdir/
2 dspsrc := $(wildcard *.dsp)
3 cppsrc := $(addprefix $(DEST), $(dspsrc:.dsp=.cpp))
4 modules := $(addprefix $(DEST), $(dspsrc:%.dsp=%.so))
5
6 ###allcpp: $(cppsrc)
7
8 allmodules: $(modules)
9
10 $(DEST)%.so: $(DEST)%.cpp
11 $(CXX) -shared -O3 $(CXXFLAGS) -Dmydsp=$(patsubst %.so,%,$(notdir $@)) $< -o $@
12
13 $(DEST)%.cpp: %.dsp
14 faust $(VEC) -a q.cpp $< -o $@
15
16 clean:
17 rm -rf $(DEST)