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.

116 lines
3.1KB

  1. #!/usr/bin/make -f
  2. # Makefile for carla-engine #
  3. # ------------------------- #
  4. # Created by falkTX
  5. #
  6. CWD=../..
  7. include ../Makefile.mk
  8. # Workaround GCC bug
  9. ifeq ($(TESTBUILD),true)
  10. ifeq ($(USING_JUCE_AUDIO_DEVICES),true)
  11. BUILD_CXX_FLAGS += -Wno-undef
  12. endif
  13. endif
  14. # ---------------------------------------------------------------------------------------------------------------------
  15. OBJS = \
  16. $(OBJDIR)/CarlaEngine.cpp.o \
  17. $(OBJDIR)/CarlaEngineClient.cpp.o \
  18. $(OBJDIR)/CarlaEngineData.cpp.o \
  19. $(OBJDIR)/CarlaEngineDummy.cpp.o \
  20. $(OBJDIR)/CarlaEngineGraph.cpp.o \
  21. $(OBJDIR)/CarlaEngineInternal.cpp.o \
  22. $(OBJDIR)/CarlaEnginePorts.cpp.o \
  23. $(OBJDIR)/CarlaEngineThread.cpp.o
  24. ifeq ($(HAVE_LIBLO),true)
  25. OBJS += \
  26. $(OBJDIR)/CarlaEngineOsc.cpp.o \
  27. $(OBJDIR)/CarlaEngineOscHandlers.cpp.o \
  28. $(OBJDIR)/CarlaEngineOscSend.cpp.o
  29. endif
  30. OBJSa = $(OBJS) \
  31. $(OBJDIR)/CarlaEngineJack.cpp.o \
  32. $(OBJDIR)/CarlaEngineNative.cpp.o
  33. ifeq ($(USING_JUCE_AUDIO_DEVICES),true)
  34. OBJSa += \
  35. $(OBJDIR)/CarlaEngineJuce.cpp.o
  36. else
  37. OBJSa += \
  38. $(OBJDIR)/CarlaEngineRtAudio.cpp.o
  39. endif
  40. OBJSp = $(OBJS) \
  41. $(OBJDIR)/CarlaEngineNative.cpp.exp.o
  42. TARGETS = \
  43. $(MODULEDIR)/carla_engine.a \
  44. $(MODULEDIR)/carla_engine_plugin.a
  45. # ---------------------------------------------------------------------------------------------------------------------
  46. all: $(TARGETS)
  47. # ---------------------------------------------------------------------------------------------------------------------
  48. clean:
  49. rm -f $(OBJSa) $(OBJSp) $(TARGETS)
  50. debug:
  51. $(MAKE) DEBUG=true
  52. # ---------------------------------------------------------------------------------------------------------------------
  53. $(MODULEDIR)/carla_engine.a: $(OBJSa)
  54. -@mkdir -p $(MODULEDIR)
  55. @echo "Creating carla_engine.a"
  56. @rm -f $@
  57. @$(AR) crs $@ $^
  58. $(MODULEDIR)/carla_engine_plugin.a: $(OBJSp)
  59. -@mkdir -p $(MODULEDIR)
  60. @echo "Creating carla_engine_plugin.a"
  61. @rm -f $@
  62. @$(AR) crs $@ $^
  63. # ---------------------------------------------------------------------------------------------------------------------
  64. $(OBJDIR)/CarlaEngineRtAudio.cpp.o: CarlaEngineRtAudio.cpp
  65. -@mkdir -p $(OBJDIR)
  66. @echo "Compiling CarlaEngineRtAudio.cpp"
  67. @$(CXX) $< $(BUILD_CXX_FLAGS) $(RTAUDIO_FLAGS) $(RTMIDI_FLAGS) -c -o $@
  68. ifeq ($(MACOS),true)
  69. $(OBJDIR)/CarlaEngineNative.cpp.exp.o: CarlaEngineNative.cpp
  70. -@mkdir -p $(OBJDIR)
  71. @echo "Compiling CarlaEngineNative.cpp (plugin)"
  72. @$(CXX) $< $(BUILD_CXX_FLAGS) -DCARLA_PLUGIN_EXPORT -ObjC++ -c -o $@
  73. else
  74. $(OBJDIR)/CarlaEngineNative.cpp.exp.o: CarlaEngineNative.cpp
  75. -@mkdir -p $(OBJDIR)
  76. @echo "Compiling CarlaEngineNative.cpp (plugin)"
  77. @$(CXX) $< $(BUILD_CXX_FLAGS) -DCARLA_PLUGIN_EXPORT -c -o $@
  78. endif
  79. ifeq ($(JACKBRIDGE_DIRECT),true)
  80. $(OBJDIR)/CarlaEngineJack.cpp.o: CarlaEngineJack.cpp
  81. -@mkdir -p $(OBJDIR)
  82. @echo "Compiling CarlaEngineJack.cpp"
  83. @$(CXX) $< $(BUILD_CXX_FLAGS) $(JACK_FLAGS) -c -o $@
  84. endif
  85. $(OBJDIR)/%.cpp.o: %.cpp
  86. -@mkdir -p $(OBJDIR)
  87. @echo "Compiling $<"
  88. @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  89. -include $(OBJSa:%.o=%.d)
  90. -include $(OBJDIR)/CarlaEngineNative.cpp.exp.d
  91. # ---------------------------------------------------------------------------------------------------------------------