diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-03-16 20:09:27 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-03-16 20:09:27 +0100 |
commit | 82b5f07386deef059e5ec24e38c4b3f1c964437d (patch) | |
tree | 9a73d6e4fbf68fca8d3c0d2f4016386e1c4d419d /plugin/Makefile.am | |
parent | 03474227b4752c408f6e086a9e5a83364fe39d9f (diff) |
Build cleanup and windows build add.
Diffstat (limited to 'plugin/Makefile.am')
-rw-r--r-- | plugin/Makefile.am | 37 |
1 files changed, 16 insertions, 21 deletions
diff --git a/plugin/Makefile.am b/plugin/Makefile.am index 4b6ee37..1dab326 100644 --- a/plugin/Makefile.am +++ b/plugin/Makefile.am @@ -1,6 +1,7 @@ include $(top_srcdir)/plugingui/Makefile.am.plugingui include $(top_srcdir)/src/Makefile.am.drumgizmo + ####### # LV2 ### @@ -11,13 +12,8 @@ lv2plugin_DATA = manifest.ttl drumgizmo.ttl endif drumgizmo_la_CXXFLAGS = -DLV2 -DLV2_PLUGIN_URI=\"http://drumgizmo.org/lv2\" \ - -I$(top_srcdir)/plugin/plugingizmo \ - -I$(top_srcdir)/src \ - -I$(top_srcdir)/plugingui \ - -I$(top_srcdir)/include $(SNDFILE_CXXFLAGS) \ - $(PTHREAD_CFLAGS) $(EXPAT_CFLAGS) \ - $(PLUGIN_GUI_CFLAGS) $(SSEFLAGS) $(ZITA_CPPFLAGS) \ - $(SAMPLERATE_CFLAGS) + -I$(top_srcdir)/plugin/plugingizmo $(DRUMGIZMO_CPPFLAGS) \ + $(PLUGIN_GUI_CPPFLAGS) drumgizmo_la_SOURCES = \ $(DRUMGIZMO_SOURCES) \ @@ -26,7 +22,7 @@ drumgizmo_la_SOURCES = \ $(top_srcdir)/plugin/plugingizmo/pluginlv2.cc \ drumgizmo_plugin.cc -drumgizmo_la_LDFLAGS = -module -avoid-version +drumgizmo_la_LDFLAGS = -shared -module -avoid-version drumgizmo_la_LIBADD = $(LV2_LIBS) $(PLUGIN_GUI_LIBS) $(DRUMGIZMO_LIBS) @@ -34,26 +30,25 @@ drumgizmo_la_LIBADD = $(LV2_LIBS) $(PLUGIN_GUI_LIBS) $(DRUMGIZMO_LIBS) # VST ### if ENABLE_VST -vstplugindir = $(prefix)/lib/vst +vstplugindir = $(libdir)/vst vstplugin_LTLIBRARIES = drumgizmo_vst.la +vstplugin_DATA = +noinst_LTLIBRARIES = libvstsdk.la endif VST_BASE = ${VST_SOURCE_PATH} VST_SRC_BASE = ${VST_BASE}/public.sdk/source/vst2.x/ -# hack to compile vst sources without -Wall -Werror -nodist_drumgizmo_vst_la_SOURCES = \ +# Hack to compile vst sources without -Wall -Werror +libvstsdk_la_CXXFLAGS = -w $(VST_CPPFLAGS) +libvstsdk_la_SOURCES = \ ${VST_SRC_BASE}/audioeffectx.cpp \ ${VST_SRC_BASE}/audioeffect.cpp \ ${VST_SRC_BASE}/vstplugmain.cpp drumgizmo_vst_la_CXXFLAGS = -DVST \ - -I$(top_srcdir)/plugin/plugingizmo \ - -I$(top_srcdir)/src -I$(top_srcdir)/plugingui \ - -I$(top_srcdir)/include $(SNDFILE_CXXFLAGS) \ - $(EXPAT_CFLAGS) $(VST_CPPFLAGS) \ - $(PLUGIN_GUI_CFLAGS) $(SSEFLAGS)\ - $(SAMPLERATE_CFLAGS) + -I$(top_srcdir)/plugin/plugingizmo $(DRUMGIZMO_CPPFLAGS) \ + $(PLUGIN_GUI_CPPFLAGS) $(VST_CPPFLAGS) drumgizmo_vst_la_SOURCES = \ $(DRUMGIZMO_SOURCES) \ @@ -63,12 +58,12 @@ drumgizmo_vst_la_SOURCES = \ drumgizmo_plugin.cc drumgizmo_vst_la_LDFLAGS = -shared -module -avoid-version -drumgizmo_vst_la_LIBADD = $(PLUGIN_GUI_LIBS) $(DRUMGIZMO_LIBS) - - - +drumgizmo_vst_la_LIBADD = libvstsdk.la $(PLUGIN_GUI_LIBS) $(DRUMGIZMO_LIBS) +install-exec-hook: + rm -f $(DESTDIR)$(libdir)/lv2/drumgizmo.lv2/drumgizmo.la + rm -f $(DESTDIR)$(libdir)/vst/drumgizmo_vst.la EXTRA_DIST = \ |