Rename interpretor to interpreter.
[Faustine.git] / interpreter / preprocessor / faust-0.9.47mr3 / examples / Makefile.qcompile
diff --git a/interpreter/preprocessor/faust-0.9.47mr3/examples/Makefile.qcompile b/interpreter/preprocessor/faust-0.9.47mr3/examples/Makefile.qcompile
new file mode 100644 (file)
index 0000000..9a12af2
--- /dev/null
@@ -0,0 +1,17 @@
+DEST   := qdir/
+dspsrc  := $(wildcard *.dsp)
+cppsrc  := $(addprefix $(DEST), $(dspsrc:.dsp=.cpp))
+modules        := $(addprefix $(DEST),  $(dspsrc:%.dsp=%.so))
+
+###allcpp: $(cppsrc)
+
+allmodules: $(modules)
+
+$(DEST)%.so: $(DEST)%.cpp
+       $(CXX) -shared -O3 $(CXXFLAGS) -Dmydsp=$(patsubst %.so,%,$(notdir $@)) $< -o $@
+
+$(DEST)%.cpp: %.dsp 
+       faust $(VEC) -a q.cpp $< -o $@
+
+clean:
+       rm -rf $(DEST)