# -*- Makefile -*- VST_BASE=@VST_SOURCE_PATH@ VST_SRC_BASE = ${VST_BASE}/public.sdk/source/vst2.x/ VST_SRC = \ ${VST_SRC_BASE}/audioeffectx.cpp \ ${VST_SRC_BASE}/audioeffect.cpp \ ${VST_SRC_BASE}/vstplugmain.cpp VST_CFLAGS=-I$(VST_BASE) DG_SRC = \ @top_srcdir@/pugixml/src/pugixml.cpp \ @top_srcdir@/src/zrwrapper.cc \ @top_srcdir@/zita-resampler/libs/resampler.cc \ @top_srcdir@/zita-resampler/libs/resampler-table.cc \ @top_srcdir@/src/audiocachefile.cc \ @top_srcdir@/src/audiocache.cc \ @top_srcdir@/src/audiocacheeventhandler.cc \ @top_srcdir@/src/audiocacheidmanager.cc \ @top_srcdir@/src/audioinputenginemidi.cc \ @top_srcdir@/src/audiofile.cc \ @top_srcdir@/src/channel.cc \ @top_srcdir@/src/channelmixer.cc \ @top_srcdir@/src/configfile.cc \ @top_srcdir@/src/configparser.cc \ @top_srcdir@/src/dgxmlparser.cc \ @top_srcdir@/src/directory.cc \ @top_srcdir@/src/domloader.cc \ @top_srcdir@/src/drumgizmo.cc \ @top_srcdir@/src/drumgizmoconf.cc \ @top_srcdir@/src/drumkit.cc \ @top_srcdir@/src/drumkitloader.cc \ @top_srcdir@/src/events.cc \ @top_srcdir@/src/events_ds.cc \ @top_srcdir@/src/inputprocessor.cc \ @top_srcdir@/src/instrument.cc \ @top_srcdir@/src/latencyfilter.cc \ @top_srcdir@/src/midimapparser.cc \ @top_srcdir@/src/midimapper.cc \ @top_srcdir@/src/path.cc \ @top_srcdir@/src/powerlist.cc \ @top_srcdir@/src/curvemap.cc \ @top_srcdir@/src/powermapfilter.cc \ @top_srcdir@/src/random.cc \ @top_srcdir@/src/sample.cc \ @top_srcdir@/src/sample_selection.cc \ @top_srcdir@/src/sem.cc \ @top_srcdir@/src/staminafilter.cc \ @top_srcdir@/src/thread.cc \ @top_srcdir@/src/translation.cc \ @top_srcdir@/src/velocityfilter.cc \ @top_srcdir@/src/versionstr.cc DG_CFLAGS = -I@top_srcdir@ -I@top_srcdir@/src \ -I@top_srcdir@/zita-resampler/libs \ -I@top_srcdir@/pugixml/src -D_USE_MATH_DEFINES \ -I@top_srcdir@/plugin/plugingizmo -DVST -DSSE -msse -msse2 # -DDISABLE_HUGIN GUI_SRC = \ @top_srcdir@/plugingui/abouttab.cc \ @top_srcdir@/plugingui/bleedcontrolframecontent.cc \ @top_srcdir@/plugingui/diskstreamingframecontent.cc \ @top_srcdir@/plugingui/drumkitframecontent.cc \ @top_srcdir@/plugingui/drumkittab.cc \ @top_srcdir@/plugingui/filebrowser.cc \ @top_srcdir@/plugingui/humaniservisualiser.cc \ @top_srcdir@/plugingui/humanizerframecontent.cc \ @top_srcdir@/plugingui/maintab.cc \ @top_srcdir@/plugingui/mainwindow.cc \ @top_srcdir@/plugingui/pluginconfig.cc \ @top_srcdir@/plugingui/powerwidget.cc \ @top_srcdir@/plugingui/resamplingframecontent.cc \ @top_srcdir@/plugingui/sampleselectionframecontent.cc \ @top_srcdir@/plugingui/statusframecontent.cc \ @top_srcdir@/plugingui/timingframecontent.cc \ @top_srcdir@/plugingui/visualizerframecontent.cc \ @top_srcdir@/plugingui/voicelimitframecontent.cc \ \ @top_srcdir@/dggui/button.cc \ @top_srcdir@/dggui/button_base.cc \ @top_srcdir@/dggui/checkbox.cc \ @top_srcdir@/dggui/colour.cc \ @top_srcdir@/dggui/combobox.cc \ @top_srcdir@/dggui/dialog.cc \ @top_srcdir@/dggui/eventhandler.cc \ @top_srcdir@/dggui/font.cc \ @top_srcdir@/dggui/frame.cc \ @top_srcdir@/dggui/helpbutton.cc \ @top_srcdir@/dggui/image.cc \ @top_srcdir@/dggui/imagecache.cc \ @top_srcdir@/dggui/knob.cc \ @top_srcdir@/dggui/label.cc \ @top_srcdir@/dggui/layout.cc \ @top_srcdir@/dggui/led.cc \ @top_srcdir@/dggui/lineedit.cc \ @top_srcdir@/dggui/listbox.cc \ @top_srcdir@/dggui/listboxbasic.cc \ @top_srcdir@/dggui/listboxthin.cc \ @top_srcdir@/dggui/painter.cc \ @top_srcdir@/dggui/pixelbuffer.cc \ @top_srcdir@/dggui/powerbutton.cc \ @top_srcdir@/dggui/progressbar.cc \ @top_srcdir@/dggui/rc_data.cc \ @top_srcdir@/dggui/resource.cc \ @top_srcdir@/dggui/scrollbar.cc \ @top_srcdir@/dggui/slider.cc \ @top_srcdir@/dggui/stackedwidget.cc \ @top_srcdir@/dggui/tabbutton.cc \ @top_srcdir@/dggui/tabwidget.cc \ @top_srcdir@/dggui/textedit.cc \ @top_srcdir@/dggui/texture.cc \ @top_srcdir@/dggui/texturedbox.cc \ @top_srcdir@/dggui/toggle.cc \ @top_srcdir@/dggui/tooltip.cc \ @top_srcdir@/dggui/uitranslation.cc \ @top_srcdir@/dggui/utf8.cc \ @top_srcdir@/dggui/verticalline.cc \ @top_srcdir@/dggui/widget.cc \ @top_srcdir@/dggui/window.cc \ \ @top_srcdir@/dggui/lodepng/lodepng.cpp \ @top_srcdir@/dggui/nativewindow_win32.cc GUI_CPPFLAGS=-I@top_srcdir@/plugingui/ -I@top_srcdir@/ -DUSE_THREAD @GUI_CPPFLAGS@ GUI_LIBS=@GUI_LIBS@ DBG_SRC = \ @top_srcdir@/hugin/hugin.c \ @top_srcdir@/hugin/hugin_syslog.c DBG_CFLAGS=-I../hugin -DWITH_HUG_SYSLOG -DWITH_HUG_MUTEX # -DDISABLE_HUGIN # # http://old.nabble.com/using-VC%2B%2B-.lib-with-mingw-td23151303.html # Given `-lfoo', the win32 build of GNU ld will search for libfoo.a and foo.lib # SNDFILE_CFLAGS=@SNDFILE_CFLAGS@ SNDFILE_LIBS=@SNDFILE_LIBS@ CXXFLAGS += @CXXFLAGS@ -fvisibility=hidden CFLAGS += @CFLAGS@ -fvisibility=hidden LDFLAGS += @LDFLAGS@ SRC = \ @top_srcdir@/plugin/plugingizmo/midievent.cc \ @top_srcdir@/plugin/plugingizmo/pluginvst.cc \ drumgizmo_plugin.cc RES = \ @top_srcdir@/plugingui/resources/bg.png \ @top_srcdir@/plugingui/resources/bypass_button.png \ @top_srcdir@/plugingui/resources/font.png \ @top_srcdir@/plugingui/resources/fontemboss.png \ @top_srcdir@/plugingui/resources/help_button.png \ @top_srcdir@/plugingui/resources/knob.png \ @top_srcdir@/plugingui/resources/logo.png \ @top_srcdir@/plugingui/resources/png_error \ @top_srcdir@/plugingui/resources/progress.png \ @top_srcdir@/plugingui/resources/pushbutton.png \ @top_srcdir@/plugingui/resources/sidebar.png \ @top_srcdir@/plugingui/resources/slider.png \ @top_srcdir@/plugingui/resources/stddev_horizontal.png \ @top_srcdir@/plugingui/resources/stddev_horizontal_disabled.png \ @top_srcdir@/plugingui/resources/stddev_vertical.png \ @top_srcdir@/plugingui/resources/stddev_vertical_disabled.png \ @top_srcdir@/plugingui/resources/switch_back_off.png \ @top_srcdir@/plugingui/resources/switch_back_on.png \ @top_srcdir@/plugingui/resources/switch_front.png \ @top_srcdir@/plugingui/resources/tab.png \ @top_srcdir@/plugingui/resources/thinlistbox.png \ @top_srcdir@/plugingui/resources/topbar.png \ @top_srcdir@/plugingui/resources/toplogo.png \ @top_srcdir@/plugingui/resources/vertline.png \ @top_srcdir@/plugingui/resources/widget.png \ @top_srcdir@/plugingui/../ABOUT \ @top_srcdir@/plugingui/../ABOUT.fr \ @top_srcdir@/plugingui/../AUTHORS \ @top_srcdir@/plugingui/../AUTHORS.fr \ @top_srcdir@/plugingui/../BUGS \ @top_srcdir@/plugingui/../BUGS.fr \ @top_srcdir@/plugingui/../COPYING NLS_RES = \ @top_builddir@/plugingui/locale/da.mo \ @top_builddir@/plugingui/locale/fr.mo all: (cd @top_srcdir@/plugingui/locale; msgfmt -c -v -o da.mo da.po) (cd @top_srcdir@/plugingui/locale; msgfmt -c -v -o fr.mo fr.po) g++ -I@top_srcdir@/getoptpp @top_srcdir@/dggui/rcgentool.cc -o @top_srcdir@/dggui/rcgen @top_srcdir@/dggui/rcgen -s @top_srcdir@/dggui/ -s @top_builddir@/plugingui/ $(RES) $(NLS_RES) -o @top_srcdir@/plugingui/resource_data.cc g++ $(CXXFLAGS) -I@top_srcdir@ @top_srcdir@/plugingui/resource_data.cc -c gcc $(CFLAGS) $(DBG_CFLAGS) @top_srcdir@/hugin/hugin.c -c gcc $(CFLAGS) $(DBG_CFLAGS) @top_srcdir@/hugin/hugin_syslog.c -c g++ $(LDFLAGS) $(CXXFLAGS) -std=c++11 -static -static-libgcc -O2 -g -Wall $(DBG_CFLAGS) $(DG_CFLAGS) $(DG_LIBS) $(VST_CFLAGS) hugin.o hugin_syslog.o resource_data.o $(DG_SRC) $(VST_SRC) ${SRC} ${GUI_SRC} ${GUI_CPPFLAGS} $(GUI_LIBS) $(SNDFILE_CFLAGS) $(SNDFILE_LIBS) -latomic -shared -Wl,-retain-symbols-file -Wl,drumgizmo_vst.sym -o drumgizmo_vst.dll -Wl,--out-implib,libdrumgizmo_vst.a clean: del -f drumgizmo_vst.dll libdrumgizmo_vst.a