X-Git-Url: https://scm.cri.ensmp.fr/git/Faustine.git/blobdiff_plain/c7f552fd8888da2f0d8cfb228fe0f28d3df3a12c..b4b6f2ea75b9f0f3ca918f5b84016610bf7a4d4f:/interpretor/preprocessor/faust-0.9.47mr3/examples/rewriting/Makefile diff --git a/interpretor/preprocessor/faust-0.9.47mr3/examples/rewriting/Makefile b/interpretor/preprocessor/faust-0.9.47mr3/examples/rewriting/Makefile new file mode 100644 index 0000000..5c8562f --- /dev/null +++ b/interpretor/preprocessor/faust-0.9.47mr3/examples/rewriting/Makefile @@ -0,0 +1,21 @@ + +dspsrc := $(wildcard *.dsp) +cppsrc := $(dspsrc:.dsp=.cpp) +plugins := $(dspsrc:%.dsp=%~.pd_linux) +svg := $(dspsrc:.dsp=-svg) +xml := $(dspsrc:.dsp=.dsp.xml) +pd := $(dspsrc:.dsp=.pd) + +all: $(plugins) $(svg) + +clean: + rm -Rf *~ $(cppsrc) $(plugins) $(svg) $(xml) + +%.cpp %.dsp.xml %-svg: %.dsp + faust -xml -svg -sd -a puredata.cpp $< -o $@ + +%~.pd_linux: %.cpp + g++ -shared -fPIC -Dmydsp=$(@:%~.pd_linux=%) -o $@ $< + +%.pd: %.dsp.xml + faust2pd -s $<