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.

134 lines
4.2KB

  1. #!/usr/bin/make -f
  2. # Makefile for carla-backend #
  3. # -------------------------- #
  4. # Created by falkTX
  5. #
  6. CWD=..
  7. include Makefile.mk
  8. # ---------------------------------------------------------------------------------------------------------------------
  9. OBJS_standalone = \
  10. $(OBJDIR)/CarlaStandalone.cpp.o \
  11. $(OBJDIR)/CarlaStandaloneNSM.cpp.o
  12. TARGETS = \
  13. $(BINDIR)/libcarla_standalone2$(LIB_EXT)
  14. # ---------------------------------------------------------------------------------------------------------------------
  15. STANDALONE_LIBS = $(MODULEDIR)/carla_engine.a
  16. STANDALONE_LIBS += $(MODULEDIR)/carla_plugin.a
  17. STANDALONE_LIBS += $(MODULEDIR)/jackbridge.a
  18. STANDALONE_LIBS += $(MODULEDIR)/audio_decoder.a
  19. STANDALONE_LIBS += $(MODULEDIR)/lilv.a
  20. STANDALONE_LIBS += $(MODULEDIR)/native-plugins.a
  21. STANDALONE_LIBS += $(MODULEDIR)/rtmempool.a
  22. STANDALONE_LIBS += $(MODULEDIR)/sfzero.a
  23. STANDALONE_LIBS += $(MODULEDIR)/water.a
  24. ifeq ($(HAVE_DGL),true)
  25. STANDALONE_LIBS += $(MODULEDIR)/dgl.a
  26. endif
  27. ifeq ($(HAVE_HYLIA),true)
  28. STANDALONE_LIBS += $(MODULEDIR)/hylia.a
  29. endif
  30. ifeq ($(USING_JUCE),true)
  31. STANDALONE_LIBS += $(MODULEDIR)/juce_audio_basics.a
  32. STANDALONE_LIBS += $(MODULEDIR)/juce_audio_devices.a
  33. STANDALONE_LIBS += $(MODULEDIR)/juce_audio_processors.a
  34. STANDALONE_LIBS += $(MODULEDIR)/juce_core.a
  35. STANDALONE_LIBS += $(MODULEDIR)/juce_data_structures.a
  36. STANDALONE_LIBS += $(MODULEDIR)/juce_events.a
  37. STANDALONE_LIBS += $(MODULEDIR)/juce_graphics.a
  38. STANDALONE_LIBS += $(MODULEDIR)/juce_gui_basics.a
  39. ifeq ($(MACOS),true)
  40. STANDALONE_LIBS += $(MODULEDIR)/juce_gui_extra.a
  41. endif
  42. else
  43. STANDALONE_LIBS += $(MODULEDIR)/rtaudio.a
  44. STANDALONE_LIBS += $(MODULEDIR)/rtmidi.a
  45. endif
  46. # ---------------------------------------------------------------------------------------------------------------------
  47. STANDALONE_LINK_FLAGS = $(JACKBRIDGE_LIBS)
  48. STANDALONE_LINK_FLAGS += $(LILV_LIBS)
  49. STANDALONE_LINK_FLAGS += $(NATIVE_PLUGINS_LIBS)
  50. STANDALONE_LINK_FLAGS += $(RTMEMPOOL_LIBS)
  51. STANDALONE_LINK_FLAGS += $(WATER_LIBS)
  52. STANDALONE_LINK_FLAGS += $(LIBLO_LIBS)
  53. STANDALONE_LINK_FLAGS += $(MAGIC_LIBS)
  54. STANDALONE_LINK_FLAGS += $(FLUIDSYNTH_LIBS)
  55. STANDALONE_LINK_FLAGS += $(X11_LIBS)
  56. ifeq ($(USING_JUCE),true)
  57. STANDALONE_LINK_FLAGS += $(JUCE_AUDIO_BASICS_LIBS)
  58. STANDALONE_LINK_FLAGS += $(JUCE_AUDIO_DEVICES_LIBS)
  59. STANDALONE_LINK_FLAGS += $(JUCE_AUDIO_PROCESSORS_LIBS)
  60. STANDALONE_LINK_FLAGS += $(JUCE_CORE_LIBS)
  61. STANDALONE_LINK_FLAGS += $(JUCE_DATA_STRUCTURES_LIBS)
  62. STANDALONE_LINK_FLAGS += $(JUCE_EVENTS_LIBS)
  63. STANDALONE_LINK_FLAGS += $(JUCE_GRAPHICS_LIBS)
  64. STANDALONE_LINK_FLAGS += $(JUCE_GUI_BASICS_LIBS)
  65. ifeq ($(MACOS),true)
  66. STANDALONE_LINK_FLAGS += $(JUCE_GUI_EXTRA_LIBS)
  67. endif
  68. else
  69. STANDALONE_LINK_FLAGS += $(RTAUDIO_LIBS)
  70. STANDALONE_LINK_FLAGS += $(RTMIDI_LIBS)
  71. endif
  72. ifeq ($(JACKBRIDGE_DIRECT),true)
  73. STANDALONE_LINK_FLAGS += $(JACK_LIBS)
  74. endif
  75. # ---------------------------------------------------------------------------------------------------------------------
  76. all: $(TARGETS)
  77. $(MAKE) -C utils
  78. # ---------------------------------------------------------------------------------------------------------------------
  79. clean:
  80. rm -f $(OBJS_standalone) $(TARGETS)
  81. $(MAKE) clean -C engine
  82. $(MAKE) clean -C plugin
  83. $(MAKE) clean -C utils
  84. debug:
  85. $(MAKE) DEBUG=true
  86. doxygen: CarlaBackend.doxygen
  87. doxygen $^
  88. # ---------------------------------------------------------------------------------------------------------------------
  89. $(BINDIR)/libcarla_standalone2$(LIB_EXT): $(OBJS_standalone) $(STANDALONE_LIBS)
  90. -@mkdir -p $(BINDIR)
  91. @echo "Linking libcarla_standalone2$(LIB_EXT)"
  92. @$(CXX) $(OBJS_standalone) $(LIBS_START) $(STANDALONE_LIBS) $(LIBS_END) $(LINK_FLAGS) $(STANDALONE_LINK_FLAGS) $(SHARED) -o $@
  93. # ---------------------------------------------------------------------------------------------------------------------
  94. ifeq ($(MACOS),true)
  95. $(OBJDIR)/CarlaStandalone.cpp.o: CarlaStandalone.cpp
  96. -@mkdir -p $(OBJDIR)
  97. @echo "Compiling $<"
  98. @$(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ -c -o $@
  99. endif
  100. $(OBJDIR)/%.cpp.o: %.cpp
  101. -@mkdir -p $(OBJDIR)
  102. @echo "Compiling $<"
  103. @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  104. -include $(OBJS_standalone:%.o=%.d)
  105. # ---------------------------------------------------------------------------------------------------------------------