summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2014-06-08 12:44:03 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2014-06-08 12:44:03 +0200
commit2eef8d9b4ed084d5dbef0fc240a6a0952ea9ab4a (patch)
tree80923d037c469d577d079a4b0db3b057f8418cd7
parent40de48c603d67dd3efd4f1e42c4ac5ffa0b4c78c (diff)
Try again to make static linked DLL
-rw-r--r--vst/Makefile.am12
1 files changed, 7 insertions, 5 deletions
diff --git a/vst/Makefile.am b/vst/Makefile.am
index 13a1e5e..a895073 100644
--- a/vst/Makefile.am
+++ b/vst/Makefile.am
@@ -24,10 +24,10 @@ plugindir = $(prefix)/vst
plugin_LTLIBRARIES =
if ENABLE_VST
-plugin_LTLIBRARIES += libdrumgizmo.la
+plugin_LTLIBRARIES += libdrumgizmo_vst.la
endif
-libdrumgizmo_la_SOURCES = \
+libdrumgizmo_vst_la_SOURCES = \
$(VST_SOURCES) \
$(DRUMGIZMO_SOURCES) \
$(PLUGIN_GUI_SOURCES) \
@@ -35,9 +35,11 @@ libdrumgizmo_la_SOURCES = \
input_vst.cc \
output_vst.cc
-libdrumgizmo_la_LDFLAGS = -dynamic -no-undefined -mno-cygwin
-libdrumgizmo_la_LIBADD = $(PLUGIN_GUI_LIBS) $(DRUMGIZMO_LIBS)
-libdrumgizmo_la_CXXFLAGS = -w -I$(top_srcdir)/src -I$(top_srcdir)/plugingui \
+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 \
-I$(top_srcdir)/include $(SNDFILE_CXXFLAGS) \
$(PTHREAD_CFLAGS) $(EXPAT_CFLAGS) $(VST_CPPFLAGS) \
$(PLUGIN_GUI_CFLAGS) $(SSEFLAGS)\