Add 5 example Makefiles: primitives, dilation, erosion, open, close.
[Faustine.git] / interpretor / preprocessor / faust-0.9.47mr3 / examples / faust-stk / Makefile.dssicompile
1 ARCH := dssi.cpp
2 DEST := dssidir/
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)