Add the output wave files into track list
[Faustine.git] / interpretor / faust-0.9.47mr3 / examples / Makefile.ladspacompile
1 ARCH := ladspa.cpp
2 DEST := ladspadir/
3 dspsrc := $(wildcard *.dsp)
4 cppsrc := $(addprefix $(DEST), $(dspsrc:.dsp=.cpp))
5 modules := $(addprefix $(DEST), $(dspsrc:%.dsp=%.so))
6
7 ###allcpp: $(cppsrc)
8
9 allmodules: $(modules)
10
11 ifeq ($(system), Darwin)
12 SHAREDFLAG := -bundle
13 else
14 SHAREDFLAG := -shared
15 endif
16
17 $(DEST)%.so: $(DEST)%.cpp
18 $(CXX) -I. -Wall $(LIB) -fPIC -DPIC $(SHAREDFLAG) $(CXXFLAGS) -Dmydsp=$(patsubst %.so,%,$(notdir $@)) $< -o $@
19
20 $(DEST)%.cpp: %.dsp
21 faust $(VEC) -a $(ARCH) $< -o $@
22
23 clean:
24 rm -rf $(DEST)