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.

97 lines
4.0KB

  1. #!/usr/bin/make -f
  2. # Makefile for carla-engine #
  3. # ------------------------- #
  4. # Created by falkTX
  5. #
  6. include ../Makefile.mk
  7. # ----------------------------------------------------------------------------------------------------------------------------
  8. CARLA_ENGINE_OSC_HPP = CarlaEngineOsc.hpp $(CARLA_BACKEND_H) $(CARLA_OSC_UTILS_HPP) $(CARLA_STRING_HPP)
  9. CARLA_ENGINE_THREAD_HPP = CarlaEngineThread.hpp $(CARLA_BACKEND_H) $(CARLA_THREAD_HPP)
  10. CARLA_ENGINE_INTERNAL_HPP = CarlaEngineInternal.hpp $(CARLA_ENGINE_OSC_HPP) $(CARLA_ENGINE_THREAD_HPP) $(CARLA_ENGINE_HPP) $(CARLA_MUTEX_HPP) $(LINKED_LIST_HPP)
  11. # ----------------------------------------------------------------------------------------------------------------------------
  12. OBJS = \
  13. CarlaEngine.cpp.o \
  14. CarlaEngineInternal.cpp.o \
  15. CarlaEngineOsc.cpp.o \
  16. CarlaEngineThread.cpp.o
  17. OBJSa = $(OBJS) \
  18. CarlaEngineJack.cpp.o \
  19. CarlaEngineRtAudio.cpp.o
  20. ifeq ($(HAVE_JUCE),true)
  21. OBJSa += \
  22. CarlaEngineJuce.cpp.o
  23. endif
  24. ifneq ($(WIN32),true)
  25. OBJSa += \
  26. CarlaEngineNative.cpp.o
  27. OBJSp = $(OBJS) \
  28. CarlaEngineNative.cpp.exp.o
  29. endif
  30. # ----------------------------------------------------------------------------------------------------------------------------
  31. TARGETa = ../carla_engine.a
  32. ifneq ($(WIN32),true)
  33. TARGETp = ../carla_engine_plugin.a
  34. endif
  35. # ----------------------------------------------------------------------------------------------------------------------------
  36. all: $(TARGETa) $(TARGETp)
  37. clean:
  38. $(RM) *.o $(TARGET) $(TARGETp)
  39. debug:
  40. $(MAKE) DEBUG=true
  41. # ----------------------------------------------------------------------------------------------------------------------------
  42. $(TARGETa): $(OBJSa)
  43. $(RM) $@
  44. $(AR) crs $@ $^
  45. $(TARGETp): $(OBJSp)
  46. $(RM) $@
  47. $(AR) crs $@ $^
  48. # ----------------------------------------------------------------------------------------------------------------------------
  49. CarlaEngine.cpp.o: CarlaEngine.cpp $(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)
  50. $(CXX) $< $(BUILD_CXX_FLAGS) $(QTCORE_FLAGS) $(QTXML_FLAGS) -c -o $@
  51. CarlaEngineInternal.cpp.o: CarlaEngineInternal.cpp $(CARLA_ENGINE_INTERNAL_HPP) $(CARLA_PLUGIN_HPP) $(CARLA_MIDI_H) $(CARLA_MATH_UTILS_HPP)
  52. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  53. CarlaEngineOsc.cpp.o: CarlaEngineOsc.cpp $(CARLA_ENGINE_HPP) $(CARLA_ENGINE_OSC_HPP) $(CARLA_PLUGIN_HPP) $(CARLA_BRIDGE_UTILS_HPP) $(CARLA_MIDI_H)
  54. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  55. CarlaEngineThread.cpp.o: CarlaEngineThread.cpp $(CARLA_ENGINE_HPP) $(CARLA_ENGINE_THREAD_HPP) $(CARLA_PLUGIN_HPP)
  56. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  57. CarlaEngineJack.cpp.o: CarlaEngineJack.cpp $(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)
  58. $(CXX) $< $(BUILD_CXX_FLAGS) $(QTCORE_FLAGS) -c -o $@
  59. CarlaEngineRtAudio.cpp.o: CarlaEngineRtAudio.cpp $(CARLA_ENGINE_INTERNAL_HPP) $(CARLA_BACKEND_UTILS_HPP) $(CARLA_MATH_UTILS_HPP) $(RT_LINKED_LIST_HPP) $(RTAUDIO_HPP) $(RTMIDI_HPP)
  60. $(CXX) $< $(BUILD_CXX_FLAGS) $(RTAUDIO_FLAGS) $(RTMIDI_FLAGS) -c -o $@
  61. CarlaEngineJuce.cpp.o: CarlaEngineJuce.cpp $(CARLA_ENGINE_INTERNAL_HPP) $(CARLA_BACKEND_UTILS_HPP)
  62. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  63. CarlaEngineNative.cpp.o: CarlaEngineNative.cpp $(CARLA_ENGINE_INTERNAL_HPP) $(CARLA_PLUGIN_HPP) $(CARLA_BACKEND_UTILS_HPP) $(CARLA_MATH_UTILS_HPP) $(CARLA_PIPE_UTILS_HPP) $(CARLA_STATE_UTILS_HPP) $(CARLA_NATIVE_HPP) $(CARLA_STATE_UTILS_CPP)
  64. $(CXX) $< $(BUILD_CXX_FLAGS) $(QTCORE_FLAGS) $(QTXML_FLAGS) -c -o $@
  65. CarlaEngineNative.cpp.exp.o: CarlaEngineNative.cpp $(CARLA_ENGINE_INTERNAL_HPP) $(CARLA_PLUGIN_HPP) $(CARLA_BACKEND_UTILS_HPP) $(CARLA_MATH_UTILS_HPP) $(CARLA_PIPE_UTILS_HPP) $(CARLA_STATE_UTILS_HPP) $(CARLA_NATIVE_HPP) $(CARLA_STATE_UTILS_CPP)
  66. $(CXX) $< $(BUILD_CXX_FLAGS) $(QTCORE_FLAGS) $(QTXML_FLAGS) -DCARLA_PLUGIN_EXPORT -c -o $@
  67. # ----------------------------------------------------------------------------------------------------------------------------