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.

76 lines
2.3KB

  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. BASE_FLAGS = -Wall -Wextra
  17. ifeq ($(DEBUG),true)
  18. BASE_FLAGS += -O0 -g
  19. BASE_FLAGS += -DDEBUG
  20. STRIP = true # FIXME
  21. else
  22. BASE_FLAGS += -O2 -ffast-math -mtune=generic -msse -mfpmath=sse
  23. BASE_FLAGS += -DNDEBUG
  24. endif
  25. 32BIT_FLAGS = -m32
  26. 64BIT_FLAGS = -m64
  27. BUILD_C_FLAGS = $(BASE_FLAGS) -std=gnu99 $(CFLAGS)
  28. BUILD_CXX_FLAGS = $(BASE_FLAGS) -std=gnu++0x $(CXXFLAGS)
  29. LINK_FLAGS = $(LDFLAGS)
  30. # --------------------------------------------------------------
  31. # Modify to enable/disable specific features
  32. # Support for LADSPA, DSSI, LV2 and VST plugins
  33. CARLA_PLUGIN_SUPPORT = true
  34. # Support for GIG, SF2 and SFZ sample banks (through fluidsynth and linuxsampler)
  35. CARLA_SAMPLERS_SUPPORT = true
  36. # Support for Native Audio (ALSA and/or PulseAudio in Linux)
  37. CARLA_RTAUDIO_SUPPORT = true
  38. # Comment this line to not use vestige header
  39. BUILD_CXX_FLAGS += -DVESTIGE_HEADER
  40. # --------------------------------------------------------------
  41. HAVE_JACK = $(shell pkg-config --exists jack && echo true)
  42. HAVE_OPENGL = $(shell pkg-config --exists gl && echo true)
  43. HAVE_AF_DEPS = $(shell pkg-config --exists libavcodec libavformat sndfile && echo true)
  44. HAVE_ZYN_DEPS = $(shell pkg-config --exists fftw3 mxml zlib && echo true)
  45. HAVE_ZYN_UI_DEPS = $(shell pkg-config --exists ntk ntk_images && echo true)
  46. ifeq ($(HAVE_JACK),true)
  47. HAVE_JACK_LATENCY = $(shell pkg-config --atleast-version=0.121.0 jack && echo true)
  48. HAVE_JACK2 = $(shell pkg-config --atleast-version=1.9.0 jack && echo true)
  49. endif
  50. ifeq ($(CARLA_SAMPLERS_SUPPORT),true)
  51. HAVE_FLUIDSYNTH = $(shell pkg-config --exists fluidsynth && echo true)
  52. HAVE_LINUXSAMPLER = $(shell pkg-config --exists linuxsampler && echo true)
  53. endif
  54. ifeq ($(CARLA_RTAUDIO_SUPPORT),true)
  55. HAVE_ALSA = $(shell pkg-config --exists alsa && echo true)
  56. HAVE_PULSEAUDIO = $(shell pkg-config --exists libpulse-simple && echo true)
  57. endif