--- src/Makefile.am.orig 2015-01-24 18:21:15 UTC +++ src/Makefile.am @@ -5,14 +5,14 @@ SUBDIRS = calf lv2dir = $(with_lv2_dir)/calf.lv2 bin_PROGRAMS = -noinst_LTLIBRARIES = +noinst_LTLIBRARIES = libcalf.la noinst_PROGRAMS = calfbenchmark -pkglib_LTLIBRARIES = calf.la +lv2_LTLIBRARIES = calf.la AM_CPPFLAGS = -I$(top_srcdir) -I$(srcdir) # TODO: Remove -finline flags is clang is used -AM_CXXFLAGS = -ffast-math -finline-limit=80 $(FLUIDSYNTH_DEPS_CFLAGS) $(LV2_DEPS_CFLAGS) +AM_CXXFLAGS = -ffast-math $(FLUIDSYNTH_DEPS_CFLAGS) $(LV2_DEPS_CFLAGS) if USE_GUI AM_CXXFLAGS += $(GUI_DEPS_CFLAGS) @@ -22,7 +22,7 @@ AM_CXXFLAGS += $(JACK_DEPS_CFLAGS) noinst_LTLIBRARIES += libcalfgui.la bin_PROGRAMS += calfjackhost calfjackhost_SOURCES = gtk_session_env.cpp host_session.cpp jack_client.cpp jackhost.cpp gtk_main_win.cpp connector.cpp session_mgr.cpp -calfjackhost_LDADD = libcalfgui.la calf.la $(JACK_DEPS_LIBS) $(GUI_DEPS_LIBS) $(FLUIDSYNTH_DEPS_LIBS) +calfjackhost_LDADD = libcalfgui.la libcalf.la $(JACK_DEPS_LIBS) $(GUI_DEPS_LIBS) $(FLUIDSYNTH_DEPS_LIBS) if USE_LASH AM_CXXFLAGS += $(LASH_DEPS_CFLAGS) calfjackhost_LDADD += $(LASH_DEPS_LIBS) @@ -32,43 +32,43 @@ endif AM_CXXFLAGS += $(GLIB_DEPS_CFLAGS) noinst_PROGRAMS += calfmakerdf calfmakerdf_SOURCES = makerdf.cpp -calfmakerdf_LDADD = calf.la +calfmakerdf_LDADD = libcalf.la calfbenchmark_SOURCES = benchmark.cpp -calfbenchmark_LDADD = calf.la +calfbenchmark_LDADD = libcalf.la -calf_la_SOURCES = audio_fx.cpp analyzer.cpp metadata.cpp modules_tools.cpp modules_delay.cpp modules_comp.cpp modules_limit.cpp modules_dist.cpp modules_filter.cpp modules_mod.cpp fluidsynth.cpp giface.cpp monosynth.cpp organ.cpp osctl.cpp plugin.cpp preset.cpp synth.cpp utils.cpp wavetable.cpp modmatrix.cpp -calf_la_LIBADD = $(FLUIDSYNTH_DEPS_LIBS) $(GLIB_DEPS_LIBS) +libcalf_la_SOURCES = audio_fx.cpp analyzer.cpp metadata.cpp modules_tools.cpp modules_delay.cpp modules_comp.cpp modules_limit.cpp modules_dist.cpp modules_filter.cpp modules_mod.cpp fluidsynth.cpp giface.cpp monosynth.cpp organ.cpp osctl.cpp plugin.cpp preset.cpp synth.cpp utils.cpp wavetable.cpp modmatrix.cpp +libcalf_la_LIBADD = $(FLUIDSYNTH_DEPS_LIBS) $(GLIB_DEPS_LIBS) -lexpat +calf_la_SOURCES = $(libcalf_la_SOURCES) +calf_la_LIBADD = $(libcalf_la_LIBADD) if USE_DEBUG -calf_la_LDFLAGS = -rpath $(pkglibdir) -avoid-version -module -lexpat -disable-static +calf_la_LDFLAGS = -avoid-version -module else -calf_la_LDFLAGS = -rpath $(pkglibdir) -avoid-version -module -lexpat -disable-static -export-symbols-regex "lv2_descriptor" +calf_la_LDFLAGS = -avoid-version -module -export-symbols-regex "lv2_descriptor" endif if USE_LV2_GUI # Version WITH out-of-process GUI - links GTK+, UI controls etc. -noinst_LTLIBRARIES += calflv2gui.la +lv2_LTLIBRARIES += calflv2gui.la calflv2gui_la_SOURCES = gui.cpp gui_config.cpp gui_controls.cpp ctl_curve.cpp ctl_keyboard.cpp ctl_knob.cpp ctl_led.cpp ctl_tube.cpp ctl_vumeter.cpp custom_ctl.cpp metadata.cpp giface.cpp plugin_gui_window.cpp preset.cpp preset_gui.cpp lv2gui.cpp osctl.cpp utils.cpp ctl_linegraph.cpp +calflv2gui_la_LIBADD = -lexpat $(GUI_DEPS_LIBS) if USE_DEBUG -calflv2gui_la_LDFLAGS = -rpath $(lv2dir) -avoid-version -module -lexpat $(GUI_DEPS_LIBS) -disable-static +calflv2gui_la_LDFLAGS = -avoid-version -module else -calflv2gui_la_LDFLAGS = -rpath $(lv2dir) -avoid-version -module -lexpat -export-symbols-regex "lv2ui_descriptor" $(GUI_DEPS_LIBS) -disable-static +calflv2gui_la_LDFLAGS = -avoid-version -module -export-symbols-regex "lv2ui_descriptor" endif endif if USE_GUI libcalfgui_la_SOURCES = ctl_curve.cpp ctl_keyboard.cpp ctl_knob.cpp ctl_led.cpp ctl_tube.cpp ctl_vumeter.cpp custom_ctl.cpp gui.cpp gui_config.cpp gui_controls.cpp osctl.cpp plugin_gui_window.cpp preset_gui.cpp utils.cpp ctl_linegraph.cpp -libcalfgui_la_LDFLAGS = -static -disable-shared -lexpat +libcalfgui_la_LIBADD = -lexpat endif -clean-local: - $(RM) -f calfjackhost *~ - install-data-hook: install -d -m 755 $(DESTDIR)$(pkgdatadir) install -c -m 644 $(top_srcdir)/presets.xml $(DESTDIR)$(pkgdatadir) @@ -76,11 +76,6 @@ if USE_GUI install -c -m 644 $(top_srcdir)/calf-gui.xml $(DESTDIR)$(pkgdatadir) endif if USE_LV2 - install -d -m 755 $(DESTDIR)$(lv2dir) - ln -sf $(pkglibdir)/calf.so $(DESTDIR)$(lv2dir)/calf.so -if USE_LV2_GUI - install -c -m 755 $(top_builddir)/src/.libs/calflv2gui.so $(DESTDIR)$(lv2dir)/calflv2gui.so -endif rm -f $(DESTDIR)$(lv2dir)/*.ttl $(top_builddir)/src/calfmakerdf -m ttl -p $(DESTDIR)$(lv2dir)/ -d $(DESTDIR)$(pkgdatadir)/ if USE_SORDI @@ -91,9 +86,6 @@ endif #remove calf.so, calf.rdf and - if empty - ladspa dir in usr/share uninstall-hook: if USE_LV2 -if USE_LV2_GUI - rm -f $(DESTDIR)$(lv2dir)/calflv2gui.so -endif rm -f $(DESTDIR)$(lv2dir)/calf.so rm -f $(DESTDIR)$(lv2dir)/*.ttl rmdir -p $(DESTDIR)$(lv2dir) || true