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.

158 lines
12KB

  1. #!/usr/bin/make -f
  2. # Makefile for file dependencies #
  3. # ------------------------------ #
  4. # Created by falkTX
  5. #
  6. ifeq ($(CWD),)
  7. $(error CWD not set)
  8. endif
  9. # ----------------------------------------------------------------------------------------------------------------------------
  10. # includes
  11. CARLA_DEFINES_H = $(CWD)/includes/CarlaDefines.h
  12. CARLA_MIDI_H = $(CWD)/includes/CarlaMIDI.h
  13. # ----------------------------------------------------------------------------------------------------------------------------
  14. # backend
  15. CARLA_BACKEND_H = $(CWD)/backend/CarlaBackend.h $(CARLA_DEFINES_H)
  16. CARLA_HOST_H = $(CWD)/backend/CarlaHost.h $(CARLA_BACKEND_H)
  17. CARLA_ENGINE_HPP = $(CWD)/backend/CarlaEngine.hpp $(CARLA_BACKEND_H)
  18. CARLA_PLUGIN_HPP = $(CWD)/backend/CarlaPlugin.hpp $(CARLA_BACKEND_H)
  19. # ----------------------------------------------------------------------------------------------------------------------------
  20. # utils (base with no extra depends)
  21. CARLA_UTILS_HPP = $(CWD)/utils/CarlaUtils.hpp $(CARLA_DEFINES_H)
  22. CARLA_JUCE_UTILS_HPP = $(CWD)/utils/CarlaJuceUtils.hpp $(CARLA_UTILS_HPP)
  23. CARLA_MATH_UTILS_HPP = $(CWD)/utils/CarlaMathUtils.hpp $(CARLA_UTILS_HPP)
  24. CARLA_LIB_UTILS_HPP = $(CWD)/utils/CarlaLibUtils.hpp $(CARLA_UTILS_HPP)
  25. CARLA_OSC_UTILS_HPP = $(CWD)/utils/CarlaOscUtils.hpp $(CARLA_UTILS_HPP)
  26. CARLA_SHM_UTILS_HPP = $(CWD)/utils/CarlaShmUtils.hpp $(CARLA_UTILS_HPP)
  27. # ----------------------------------------------------------------------------------------------------------------------------
  28. # utils (base classes)
  29. CARLA_MUTEX_HPP = $(CWD)/utils/CarlaMutex.hpp $(CARLA_UTILS_HPP)
  30. CARLA_RING_BUFFER_HPP = $(CWD)/utils/CarlaRingBuffer.hpp $(CARLA_UTILS_HPP)
  31. CARLA_STRING_HPP = $(CWD)/utils/CarlaString.hpp $(CARLA_JUCE_UTILS_HPP)
  32. CARLA_THREAD_HPP = $(CWD)/utils/CarlaThread.hpp $(CARLA_MUTEX_HPP) $(CARLA_STRING_HPP)
  33. LINKED_LIST_HPP = $(CWD)/utils/LinkedList.hpp $(CARLA_UTILS_HPP)
  34. LV2_ATOM_QUEUE_HPP = $(CWD)/utils/Lv2AtomQueue.hpp $(CARLA_MATH_UTILS_HPP) $(CARLA_MUTEX_HPP) $(CARLA_RING_BUFFER_HPP)
  35. RT_LINKED_LIST_HPP = $(CWD)/utils/RtLinkedList.hpp $(LINKED_LIST_HPP)
  36. # ----------------------------------------------------------------------------------------------------------------------------
  37. # utils (plugin stuff)
  38. CARLA_LADSPA_UTILS_HPP = $(CWD)/utils/CarlaLadspaUtils.hpp $(CARLA_UTILS_HPP)
  39. CARLA_DSSI_UTILS_HPP = $(CWD)/utils/CarlaDssiUtils.hpp $(CARLA_LADSPA_UTILS_HPP)
  40. CARLA_DSSI_UTILS_CPP = $(CWD)/utils/CarlaDssiUtils.cpp $(CARLA_DSSI_UTILS_HPP)
  41. CARLA_LV2_UTILS_HPP = $(CWD)/utils/CarlaLv2Utils.hpp $(CARLA_UTILS_HPP)
  42. CARLA_VST_UTILS_HPP = $(CWD)/utils/CarlaVstUtils.hpp $(CARLA_UTILS_HPP)
  43. # ----------------------------------------------------------------------------------------------------------------------------
  44. # utils (misc stuff)
  45. CARLA_BACKEND_UTILS_HPP = $(CWD)/utils/CarlaBackendUtils.hpp $(CARLA_BACKEND_H) $(CARLA_HOST_H) $(CARLA_STRING_HPP)
  46. CARLA_BRIDGE_UTILS_HPP = $(CWD)/utils/CarlaBridgeUtils.hpp $(CARLA_RING_BUFFER_HPP)
  47. CARLA_ENGINE_UTILS_HPP = $(CWD)/utils/CarlaEngineUtils.hpp $(CARLA_ENGINE_HPP) $(CARLA_UTILS_HPP)
  48. CARLA_PIPE_UTILS_HPP = $(CWD)/utils/CarlaPipeUtils.hpp $(CARLA_MUTEX_HPP) $(CARLA_STRING_HPP)
  49. CARLA_STATE_UTILS_HPP = $(CWD)/utils/CarlaStateUtils.hpp $(CARLA_BACKEND_H) $(LINKED_LIST_HPP)
  50. CARLA_STATE_UTILS_CPP = $(CWD)/utils/CarlaStateUtils.cpp $(CARLA_STATE_UTILS_HPP) $(CARLA_BACKEND_UTILS_HPP) $(CARLA_MATH_UTILS_HPP) $(CARLA_MIDI_H)
  51. # ----------------------------------------------------------------------------------------------------------------------------
  52. # utils (advanced classes)
  53. CARLA_EXTERNAL_UI_HPP = $(CWD)/utils/CarlaExternalUI.hpp $(CARLA_PIPE_UTILS_HPP)
  54. CARLA_LIB_COUNTER_HPP = $(CWD)/utils/CarlaLibCounter.hpp $(CARLA_LIB_UTILS_HPP) $(CARLA_MUTEX_HPP) $(LINKED_LIST_HPP)
  55. # ----------------------------------------------------------------------------------------------------------------------------
  56. # modules
  57. CARLA_NATIVE_H = $(CWD)/modules/CarlaNative.h
  58. CARLA_NATIVE_HPP = $(CWD)/modules/CarlaNative.hpp $(CARLA_NATIVE_H) $(CARLA_MIDI_H) $(CARLA_JUCE_UTILS_HPP)
  59. CARLA_NATIVE_EXT_UI_HPP = $(CWD)/modules/CarlaNativeExtUI.hpp $(CARLA_NATIVE_HPP) $(CARLA_EXTERNAL_UI_HPP)
  60. JACK_BRIDGE_HPP = $(CWD)/modules/jackbridge/JackBridge.hpp $(CARLA_DEFINES_H)
  61. RTAUDIO_HPP = $(CWD)/modules/rtaudio/RtAudio.h
  62. RTMIDI_HPP = $(CWD)/modules/rtmidi/RtMidi.h $(CARLA_DEFINES_H)
  63. # ----------------------------------------------------------------------------------------------------------------------------
  64. # backend/engine
  65. CARLA_ENGINE_OSC_HPP = $(CWD)/backend/engine/CarlaEngineOsc.hpp $(CARLA_BACKEND_H) $(CARLA_OSC_UTILS_HPP) $(CARLA_STRING_HPP)
  66. CARLA_ENGINE_THREAD_HPP = $(CWD)/backend/engine/CarlaEngineThread.hpp $(CARLA_BACKEND_H) $(CARLA_THREAD_HPP)
  67. CARLA_ENGINE_INTERNAL_HPP = $(CWD)/backend/engine/CarlaEngineInternal.hpp $(CARLA_ENGINE_HPP) $(CARLA_ENGINE_OSC_HPP) $(CARLA_ENGINE_THREAD_HPP) $(CARLA_MATH_UTILS_HPP) $(CARLA_MUTEX_HPP) $(LINKED_LIST_HPP)
  68. CARLA_ENGINE_CPP_DEPS = $(CARLA_ENGINE_INTERNAL_HPP) $(CARLA_PLUGIN_HPP) $(CARLA_BACKEND_UTILS_HPP) $(CARLA_ENGINE_UTILS_HPP) $(CARLA_MATH_UTILS_HPP) $(CARLA_STATE_UTILS_HPP) $(CARLA_MIDI_H) $(JACK_BRIDGE_HPP)
  69. CARLA_ENGINE_BRIDGE_CPP_DEPS = $(CARLA_ENGINE_INTERNAL_HPP) $(CARLA_PLUGIN_HPP) $(CARLA_BACKEND_UTILS_HPP) $(CARLA_BRIDGE_UTILS_HPP) $(CARLA_MIDI_H) $(JACK_BRIDGE_HPP)
  70. CARLA_ENGINE_INTERNAL_CPP_DEPS = $(CARLA_ENGINE_INTERNAL_HPP) $(CARLA_PLUGIN_HPP) $(CARLA_MIDI_H) $(CARLA_MATH_UTILS_HPP)
  71. CARLA_ENGINE_JACK_CPP_DEPS = $(CARLA_ENGINE_INTERNAL_HPP) $(CARLA_PLUGIN_HPP) $(CARLA_BACKEND_UTILS_HPP) $(CARLA_ENGINE_UTILS_HPP) $(CARLA_MATH_UTILS_HPP) $(CARLA_MIDI_H) $(JACK_BRIDGE_HPP)
  72. CARLA_ENGINE_JUCE_CPP_DEPS = $(CARLA_ENGINE_INTERNAL_HPP) $(CARLA_BACKEND_UTILS_HPP)
  73. CARLA_ENGINE_NATIVE_CPP_DEPS = $(CARLA_ENGINE_INTERNAL_HPP) $(CARLA_PLUGIN_HPP) $(CARLA_BACKEND_UTILS_HPP) $(CARLA_MATH_UTILS_HPP) $(CARLA_STATE_UTILS_HPP) $(CARLA_EXTERNAL_UI_HPP) $(CARLA_NATIVE_HPP) $(CARLA_DSSI_UTILS_CPP) $(CARLA_STATE_UTILS_CPP)
  74. CARLA_ENGINE_OSC_CPP_DEPS = $(CARLA_ENGINE_HPP) $(CARLA_ENGINE_OSC_HPP) $(CARLA_PLUGIN_HPP) $(CARLA_BRIDGE_UTILS_HPP) $(CARLA_MIDI_H)
  75. CARLA_ENGINE_RTAUDIO_CPP_DEPS = $(CARLA_ENGINE_INTERNAL_HPP) $(CARLA_BACKEND_UTILS_HPP) $(CARLA_MATH_UTILS_HPP) $(RT_LINKED_LIST_HPP) $(RTAUDIO_HPP) $(RTMIDI_HPP)
  76. CARLA_ENGINE_THREAD_CPP_DEPS = $(CARLA_ENGINE_HPP) $(CARLA_ENGINE_THREAD_HPP) $(CARLA_PLUGIN_HPP)
  77. CARLA_ENGINE_CPP = $(CWD)/backend/engine/CarlaEngine.cpp $(CARLA_ENGINE_CPP_DEPS)
  78. CARLA_ENGINE_BRIDGE_CPP = $(CWD)/backend/engine/CarlaEngineBridge.cpp $(CARLA_ENGINE_CPP_BRIDGE_DEPS)
  79. CARLA_ENGINE_INTERNAL_CPP = $(CWD)/backend/engine/CarlaEngineInternal.cpp $(CARLA_ENGINE_CPP_INTERNAL_DEPS)
  80. CARLA_ENGINE_JACK_CPP = $(CWD)/backend/engine/CarlaEngineJack.cpp $(CARLA_ENGINE_CPP_JACK_DEPS)
  81. CARLA_ENGINE_JUCE_CPP = $(CWD)/backend/engine/CarlaEngineJuce.cpp $(CARLA_ENGINE_CPP_JUCE_DEPS)
  82. CARLA_ENGINE_NATIVE_CPP = $(CWD)/backend/engine/CarlaEngineNative.cpp $(CARLA_ENGINE_CPP_NATIVE_DEPS)
  83. CARLA_ENGINE_OSC_CPP = $(CWD)/backend/engine/CarlaEngineOsc.cpp $(CARLA_ENGINE_CPP_OSC_DEPS)
  84. CARLA_ENGINE_RTAUDIO_CPP = $(CWD)/backend/engine/CarlaEngineRtAudio.cpp $(CARLA_ENGINE_CPP_RTAUDIO_DEPS)
  85. CARLA_ENGINE_THREAD_CPP = $(CWD)/backend/engine/CarlaEngineThread.cpp $(CARLA_ENGINE_CPP_THREAD_DEPS)
  86. # ----------------------------------------------------------------------------------------------------------------------------
  87. # backend/plugin
  88. CARLA_PLUGIN_THREAD_HPP = $(CWD)/backend/plugin/CarlaPluginThread.hpp $(CARLA_BACKEND_H) $(CARLA_THREAD_HPP)
  89. CARLA_PLUGIN_UI_HPP = $(CWD)/backend/plugin/CarlaPluginUi.hpp $(CARLA_UTILS_HPP)
  90. CARLA_PLUGIN_INTERNAL_HPP = $(CWD)/backend/plugin/CarlaPluginInternal.hpp $(CARLA_PLUGIN_HPP) $(CARLA_PLUGIN_THREAD_HPP) $(CARLA_OSC_UTILS_HPP) $(CARLA_STATE_UTILS_HPP) $(CARLA_MUTEX_HPP) $(RT_LINKED_LIST_HPP) $(CARLA_MIDI_H)
  91. AU_PLUGIN_CPP_DEPS = $(CARLA_PLUGIN_HPP) $(CARLA_ENGINE_HPP) $(CARLA_UTILS_HPP)
  92. BRIDGE_PLUGIN_CPP_DEPS = $(CARLA_PLUGIN_INTERNAL_HPP) $(CARLA_ENGINE_HPP) $(CARLA_BACKEND_UTILS_HPP) $(CARLA_BRIDGE_UTILS_HPP) $(CARLA_MATH_UTILS_HPP) $(CARLA_SHM_UTILS_HPP) $(JACK_BRIDGE_HPP)
  93. CARLA_PLUGIN_CPP_DEPS = $(CARLA_PLUGIN_INTERNAL_HPP) $(CARLA_ENGINE_HPP) $(CARLA_BACKEND_UTILS_HPP) $(CARLA_MATH_UTILS_HPP) $(CARLA_PLUGIN_UI_HPP)
  94. CARLA_PLUGIN_INTERNAL_CPP_DEPS = $(CARLA_PLUGIN_INTERNAL_HPP) $(CARLA_ENGINE_HPP) $(CARLA_LIB_COUNTER_HPP) $(CARLA_MATH_UTILS_HPP)
  95. CARLA_PLUGIN_THREAD_CPP_DEPS = $(CARLA_PLUGIN_HPP) $(CARLA_PLUGIN_THREAD_HPP) $(CARLA_ENGINE_HPP)
  96. CARLA_PLUGIN_UI_CPP_DEPS = $(CARLA_PLUGIN_UI_HPP)
  97. CSOUND_PLUGIN_CPP_DEPS = $(CARLA_PLUGIN_INTERNAL_HPP) $(CARLA_ENGINE_HPP)
  98. DSSI_PLUGIN_CPP_DEPS = $(CARLA_PLUGIN_INTERNAL_HPP) $(CARLA_ENGINE_HPP) $(CARLA_DSSI_UTILS_HPP) $(CARLA_MATH_UTILS_HPP)
  99. FLUIDSYNTH_PLUGIN_CPP_DEPS = $(CARLA_PLUGIN_INTERNAL_HPP) $(CARLA_ENGINE_HPP) $(CARLA_MATH_UTILS_HPP)
  100. JUCE_PLUGIN_CPP_DEPS = $(CARLA_PLUGIN_INTERNAL_HPP) $(CARLA_ENGINE_HPP)
  101. LADSPA_PLUGIN_CPP_DEPS = $(CARLA_PLUGIN_INTERNAL_HPP) $(CARLA_ENGINE_HPP) $(CARLA_LADSPA_UTILS_HPP) $(CARLA_MATH_UTILS_HPP)
  102. LINUXSAMPLER_PLUGIN_CPP_DEPS = $(CARLA_PLUGIN_INTERNAL_HPP) $(CARLA_ENGINE_HPP) $(CARLA_BACKEND_UTILS_HPP) $(CARLA_MATH_UTILS_HPP)
  103. LV2_PLUGIN_CPP_DEPS = $(CARLA_PLUGIN_INTERNAL_HPP) $(CARLA_ENGINE_HPP) $(CARLA_LV2_UTILS_HPP) $(CARLA_MATH_UTILS_HPP) $(CARLA_PLUGIN_UI_HPP) $(LV2_ATOM_QUEUE_HPP) $(CARLA_ENGINE_OSC_HPP)
  104. NATIVE_PLUGIN_CPP_DEPS = $(CARLA_PLUGIN_INTERNAL_HPP) $(CARLA_ENGINE_HPP) $(CARLA_MATH_UTILS_HPP) $(CARLA_NATIVE_H)
  105. REWIRE_PLUGIN_CPP_DEPS = $(CARLA_PLUGIN_INTERNAL_HPP) $(CARLA_ENGINE_HPP) $(CARLA_LIB_UTILS_HPP) $(CARLA_MATH_UTILS_HPP)
  106. VST_PLUGIN_CPP_DEPS = $(CARLA_PLUGIN_INTERNAL_HPP) $(CARLA_ENGINE_HPP) $(CARLA_VST_UTILS_HPP) $(CARLA_MATH_UTILS_HPP) $(CARLA_PLUGIN_UI_HPP)
  107. VST3_PLUGIN_CPP_DEPS = $(CARLA_PLUGIN_HPP) $(CARLA_ENGINE_HPP) $(CARLA_UTILS_HPP)
  108. AU_PLUGIN_CPP = $(CWD)/backend/plugin/AuPlugin.cpp $(AU_PLUGIN_CPP_DEPS)
  109. BRIDGE_PLUGIN_CPP = $(CWD)/backend/plugin/BridgePlugin.cpp $(BRIDGE_PLUGIN_CPP_DEPS)
  110. CARLA_PLUGIN_CPP = $(CWD)/backend/plugin/CarlaPlugin.cpp $(CARLA_PLUGIN_CPP_DEPS)
  111. CARLA_PLUGIN_INTERNAL_CPP = $(CWD)/backend/plugin/CarlaPluginInternal.cpp $(CARLA_PLUGIN_INTERNAL_CPP_DEPS)
  112. CARLA_PLUGIN_THREAD_CPP = $(CWD)/backend/plugin/CarlaPluginThread.cpp $(CARLA_PLUGIN_THREAD_CPP_DEPS)
  113. CARLA_PLUGIN_UI_CPP = $(CWD)/backend/plugin/CarlaPluginUi.cpp $(CARLA_PLUGIN_UI_CPP_DEPS)
  114. CSOUND_PLUGIN_CPP = $(CWD)/backend/plugin/CsoundPlugin.cpp $(CSOUND_PLUGIN_CPP_DEPS)
  115. DSSI_PLUGIN_CPP = $(CWD)/backend/plugin/DssiPlugin.cpp $(DSSI_PLUGIN_CPP_DEPS)
  116. FLUIDSYNTH_PLUGIN_CPP = $(CWD)/backend/plugin/FluidSynthPlugin.cpp $(FLUIDSYNTH_PLUGIN_CPP_DEPS)
  117. JUCE_PLUGIN_CPP = $(CWD)/backend/plugin/JucePlugin.cpp $(JUCE_PLUGIN_CPP_DEPS)
  118. LADSPA_PLUGIN_CPP = $(CWD)/backend/plugin/LadspaPlugin.cpp $(LADSPA_PLUGIN_CPP_DEPS)
  119. LINUXSAMPLER_PLUGIN_CPP = $(CWD)/backend/plugin/LinuxSamplerPlugin.cpp $(LINUXSAMPLER_PLUGIN_CPP_DEPS)
  120. LV2_PLUGIN_CPP = $(CWD)/backend/plugin/Lv2Plugin.cpp $(LV2_PLUGIN_CPP_DEPS)
  121. NATIVE_PLUGIN_CPP = $(CWD)/backend/plugin/NativePlugin.cpp $(NATIVE_PLUGIN_CPP_DEPS)
  122. REWIRE_PLUGIN_CPP = $(CWD)/backend/plugin/ReWirePlugin.cpp $(REWIRE_PLUGIN_CPP_DEPS)
  123. VST_PLUGIN_CPP = $(CWD)/backend/plugin/VstPlugin.cpp $(VST_PLUGIN_CPP_DEPS)
  124. VST3_PLUGIN_CPP = $(CWD)/backend/plugin/Vst3Plugin.cpp $(VST3_PLUGIN_CPP_DEPS)
  125. # ----------------------------------------------------------------------------------------------------------------------------
  126. # backend/standalone
  127. CARLA_STANDALONE_CPP_DEPS = $(CARLA_HOST_H) $(CARLA_MIDI_H) $(CARLA_NATIVE_H) $(CARLA_ENGINE_HPP) $(CARLA_PLUGIN_HPP) $(CARLA_BACKEND_UTILS_HPP) $(CARLA_OSC_UTILS_HPP) $(CARLA_DSSI_UTILS_CPP) $(CARLA_STATE_UTILS_CPP)
  128. CARLA_STANDALONE_CPP = $(CWD)/backend/standalone/CarlaStandalone.cpp $(CARLA_STANDALONE_CPP_DEPS)
  129. # ----------------------------------------------------------------------------------------------------------------------------