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.

100 lines
2.7KB

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