/usr/share/doc/faust/examples/Makefile.w32vstcompile is in faust 0.9.46-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | ################################################################################
#
# CROSSCOMPILATION FROM LINUX OF VST PLUGINS FOR WINDOWS
# Faust Project, Y. Orlarey - Grame
#
################################################################################
#------------------------------------------------------------------------------
# 1/ VST SDK Should be installed somewhere
VST=/usr/local/lib/vstsdk2.4
#------------------------------------------------------------------------------
# 2/ mingw crosscompiler should be installed ('mingw32' package on Ubuntu)
#CROSS=i386-mingw32-
CROSS=i586-mingw32msvc-
CXX=$(CROSS)g++
CXXFLAGS=-I$(VST) -I$(VST)/public.sdk/source/vst2.x -DBUILDING_DLL -mno-cygwin
LDFLAGS=
DLLWRAP=$(CROSS)dllwrap --target=i386-mingw32 -mno-cygwin
STRIP=$(CROSS)strip
#------------------------------------------------------------------------------
# 3/ we transform all .dsp Faust codes into the corresponding dll
DSP= $(wildcard *.dsp)
DLL= $(addprefix $(DEST), $(DSP:.dsp=.dll))
##PLUGIN= $(SRC:.dsp=)
##DLL=$(PLUGIN).dll
#
all : $(DLL)
# how to generate the cpp file from the faust source
$(DEST)%.cpp : %.dsp
faust -a vst2p4.cpp $< -o $@
# we need to create the .def file needed to generate the .dll
$(DEST)%.def :
@echo LIBRARY $(@:.def=) > $@
@echo DESCRIPTION \'Faust generated VST plugin\' >> $@
@echo EXPORTS main=VSTPluginMain >> $@
$(DEST)%.dll: $(DEST)%.o $(DEST)%.def $(DEST)audioeffect.o $(DEST)audioeffectx.o $(DEST)vstplugmain.o
$(DLLWRAP) --driver-name $(CXX) --def $(@:.dll=.def) $^ -o $@
$(STRIP) $@
$(DEST)audioeffect.o: $(VST)/public.sdk/source/vst2.x/audioeffect.cpp
$(CXX) $(CXXFLAGS) -c $< -o $@
$(DEST)audioeffectx.o: $(VST)/public.sdk/source/vst2.x/audioeffectx.cpp
$(CXX) $(CXXFLAGS) -c $< -o $@
$(DEST)vstplugmain.o: $(VST)/public.sdk/source/vst2.x/vstplugmain.cpp
$(CXX) $(CXXFLAGS) -c $< -o $@
|