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.

132 lines
3.4KB

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