Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile.mk 2.3KB

11 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. #!/usr/bin/make -f
  2. # Makefile for Carla C++ code #
  3. # -------------------------------------------- #
  4. # Created by falkTX
  5. #
  6. AR ?= ar
  7. CC ?= gcc
  8. CXX ?= g++
  9. MOC ?= $(shell pkg-config --variable=moc_location QtCore)
  10. RCC ?= $(shell pkg-config --variable=rcc_location QtCore)
  11. UIC ?= $(shell pkg-config --variable=uic_location QtCore)
  12. STRIP ?= strip
  13. WINDRES ?= windres
  14. # --------------------------------------------------------------
  15. DEBUG ?= false
  16. ifeq ($(DEBUG),true)
  17. BASE_FLAGS = -O0 -g -Wall -Wextra
  18. BASE_FLAGS += -DDEBUG
  19. STRIP = true # FIXME
  20. else
  21. BASE_FLAGS = -O2 -ffast-math -mtune=generic -msse -mfpmath=sse -Wall -Wextra
  22. BASE_FLAGS += -DNDEBUG
  23. endif
  24. 32BIT_FLAGS = -m32
  25. 64BIT_FLAGS = -m64
  26. BUILD_C_FLAGS = $(BASE_FLAGS) -std=c99 $(CFLAGS)
  27. BUILD_CXX_FLAGS = $(BASE_FLAGS) -std=c++0x $(CXXFLAGS)
  28. LINK_FLAGS = $(LDFLAGS)
  29. ifneq ($(DEBUG),true)
  30. BUILD_CXX_FLAGS += -DQT_NO_DEBUG -DQT_NO_DEBUG_STREAM -DQT_NO_DEBUG_OUTPUT
  31. endif
  32. # --------------------------------------------------------------
  33. # Modify to enable/disable specific features
  34. # Support for LADSPA, DSSI, LV2 and VST plugins
  35. CARLA_PLUGIN_SUPPORT = true
  36. # Support for GIG, SF2 and SFZ sample banks (through fluidsynth and linuxsampler)
  37. CARLA_SAMPLERS_SUPPORT = true
  38. # Support for Native Audio (ALSA and/or PulseAudio in Linux)
  39. CARLA_RTAUDIO_SUPPORT = true
  40. # Comment this line to not use vestige header
  41. BUILD_CXX_FLAGS += -DVESTIGE_HEADER
  42. # --------------------------------------------------------------
  43. ifeq ($(CARLA_PLUGIN_SUPPORT),true)
  44. HAVE_SUIL = $(shell pkg-config --exists suil-0 && echo true)
  45. endif
  46. ifeq ($(CARLA_SAMPLERS_SUPPORT),true)
  47. HAVE_FLUIDSYNTH = $(shell pkg-config --exists fluidsynth && echo true)
  48. HAVE_LINUXSAMPLER = $(shell pkg-config --exists linuxsampler && echo true)
  49. endif
  50. ifeq ($(CARLA_RTAUDIO_SUPPORT),true)
  51. HAVE_ALSA = $(shell pkg-config --exists alsa && echo true)
  52. HAVE_PULSEAUDIO = $(shell pkg-config --exists libpulse-simple && echo true)
  53. endif
  54. HAVE_ZYN_DEPS = $(shell pkg-config --exists fftw3 mxml && echo true)
  55. # --------------------------------------------------------------
  56. ifeq ($(CARLA_PLUGIN_SUPPORT),true)
  57. BUILD_C_FLAGS += -DWANT_LV2
  58. BUILD_CXX_FLAGS += -DWANT_LADSPA -DWANT_DSSI -DWANT_LV2 -DWANT_VST
  59. endif
  60. ifeq ($(HAVE_ZYN_DEPS),true)
  61. BUILD_CXX_FLAGS += -DWANT_ZYNADDSUBFX
  62. endif