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.4KB

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