Vocoder: bugfixes
[calf.git] / src / Makefile.am
blob8a78cf733ee28427dfb83ef79f4fd0301dcb93f4
1 # Calf DSP library - example modules
3 SUBDIRS = calf
5 lv2dir = $(with_lv2_dir)/calf.lv2
7 bin_PROGRAMS = 
8 noinst_LTLIBRARIES =
10 noinst_PROGRAMS = calfbenchmark
11 pkglib_LTLIBRARIES = calf.la
13 AM_CPPFLAGS = -I$(top_srcdir) -I$(srcdir)
14 AM_CXXFLAGS = -ffast-math -finline-limit=80 $(FLUIDSYNTH_DEPS_CFLAGS)
16 if USE_GUI
17 AM_CXXFLAGS += $(GUI_DEPS_CFLAGS)
18 endif
19 if USE_JACK
20 AM_CXXFLAGS += $(JACK_DEPS_CFLAGS)
21 noinst_LTLIBRARIES += libcalfgui.la
22 bin_PROGRAMS += calfjackhost 
23 calfjackhost_SOURCES = gtk_session_env.cpp host_session.cpp jack_client.cpp jackhost.cpp gtk_main_win.cpp connector.cpp session_mgr.cpp
24 calfjackhost_LDADD = libcalfgui.la calf.la $(JACK_DEPS_LIBS) $(GUI_DEPS_LIBS) $(GLIB_DEPS_LIBS) $(FLUIDSYNTH_DEPS_LIBS) -lfftw3f
25 if USE_LASH
26 AM_CXXFLAGS += $(LASH_DEPS_CFLAGS)
27 calfjackhost_LDADD += $(LASH_DEPS_LIBS)
28 endif
29 endif
31 AM_CXXFLAGS += $(GLIB_DEPS_CFLAGS)
32 noinst_PROGRAMS += calfmakerdf
33 calfmakerdf_SOURCES = makerdf.cpp 
34 calfmakerdf_LDADD = calf.la 
36 calfbenchmark_SOURCES = benchmark.cpp
37 calfbenchmark_LDADD = calf.la $(GLIB_DEPS_LIBS)
39 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 
40 calf_la_LIBADD = $(FLUIDSYNTH_DEPS_LIBS) -lfftw3f
41 if USE_DEBUG
42 calf_la_LDFLAGS = -rpath $(pkglibdir) -avoid-version -module -lexpat -disable-static 
43 else
44 calf_la_LDFLAGS = -rpath $(pkglibdir) -avoid-version -module -lexpat -disable-static -export-symbols-regex "lv2_descriptor"  
45 endif
47 if USE_LV2_GUI
49 # Version WITH out-of-process GUI - links GTK+, UI controls etc.
51 noinst_LTLIBRARIES += calflv2gui.la
53 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
55 if USE_DEBUG
56 calflv2gui_la_LDFLAGS = -rpath $(lv2dir) -avoid-version -module -lexpat $(GUI_DEPS_LIBS) -disable-static
57 else
58 calflv2gui_la_LDFLAGS = -rpath $(lv2dir) -avoid-version -module -lexpat -export-symbols-regex "lv2ui_descriptor" $(GUI_DEPS_LIBS) -disable-static
59 endif
61 endif
63 if USE_GUI
64 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
65 libcalfgui_la_LDFLAGS = -static -disable-shared -lexpat
66 endif
68 clean-local:
69         $(RM) -f calfjackhost *~
71 install-data-hook:
72         install -d -m 755 $(DESTDIR)$(pkgdatadir) 
73         install -c -m 644 $(top_srcdir)/presets.xml $(DESTDIR)$(pkgdatadir)
74 if USE_GUI
75         install -c -m 644 $(top_srcdir)/calf-gui.xml $(DESTDIR)$(pkgdatadir)
76 endif
77 if USE_LV2
78         install -d -m 755 $(DESTDIR)$(lv2dir)
79         ln -sf $(pkglibdir)/calf.so $(DESTDIR)$(lv2dir)/calf.so
80 if USE_LV2_GUI
81         install -c -m 755 $(top_builddir)/src/.libs/calflv2gui.so $(DESTDIR)$(lv2dir)/calflv2gui.so
82 endif
83         rm -f $(DESTDIR)$(lv2dir)/*.ttl
84         $(top_builddir)/src/calfmakerdf -m ttl -p $(DESTDIR)$(lv2dir)/
85 endif
87 #remove calf.so, calf.rdf and - if empty - ladspa dir in usr/share
88 uninstall-hook:
89 if USE_LV2
90 if USE_LV2_GUI
91         rm -f $(DESTDIR)$(lv2dir)/calflv2gui.so
92 endif
93         rm -f $(DESTDIR)$(lv2dir)/calf.so
94         rm -f $(DESTDIR)$(lv2dir)/*.ttl
95         rmdir -p $(DESTDIR)$(lv2dir) || true
96 endif
97 if USE_GUI
98         rm -f $(DESTDIR)$(pkgdatadir)/calf-gui.xml
99 endif
100         rm -f $(DESTDIR)$(pkgdatadir)/presets*.xml
101         rmdir $(DESTDIR)$(pkgdatadir) || true