+ JACK host: add open/save dialogs (still no implementation of the actual open/save...
[calf.git] / src / Makefile.am
blob5ada39892f8ab65e922267cffb2c0867f78894f4
1 # Calf DSP library - example modules
3 INCLUDES = -I$(top_srcdir) -I$(srcdir)
5 SUBDIRS = calf
7 ladspadir = $(with_ladspa_dir)
8 lv2dir = $(with_lv2_dir)
10 bin_PROGRAMS = 
12 noinst_PROGRAMS = calfbenchmark
13 noinst_LTLIBRARIES = calf.la libcalfstatic.la
14 if USE_DSSI_GUI
15 dssidir = $(with_dssi_dir)/calf
16 dssi_PROGRAMS = calf_gtk
17 endif
18 if USE_LV2_GUI
19 noinst_LTLIBRARIES += calflv2gui.la
20 endif
22 AM_CXXFLAGS = -ffast-math -finline-limit=80 $(FLUIDSYNTH_DEPS_CFLAGS)
24 if USE_GUI
25 AM_CXXFLAGS += $(GUI_DEPS_CFLAGS)
26 endif
27 if USE_JACK
28 AM_CXXFLAGS += $(JACK_DEPS_CFLAGS)
29 noinst_LTLIBRARIES += libcalfgui.la
30 bin_PROGRAMS += calfjackhost 
31 calfjackhost_SOURCES = jackhost.cpp
32 calfjackhost_LDADD = libcalfgui.la libcalfstatic.la $(JACK_DEPS_LIBS) $(GUI_DEPS_LIBS) $(FLUIDSYNTH_DEPS_LIBS)
33 if USE_LASH
34 AM_CXXFLAGS += $(LASH_DEPS_CFLAGS)
35 calfjackhost_LDADD += $(LASH_DEPS_LIBS)
36 endif
37 endif
39 AM_CXXFLAGS += $(GLIB_DEPS_CFLAGS)
40 noinst_PROGRAMS += calfmakerdf
41 calfmakerdf_SOURCES = makerdf.cpp 
42 calfmakerdf_LDADD = libcalfstatic.la
44 calfbenchmark_SOURCES = benchmark.cpp
45 calfbenchmark_LDADD = $(GLIB_DEPS_LIBS) libcalfstatic.la
47 if USE_DSSI_GUI
48 calf_gtk_SOURCES = dssigui.cpp
49 calf_gtk_LDADD = libcalfstatic.la libcalfgui.la $(GLIB_DEPS_LIBS) $(GUI_DEPS_LIBS)
50 calfbenchmark_CXXFLAGS = $(AM_CXXFLAGS) -DTEST_OSC
51 calfbenchmark_LDADD += libcalfgui.la
52 endif
54 calf_la_SOURCES = modules.cpp modules_dsp.cpp modules_small.cpp fluidsynth.cpp giface.cpp monosynth.cpp organ.cpp osctl.cpp osctlnet.cpp plugin.cpp preset.cpp synth.cpp utils.cpp wavetable.cpp modmatrix.cpp 
55 calf_la_LIBADD ?= $(FLUIDSYNTH_DEPS_LIBS)
56 if USE_DEBUG
57 calf_la_LDFLAGS = -rpath $(ladspadir) -avoid-version -module -lexpat -disable-static $(FLUIDSYNTH_DEPS_LIBS)
58 else
59 calf_la_LDFLAGS = -rpath $(ladspadir) -avoid-version -module -lexpat -disable-static -export-symbols-regex "(ladspa_|lv2_|dssi_)descriptor"  $(FLUIDSYNTH_DEPS_LIBS)
60 endif
62 if USE_LV2_GUI
63 calflv2gui_la_SOURCES = gui.cpp gui_controls.cpp ctl_curve.cpp ctl_keyboard.cpp ctl_led.cpp custom_ctl.cpp modules.cpp giface.cpp preset.cpp synth.cpp lv2gui.cpp main_win.cpp osctl.cpp osctlnet.cpp utils.cpp
64 if USE_DEBUG
65 calflv2gui_la_LDFLAGS = -rpath $(lv2dir) -avoid-version -module -lexpat $(GUI_DEPS_LIBS) -disable-static
66 else
67 calflv2gui_la_LDFLAGS = -rpath $(lv2dir) -avoid-version -module -lexpat -export-symbols-regex "lv2_gui_descriptor" $(GUI_DEPS_LIBS) -disable-static
68 endif
69 endif
71 libcalfstatic_la_SOURCES = modules.cpp modules_dsp.cpp modules_small.cpp fluidsynth.cpp giface.cpp monosynth.cpp organ.cpp osctl.cpp osctlnet.cpp preset.cpp synth.cpp utils.cpp wavetable.cpp modmatrix.cpp
72 libcalfstatic_la_LDFLAGS = -static -lexpat -disable-shared  $(FLUIDSYNTH_DEPS_LIBS)
74 if USE_GUI
75 libcalfgui_la_SOURCES = gui.cpp gui_controls.cpp ctl_curve.cpp ctl_keyboard.cpp ctl_led.cpp preset_gui.cpp custom_ctl.cpp osctl.cpp osctlnet.cpp osctlserv.cpp main_win.cpp utils.cpp
76 libcalfgui_la_LDFLAGS = -static -disable-shared
77 endif
79 clean-local:
80         $(RM) -f calfjackhost *~
82 install-data-hook:
83         install -d -m 755 $(DESTDIR)$(pkgdatadir)    
84         install -c -m 644 $(top_srcdir)/presets.xml $(DESTDIR)$(pkgdatadir)
85         install -c -m 644 $(top_srcdir)/gui/*.png $(DESTDIR)$(pkgdatadir)
86         $(top_builddir)/src/calfmakerdf -m gui -p $(DESTDIR)$(pkgdatadir)
87         install -c -m 644 $(top_srcdir)/gui/gui-*.xml $(DESTDIR)$(pkgdatadir)
88         install -c -m 644 $(top_srcdir)/gui/calf.rc $(DESTDIR)$(pkgdatadir)
89 if USE_JACK
90         install -c -m 644 $(top_srcdir)/calf.glade $(DESTDIR)$(pkgdatadir)
91 endif
92 if USE_LADSPA
93         install -d -m 755 $(DESTDIR)$(with_ladspa_dir)
94         install -d -m 755 $(DESTDIR)$(with_ladspa_rdf_dir)
95         install -c -m 755 $(top_builddir)/src/.libs/calf.so $(DESTDIR)$(with_ladspa_dir)/calf.so
96         $(top_builddir)/src/calfmakerdf > $(DESTDIR)$(with_ladspa_rdf_dir)/calf.rdf
97 endif
98 if USE_DSSI
99         install -d -m 755 $(DESTDIR)$(with_dssi_dir)
100         install -d -m 755 $(DESTDIR)$(with_dssi_dir)/calf
101         install -c -m 755 $(top_builddir)/src/.libs/calf.so $(DESTDIR)$(with_dssi_dir)/calf.so
102 endif
103 if USE_LV2
104         install -d -m 755 $(DESTDIR)$(with_lv2_dir)/calf.lv2
105         install -c -m 755 $(top_builddir)/src/.libs/calf.so $(DESTDIR)$(with_lv2_dir)/calf.lv2/calf.so
106 if USE_LV2_GUI
107         install -c -m 755 $(top_builddir)/src/.libs/calflv2gui.so $(DESTDIR)$(with_lv2_dir)/calf.lv2/calflv2gui.so
108 endif
109         rm -f $(DESTDIR)$(with_lv2_dir)/calf.lv2/*.ttl
110         $(top_builddir)/src/calfmakerdf -m ttl -p $(DESTDIR)$(with_lv2_dir)/calf.lv2/
111 endif
113 #remove calf.so, calf.rdf and - if empty - ladspa dir in usr/share
114 uninstall-hook:
115 if USE_LV2
116 if USE_LV2_GUI
117         rm -f $(DESTDIR)$(with_lv2_dir)/calf.lv2/calflv2gui.so
118 endif
119         rm -f $(DESTDIR)$(with_lv2_dir)/calf.lv2/calf.so
120         rm -f $(DESTDIR)$(with_lv2_dir)/calf.lv2/*.ttl
121         rmdir -p $(DESTDIR)$(with_lv2_dir)/calf.lv2 || true
122 endif
123 if USE_JACK
124         rm -f $(DESTDIR)$(pkgdatadir)/calf.glade 
125 endif
126         rm -f $(DESTDIR)$(pkgdatadir)/gui-*.xml
127         rm -f $(DESTDIR)$(pkgdatadir)/presets.xml
128         rm -f $(DESTDIR)$(pkgdatadir)/calf.rc
129         rm -f $(DESTDIR)$(pkgdatadir)/knob1.png
130         rm -f $(DESTDIR)$(pkgdatadir)/knob2.png
131         rm -f $(DESTDIR)$(pkgdatadir)/knob3.png
132         rm -f $(DESTDIR)$(pkgdatadir)/knob4.png
133         rm -f $(DESTDIR)$(pkgdatadir)/toggle1.png
134         rm -f $(DESTDIR)$(pkgdatadir)/toggle2.png
135         rmdir $(DESTDIR)$(pkgdatadir) || true
136 if USE_LADSPA
137         $(RM) -f $(DESTDIR)$(with_ladspa_dir)/calf.so
138         $(RM) -f $(DESTDIR)$(with_ladspa_rdf_dir)/calf.rdf
139         rmdir -p $(DESTDIR)$(with_ladspa_rdf_dir) || true
140 endif
141 if USE_DSSI
142         $(RM) -f $(DESTDIR)$(with_dssi_dir)/calf.so
143 if USE_DSSI_GUI
144         $(RM) -f $(DESTDIR)$(with_dssi_dir)/calf/calf_gtk
145 endif
146         rmdir -p $(DESTDIR)$(with_dssi_dir)/calf || true
147 endif
149 #install:
150 #       $(INSTALL) calfjackhost $(bindir)