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.

105 lines
2.9KB

  1. #!/usr/bin/make -f
  2. # Makefile for carla-engine #
  3. # ------------------------- #
  4. # Created by falkTX
  5. #
  6. include ../Makefile.mk
  7. # --------------------------------------------------------------
  8. BUILD_CXX_FLAGS += -D__UNIX_JACK__
  9. BUILD_CXX_FLAGS += $(shell pkg-config --cflags liblo)
  10. ifeq ($(HAVE_QT5),true)
  11. BUILD_CXX_FLAGS += $(shell pkg-config --cflags Qt5Core Qt5Xml)
  12. else
  13. BUILD_CXX_FLAGS += $(shell pkg-config --cflags QtCore QtXml)
  14. endif
  15. # --------------------------------------------------------------
  16. ifeq ($(CARLA_RTAUDIO_SUPPORT),true)
  17. BUILD_CXX_FLAGS += -DHAVE_GETTIMEOFDAY
  18. BUILD_CXX_FLAGS += -Irtaudio-4.0.11 -Irtaudio-4.0.11/include -Irtmidi-2.0.1
  19. ifeq ($(DEBUG),true)
  20. BUILD_CXX_FLAGS += -D__RTAUDIO_DEBUG__ -D__RTMIDI_DEBUG__
  21. endif
  22. endif
  23. # --------------------------------------------------------------
  24. ifeq ($(HAVE_ALSA),true)
  25. BUILD_CXX_FLAGS += $(shell pkg-config --cflags alsa) -D__LINUX_ALSA__ -D__LINUX_ALSASEQ__
  26. endif
  27. ifeq ($(HAVE_PULSEAUDIO),true)
  28. BUILD_CXX_FLAGS += $(shell pkg-config --cflags libpulse-simple) -D__LINUX_PULSE__
  29. endif
  30. ifeq ($(MACOS),true)
  31. BUILD_CXX_FLAGS += -D__MACOSX_CORE__
  32. endif
  33. ifeq ($(WIN32),true)
  34. BUILD_CXX_FLAGS += -D__WINDOWS_ASIO__ -D__WINDOWS_DS__ -D__WINDOWS_MM__
  35. endif
  36. PLUGIN_CXX_FLAGS = $(BUILD_CXX_FLAGS)
  37. PLUGIN_CXX_FLAGS += -Idistrho -I../../libs/distrho
  38. PLUGIN_CXX_FLAGS += -DWANT_PLUGIN
  39. # --------------------------------------------------------------
  40. OBJS = \
  41. CarlaEngine.cpp.o \
  42. CarlaEngineOsc.cpp.o \
  43. CarlaEngineThread.cpp.o \
  44. CarlaEngineBridge.cpp.o \
  45. CarlaEngineJack.cpp.o \
  46. CarlaEnginePlugin.cpp.o \
  47. CarlaEngineRtAudio.cpp.o
  48. ifeq ($(CARLA_RTAUDIO_SUPPORT),true)
  49. OBJS += \
  50. rtaudio-4.0.11/RtAudio.cpp.o \
  51. rtmidi-2.0.1/RtMidi.cpp.o
  52. ifeq ($(WIN32),true)
  53. OBJS += \
  54. rtaudio-4.0.11/include/asio.cpp.o \
  55. rtaudio-4.0.11/include/asiodrivers.cpp.o \
  56. rtaudio-4.0.11/include/asiolist.cpp.o \
  57. rtaudio-4.0.11/include/iasiothiscallresolver.cpp.o
  58. endif
  59. endif
  60. TARGET = ../libcarla_engine.a
  61. # --------------------------------------------------------------
  62. all: $(TARGET)
  63. clean:
  64. rm -f $(OBJS) $(TARGET)
  65. debug:
  66. $(MAKE) DEBUG=true
  67. # --------------------------------------------------------------
  68. %.cpp.o: %.cpp ../CarlaBackend.hpp ../CarlaEngine.hpp ../CarlaPlugin.hpp CarlaEngineInternal.hpp CarlaEngineOsc.hpp CarlaEngineThread.hpp
  69. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  70. %.cpp.dssi.o: %.cpp ../CarlaBackend.hpp ../CarlaEngine.hpp ../CarlaPlugin.hpp CarlaEngineInternal.hpp CarlaEngineOsc.hpp CarlaEngineThread.hpp
  71. $(CXX) $< $(PLUGIN_CXX_FLAGS) -DDISTRHO_PLUGIN_TARGET_DSSI -c -o $@
  72. %.cpp.lv2.o: %.cpp ../CarlaBackend.hpp ../CarlaEngine.hpp ../CarlaPlugin.hpp CarlaEngineInternal.hpp CarlaEngineOsc.hpp CarlaEngineThread.hpp
  73. $(CXX) $< $(PLUGIN_CXX_FLAGS) -DDISTRHO_PLUGIN_TARGET_LV2 -c -o $@
  74. %.cpp.vst.o: %.cpp ../CarlaBackend.hpp ../CarlaEngine.hpp ../CarlaPlugin.hpp CarlaEngineInternal.hpp CarlaEngineOsc.hpp CarlaEngineThread.hpp
  75. $(CXX) $< $(PLUGIN_CXX_FLAGS) -DDISTRHO_PLUGIN_TARGET_VST -c -o $@
  76. $(TARGET): $(OBJS)
  77. $(AR) rs $@ $^