Merge branch 'master' of https://scm.cri.ensmp.fr/git/Faustine
[Faustine.git] / interpretor / faust-0.9.47mr3 / examples / Makefile.vstcompile
1 dspsrc := $(wildcard *.dsp)
2 cppsrc := $(addprefix $(DEST), $(dspsrc:.dsp=.cpp))
3 appl := $(addprefix $(DEST), $(dspsrc:.dsp=$(EXT)))
4
5 # Setup this variable to access the VST SDK files
6 vst_sdk := "/Volumes/Document1/Developpement/ProjectsCVS/JackCVS/JackOSX/jackosx/jackplugins/JACK-ASinsert/VST/VSTSDK"
7
8 # Setup this variable with the location for the compiled VST plug-ins
9 install_plug_ins := "/Library/Audio/Plug-Ins/VST"
10
11 all : $(appl)
12
13
14 $(DEST)% : %.dsp
15 install -d $@
16 cp -r $(vst_sdk) $@
17 cp -r /usr/local/lib/faust/VST/* $@
18 faust $(VEC) -a $(ARCH) $< -o $@/vst-output.cpp
19 mv $@/vst-output.cpp $@/$(<:.dsp=.cpp)
20 sed -e 's/vst-output.cpp/$(<:.dsp=.cpp)/' $@/VST.xcode/project.pbxproj > $@/VST.xcode/new_project.pbxproj && mv $@/VST.xcode/new_project.pbxproj $@/VST.xcode/project.pbxproj
21 sed -e 's/XXXX/$(<:.dsp=)/' $@/Info.plist > $@/new_Info.plist && mv $@/new_Info.plist $@/Info.plist
22 xcodebuild -project $@/VST.xcode clean
23 xcodebuild -project $@/VST.xcode
24 mv $@/build/FaustVST.vst $@/build/$(<:.dsp=.vst)
25 rm -r $@/build/VST.build
26 install -d $(install_plug_ins)
27 cp -r $@/build/$(<:.dsp=.vst) $(install_plug_ins)
28
29
30 clean :
31 rm -f $(DEST)