summaryrefslogtreecommitdiff
path: root/vst/Makefile.am
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2014-06-08 13:41:24 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2014-06-08 13:41:24 +0200
commite20923e0559c1e6e132664db8213a2e3dc4deb44 (patch)
tree3ba0d1dc18ccd14c01605d25fe638f448cc7b981 /vst/Makefile.am
parent2eef8d9b4ed084d5dbef0fc240a6a0952ea9ab4a (diff)
Compile engine and gui as static library and finally link with VST code.
Diffstat (limited to 'vst/Makefile.am')
-rw-r--r--vst/Makefile.am28
1 files changed, 17 insertions, 11 deletions
diff --git a/vst/Makefile.am b/vst/Makefile.am
index a895073..894cb07 100644
--- a/vst/Makefile.am
+++ b/vst/Makefile.am
@@ -25,23 +25,29 @@ plugin_LTLIBRARIES =
if ENABLE_VST
plugin_LTLIBRARIES += libdrumgizmo_vst.la
+noinst_LTLIBRARIES = libdg.la
endif
-libdrumgizmo_vst_la_SOURCES = \
- $(VST_SOURCES) \
+libdg_la_SOURCES = \
$(DRUMGIZMO_SOURCES) \
- $(PLUGIN_GUI_SOURCES) \
- drumgizmo_vst.cc \
- input_vst.cc \
- output_vst.cc
+ $(PLUGIN_GUI_SOURCES)
-libdrumgizmo_vst_la_LDFLAGS = -static -static-libgcc -no-undefined \
- -shared -o drumgizmo_vst.dll -Wl,--out-implib,libdrumgizmo_vst.a
-libdrumgizmo_vst_la_LIBADD = $(PLUGIN_GUI_LIBS) $(DRUMGIZMO_LIBS)
-libdrumgizmo_vst_la_CXXFLAGS = -w -I$(top_srcdir)/src \
- -I$(top_srcdir)/plugingui \
+libdg_la_LDFLAGS = -static
+libdg_la_LIBADD = $(PLUGIN_GUI_LIBS) $(DRUMGIZMO_LIBS)
+libdg_la_CXXFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/plugingui \
-I$(top_srcdir)/include $(SNDFILE_CXXFLAGS) \
$(PTHREAD_CFLAGS) $(EXPAT_CFLAGS) $(VST_CPPFLAGS) \
$(PLUGIN_GUI_CFLAGS) $(SSEFLAGS)\
-DUSE_THREAD $(SAMPLERATE_CFLAGS)
+libdrumgizmo_vst_la_SOURCES = \
+ $(VST_SOURCES) \
+ drumgizmo_vst.cc \
+ input_vst.cc \
+ output_vst.cc
+
+libdrumgizmo_vst_la_LDFLAGS = -static-libgcc -no-undefined -shared
+libdrumgizmo_vst_la_LIBADD =
+libdrumgizmo_vst_la_CXXFLAGS = -w $(VST_CPPFLAGS) .libs/libdg.a \
+ -I$(top_srcdir)/src -I$(top_srcdir)/include -I$(top_srcdir)/plugingui
+