1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433
|
# amsynth Makefile.am
#
# Copyright (C) 2001-2022 Nick Dowell
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
# http://www.gnu.org/software/libtool/manual/autoconf/Defining-Directories.html
AM_CPPFLAGS = -DDATADIR='"$(datadir)"' -DPKGDATADIR='"$(pkgdatadir)"' -DPACKAGE_LOCALEDIR=\""$(datadir)/locale"\" @CPPFLAGS@ -fPIC -fvisibility=hidden
AM_CPPFLAGS += -I"$(top_srcdir)/vendor"
# https://developer.gnome.org/gtk3/stable/gtk-migrating-2-to-3.html#id-1.6.3.3
AM_CPPFLAGS += -DGDK_DISABLE_DEPRECATED -DGSEAL_ENABLE -DGTK_DISABLE_DEPRECATED -DGTK_DISABLE_SINGLE_INCLUDES
AM_CFLAGS = -Wno-declaration-after-statement
AM_CFLAGS += -Wno-strict-prototypes
AM_CXXFLAGS = $(WARN_CXXFLAGS)
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = po
libcore_sources = \
src/Configuration.cpp \
src/Configuration.h \
src/controls.h \
src/filesystem.cpp \
src/filesystem.h \
src/midi.h \
src/MidiController.cpp \
src/MidiController.h \
src/Parameter.cpp \
src/Parameter.h \
src/Preset.cpp \
src/Preset.h \
src/PresetController.cpp \
src/PresetController.h \
src/types.h \
src/UpdateListener.h
libdsp_sources = \
src/Effects/Distortion.cpp \
src/Effects/Distortion.h \
src/Effects/SoftLimiter.cpp \
src/Effects/SoftLimiter.h \
src/Synthesizer.cpp \
src/Synthesizer.h \
src/TuningMap.cpp \
src/TuningMap.h \
src/VoiceAllocationUnit.cpp \
src/VoiceAllocationUnit.h \
src/VoiceBoard/ADSR.cpp \
src/VoiceBoard/ADSR.h \
src/VoiceBoard/LowPassFilter.cpp \
src/VoiceBoard/LowPassFilter.h \
src/VoiceBoard/Oscillator.cpp \
src/VoiceBoard/Oscillator.h \
src/VoiceBoard/Synth--.h \
src/VoiceBoard/VoiceBoard.cpp \
src/VoiceBoard/VoiceBoard.h \
vendor/freeverb/allpass.cpp \
vendor/freeverb/allpass.hpp \
vendor/freeverb/comb.cpp \
vendor/freeverb/comb.hpp \
vendor/freeverb/denormals.h \
vendor/freeverb/revmodel.cpp \
vendor/freeverb/revmodel.hpp \
vendor/freeverb/tuning.h
libgui_sources = \
src/GUI/bitmap_button.c \
src/GUI/bitmap_button.h \
src/GUI/bitmap_knob.c \
src/GUI/bitmap_knob.h \
src/GUI/bitmap_popup.c \
src/GUI/bitmap_popup.h \
src/GUI/editor_menus.cpp \
src/GUI/editor_menus.h \
src/GUI/editor_pane.c \
src/GUI/editor_pane.h \
src/GUI/gui_main.cpp \
src/GUI/gui_main.h \
vendor/seq24/controllers.h
#
# amsynth standalone
#
bin_PROGRAMS = amsynth
amsynth_SOURCES = \
$(libcore_sources) \
$(libdsp_sources) \
src/AudioOutput.cpp \
src/AudioOutput.h \
src/drivers/ALSAAudioDriver.cpp \
src/drivers/ALSAAudioDriver.h \
src/drivers/ALSAMidiDriver.cpp \
src/drivers/ALSAMidiDriver.h \
src/drivers/ALSAmmapAudioDriver.cpp \
src/drivers/ALSAmmapAudioDriver.h \
src/drivers/AudioDriver.h \
src/drivers/MidiDriver.h \
src/drivers/OSSAudioDriver.cpp \
src/drivers/OSSAudioDriver.h \
src/drivers/OSSMidiDriver.cpp \
src/drivers/OSSMidiDriver.h \
src/gettext.h \
src/JackOutput.cpp \
src/JackOutput.h \
src/lash.c \
src/lash.h \
src/main.h \
src/main.cpp
amsynth_CPPFLAGS = $(AM_CPPFLAGS) @ALSA_CFLAGS@ @JACK_CFLAGS@ @LASH_CFLAGS@ @LIBLO_CFLAGS@ @GTK_CFLAGS@
amsynth_LDADD = @ALSA_LIBS@ @JACK_LIBS@ @LASH_LIBS@ @LIBLO_LIBS@ @LIBS@ -lX11
if BUILD_GUI
amsynth_SOURCES += $(libgui_sources) \
src/GUI/ConfigDialog.cpp \
src/GUI/ConfigDialog.h \
src/GUI/MainMenu.cpp \
src/GUI/MainMenu.h \
src/GUI/MainWindow.cpp \
src/GUI/MainWindow.h \
src/GUI/MIDILearnDialog.cpp \
src/GUI/MIDILearnDialog.h \
src/GUI/PresetControllerView.cpp \
src/GUI/PresetControllerView.h
amsynth_LDADD += @GTK_LIBS@
endif
if DARWIN
amsynth_SOURCES += \
src/drivers/CoreAudio.cpp \
src/drivers/CoreAudio.h
amsynth_LDFLAGS = $(AM_LDFLAGS) -framework CoreFoundation -framework CoreAudio -framework CoreMIDI
endif
if BUILD_NSM
amsynth_SOURCES += \
src/nsm/NsmClient.cpp \
src/nsm/NsmClient.h \
src/nsm/NsmHandler.cpp \
src/nsm/NsmHandler.h \
vendor/nsm/nsm.h
endif
#
# plugins
#
# using noinst prevents the .a and .la files being installed
# plugin gets installed via custom install-exec-hook
#
noinst_LTLIBRARIES =
#
# DSSI
#
if BUILD_DSSI
dssidir = $(libdir)/dssi
noinst_LTLIBRARIES += amsynth_dssi.la
amsynth_dssi_la_SOURCES = src/amsynth_dssi.cpp src/amsynth_dssi.h $(libcore_sources) $(libdsp_sources)
amsynth_dssi_la_CPPFLAGS = $(AM_CPPFLAGS) @DSSI_CFLAGS@
amsynth_dssi_la_LDFLAGS = -rpath $(dssidir) -avoid-version -module -export-symbols-regex "dssi_descriptor" -disable-static
endif
if BUILD_DSSI_GUI
noinst_PROGRAMS = amsynth_dssi_gtk
amsynth_dssi_gtk_SOURCES = src/amsynth_dssi_gtk.cpp $(libcore_sources) $(libgui_sources)
amsynth_dssi_gtk_CPPFLAGS = $(AM_CPPFLAGS) @DSSI_CFLAGS@ @GTK_CFLAGS@ @LIBLO_CFLAGS@
amsynth_dssi_gtk_LDADD = @DSSI_LIBS@ @GTK_LIBS@ @LIBLO_LIBS@ -lstdc++ -lX11
endif
#
# LV2
#
if BUILD_LV2
amsynth_lv2dir = $(libdir)/lv2/amsynth.lv2
noinst_LTLIBRARIES += amsynth_lv2.la
amsynth_lv2_la_SOURCES = src/amsynth_lv2.cpp src/amsynth_lv2.h $(libcore_sources) $(libdsp_sources)
amsynth_lv2_la_CPPFLAGS = $(AM_CPPFLAGS) @LV2_CFLAGS@
amsynth_lv2_la_LDFLAGS = -rpath $(amsynth_lv2dir) -avoid-version -module -export-symbols-regex "lv2_descriptor" -disable-static
noinst_LTLIBRARIES += amsynth_lv2_gtk.la
amsynth_lv2_gtk_la_SOURCES = src/amsynth_lv2_ui_gtk.cpp $(libcore_sources) $(libgui_sources)
amsynth_lv2_gtk_la_CPPFLAGS = $(AM_CPPFLAGS) @LV2_CFLAGS@
amsynth_lv2_gtk_la_LDFLAGS = -rpath $(amsynth_lv2dir) -avoid-version -module -export-symbols-regex "lv2ui_descriptor" -disable-static
amsynth_lv2_gtk_la_LIBADD = @LV2_LIBS@
dist_amsynth_lv2_DATA = \
data/amsynth.lv2/manifest.ttl \
data/amsynth.lv2/amsynth.ttl \
data/amsynth.lv2/amsynth_factory.bank.ttl \
data/amsynth.lv2/BriansBank01.amSynth.bank.ttl \
data/amsynth.lv2/BriansBank02.amSynth.bank.ttl \
data/amsynth.lv2/BriansBank03.amSynth.bank.ttl \
data/amsynth.lv2/BriansBank04.amSynth.bank.ttl \
data/amsynth.lv2/BriansBank05.amSynth.bank.ttl \
data/amsynth.lv2/BriansBank06.amSynth.bank.ttl \
data/amsynth.lv2/BriansBank07.amSynth.bank.ttl \
data/amsynth.lv2/BriansBank08.amSynth.bank.ttl \
data/amsynth.lv2/BriansBank09.amSynth.bank.ttl \
data/amsynth.lv2/BriansBank10.amSynth.bank.ttl \
data/amsynth.lv2/BriansBank11.amSynth.bank.ttl \
data/amsynth.lv2/BriansBank12.amSynth.bank.ttl \
data/amsynth.lv2/BriansBank13.amSynth.bank.ttl \
data/amsynth.lv2/BriansBank14.amSynth.bank.ttl \
data/amsynth.lv2/BriansBank15.amSynth.bank.ttl \
data/amsynth.lv2/BriansBank16.amSynth.bank.ttl \
data/amsynth.lv2/BriansBank17.amSynth.bank.ttl \
data/amsynth.lv2/BriansBank18.amSynth.bank.ttl \
data/amsynth.lv2/BriansBank19.amSynth.bank.ttl \
data/amsynth.lv2/BriansBank20.amSynth.bank.ttl \
data/amsynth.lv2/BriansBank21.amSynth.bank.ttl \
data/amsynth.lv2/BriansBank22.amSynth.bank.ttl \
data/amsynth.lv2/PatriksBank01.bank.ttl \
data/amsynth.lv2/PatriksBank02.bank.ttl \
data/amsynth.lv2/PatriksBank03.bank.ttl \
data/amsynth.lv2/PatriksBank04.bank.ttl \
data/amsynth.lv2/PatriksBank05.bank.ttl
endif
#
# VST
#
if BUILD_VST
vstdir=$(libdir)/vst
noinst_LTLIBRARIES += amsynth_vst.la
amsynth_vst_la_SOURCES = src/amsynth_vst.cpp $(libcore_sources) $(libdsp_sources) vendor/vestige/aeffectx.h
amsynth_vst_la_LDFLAGS = -rpath $(vstdir) -avoid-version -module -export-symbols-regex "VSTPluginMain|main"
if BUILD_GUI
amsynth_vst_la_SOURCES += $(libgui_sources)
amsynth_vst_la_CPPFLAGS = $(AM_CPPFLAGS) @GTK_CFLAGS@
amsynth_vst_la_LIBADD = @GTK_LIBS@
endif
endif
#
#
#
dist_pkgdata_DATA = data/rc
EXTRA_DIST = data/icons/48x48/amsynth.png data/icons/scalable/amsynth.svg
appicon48dir=$(datadir)/icons/hicolor/48x48/apps
appicon48_DATA=data/icons/48x48/amsynth.png
appiconsvgdir=$(datadir)/icons/hicolor/scalable/apps
appiconsvg_DATA=data/icons/scalable/amsynth.svg
desktopdir = $(datadir)/applications
desktop_in_files = data/amsynth.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
appdatadir = /usr/share/metainfo
appdata_in_files = data/amsynth.appdata.xml.in
appdata_in_files += data/dssi-amsynth-plugin.metainfo.xml.in
appdata_in_files += data/lv2-amsynth-plugin.metainfo.xml.in
appdata_in_files += data/vst-amsynth-plugin.metainfo.xml.in
appdata_DATA = $(appdata_in_files:.xml.in=.xml)
@INTLTOOL_XML_RULE@
EXTRA_DIST += $(appdata_in_files)
DISTCLEANFILES = $(appdata_DATA)
skinsdefaultdir="${pkgdatadir}/skins/default"
dist_skinsdefault_DATA = \
data/skins/default/background.png \
data/skins/default/button_simple.png \
data/skins/default/filter_slope.png \
data/skins/default/filter_type.png \
data/skins/default/keybmode.png \
data/skins/default/knob.png \
data/skins/default/knob_boost.png \
data/skins/default/knob_boost_cut.png \
data/skins/default/knob_mix.png \
data/skins/default/knob_osc_octave.png \
data/skins/default/knob_osc_pitch.png \
data/skins/default/knob_spot.png \
data/skins/default/knob_width.png \
data/skins/default/layout.ini \
data/skins/default/osc_select.png \
data/skins/default/portamento_modes.png \
data/skins/default/slider_boost_1.png \
data/skins/default/slider_boost_2.png \
data/skins/default/waveform_lfo.png \
data/skins/default/waveform_pics.png
banksdir = $(pkgdatadir)/banks
dist_banks_DATA = \
data/banks/amsynth_factory.bank \
data/banks/BriansBank01.amSynth.bank \
data/banks/BriansBank02.amSynth.bank \
data/banks/BriansBank03.amSynth.bank \
data/banks/BriansBank04.amSynth.bank \
data/banks/BriansBank05.amSynth.bank \
data/banks/BriansBank06.amSynth.bank \
data/banks/BriansBank07.amSynth.bank \
data/banks/BriansBank08.amSynth.bank \
data/banks/BriansBank09.amSynth.bank \
data/banks/BriansBank10.amSynth.bank \
data/banks/BriansBank11.amSynth.bank \
data/banks/BriansBank12.amSynth.bank \
data/banks/BriansBank13.amSynth.bank \
data/banks/BriansBank14.amSynth.bank \
data/banks/BriansBank15.amSynth.bank \
data/banks/BriansBank16.amSynth.bank \
data/banks/BriansBank17.amSynth.bank \
data/banks/BriansBank18.amSynth.bank \
data/banks/BriansBank19.amSynth.bank \
data/banks/BriansBank20.amSynth.bank \
data/banks/BriansBank21.amSynth.bank \
data/banks/BriansBank22.amSynth.bank \
data/banks/PatriksBank01.bank \
data/banks/PatriksBank02.bank \
data/banks/PatriksBank03.bank \
data/banks/PatriksBank04.bank \
data/banks/PatriksBank05.bank
#
# Man pages
#
if GENERATE_MAN_PAGES
SUBDIRS += man
endif
#
#
#
install-exec-hook:
if ENABLE_REALTIME
chown root $(DESTDIR)$(bindir)/amsynth
chmod +s $(DESTDIR)$(bindir)/amsynth
endif
if BUILD_DSSI
$(INSTALL_PROGRAM_ENV) $(INSTALL) -d $(DESTDIR)$(dssidir)
$(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL) \
$(top_builddir)/.libs/amsynth_dssi.so $(DESTDIR)$(dssidir)/amsynth_dssi.so
endif
if BUILD_DSSI_GUI
$(INSTALL_PROGRAM_ENV) $(INSTALL) -d $(DESTDIR)$(dssidir)/amsynth_dssi
$(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL) \
$(top_builddir)/amsynth_dssi_gtk $(DESTDIR)$(dssidir)/amsynth_dssi/amsynth_dssi_gtk
endif
if BUILD_LV2
$(INSTALL_PROGRAM_ENV) $(INSTALL) -d $(DESTDIR)$(amsynth_lv2dir)
$(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL) \
$(top_builddir)/.libs/amsynth_lv2.so $(DESTDIR)$(amsynth_lv2dir)/amsynth_lv2.so
$(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL) \
$(top_builddir)/.libs/amsynth_lv2_gtk.so $(DESTDIR)$(amsynth_lv2dir)/amsynth_lv2_gtk.so
endif
if BUILD_VST
$(INSTALL_PROGRAM_ENV) $(INSTALL) -d $(DESTDIR)$(vstdir)
$(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL) \
$(top_builddir)/.libs/amsynth_vst.so $(DESTDIR)$(vstdir)/amsynth_vst.so
endif
#
#
#
uninstall-hook:
rm -rf $(DESTDIR)$(pkgdatadir)
if BUILD_DSSI
rm -f $(DESTDIR)$(dssidir)/amsynth_dssi.so
endif
if BUILD_DSSI_GUI
rm -rf $(DESTDIR)$(dssidir)/amsynth_dssi
endif
if BUILD_LV2
rm -rf $(DESTDIR)$(amsynth_lv2dir)
endif
if BUILD_VST
rm -f $(DESTDIR)$(vstdir)/amsynth_vst.so
endif
# Workaround for
# ERROR: files left in build directory after distclean:
# ./po/.intltool-merge-cache.lock
-rm ./po/.intltool-merge-cache.lock
#
#
#
check_PROGRAMS = amsynth-tests
amsynth_tests_SOURCES = \
$(libcore_sources) \
$(libdsp_sources) \
src/tests.cpp
TESTS = $(check_PROGRAMS)
|