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.

107 lines
2.8KB

  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),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)/CarlaEngineGraph.cpp.o \
  20. $(OBJDIR)/CarlaEngineInternal.cpp.o \
  21. $(OBJDIR)/CarlaEnginePorts.cpp.o \
  22. $(OBJDIR)/CarlaEngineThread.cpp.o
  23. ifeq ($(HAVE_LIBLO),true)
  24. OBJS += \
  25. $(OBJDIR)/CarlaEngineOsc.cpp.o \
  26. $(OBJDIR)/CarlaEngineOscSend.cpp.o
  27. endif
  28. OBJSa = $(OBJS) \
  29. $(OBJDIR)/CarlaEngineJack.cpp.o \
  30. $(OBJDIR)/CarlaEngineNative.cpp.o
  31. ifeq ($(USING_JUCE),true)
  32. OBJSa += \
  33. $(OBJDIR)/CarlaEngineJuce.cpp.o
  34. else
  35. OBJSa += \
  36. $(OBJDIR)/CarlaEngineRtAudio.cpp.o
  37. endif
  38. OBJSp = $(OBJS) \
  39. $(OBJDIR)/CarlaEngineNative.cpp.exp.o
  40. TARGETS = \
  41. $(MODULEDIR)/carla_engine.a \
  42. $(MODULEDIR)/carla_engine_plugin.a
  43. # ----------------------------------------------------------------------------------------------------------------------------
  44. all: $(TARGETS)
  45. # ----------------------------------------------------------------------------------------------------------------------------
  46. clean:
  47. rm -f $(OBJSa) $(OBJSp) $(TARGETS)
  48. debug:
  49. $(MAKE) DEBUG=true
  50. # ----------------------------------------------------------------------------------------------------------------------------
  51. $(MODULEDIR)/carla_engine.a: $(OBJSa)
  52. -@mkdir -p $(MODULEDIR)
  53. @echo "Creating carla_engine.a"
  54. @rm -f $@
  55. @$(AR) crs $@ $^
  56. $(MODULEDIR)/carla_engine_plugin.a: $(OBJSp)
  57. -@mkdir -p $(MODULEDIR)
  58. @echo "Creating carla_engine_plugin.a"
  59. @rm -f $@
  60. @$(AR) crs $@ $^
  61. # ----------------------------------------------------------------------------------------------------------------------------
  62. $(OBJDIR)/CarlaEngineRtAudio.cpp.o: CarlaEngineRtAudio.cpp
  63. -@mkdir -p $(OBJDIR)
  64. @echo "Compiling CarlaEngineRtAudio.cpp"
  65. @$(CXX) $< $(BUILD_CXX_FLAGS) $(RTAUDIO_FLAGS) $(RTMIDI_FLAGS) -c -o $@
  66. ifeq ($(MACOS),true)
  67. $(OBJDIR)/CarlaEngineNative.cpp.exp.o: CarlaEngineNative.cpp
  68. -@mkdir -p $(OBJDIR)
  69. @echo "Compiling CarlaEngineNative.cpp (plugin)"
  70. @$(CXX) $< $(BUILD_CXX_FLAGS) -DCARLA_PLUGIN_EXPORT -ObjC++ -c -o $@
  71. else
  72. $(OBJDIR)/CarlaEngineNative.cpp.exp.o: CarlaEngineNative.cpp
  73. -@mkdir -p $(OBJDIR)
  74. @echo "Compiling CarlaEngineNative.cpp (plugin)"
  75. @$(CXX) $< $(BUILD_CXX_FLAGS) -DCARLA_PLUGIN_EXPORT -c -o $@
  76. endif
  77. $(OBJDIR)/%.cpp.o: %.cpp
  78. -@mkdir -p $(OBJDIR)
  79. @echo "Compiling $<"
  80. @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  81. -include $(OBJSa:%.o=%.d)
  82. -include $(OBJDIR)/CarlaEngineNative.cpp.exp.d
  83. # ----------------------------------------------------------------------------------------------------------------------------