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.

135 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 = $(HYLIA_LIBS)
  48. STANDALONE_LINK_FLAGS += $(JACKBRIDGE_LIBS)
  49. STANDALONE_LINK_FLAGS += $(LILV_LIBS)
  50. STANDALONE_LINK_FLAGS += $(NATIVE_PLUGINS_LIBS)
  51. STANDALONE_LINK_FLAGS += $(RTMEMPOOL_LIBS)
  52. STANDALONE_LINK_FLAGS += $(WATER_LIBS)
  53. STANDALONE_LINK_FLAGS += $(LIBLO_LIBS)
  54. STANDALONE_LINK_FLAGS += $(MAGIC_LIBS)
  55. STANDALONE_LINK_FLAGS += $(FLUIDSYNTH_LIBS)
  56. STANDALONE_LINK_FLAGS += $(X11_LIBS)
  57. ifeq ($(USING_JUCE),true)
  58. STANDALONE_LINK_FLAGS += $(JUCE_AUDIO_BASICS_LIBS)
  59. STANDALONE_LINK_FLAGS += $(JUCE_AUDIO_DEVICES_LIBS)
  60. STANDALONE_LINK_FLAGS += $(JUCE_AUDIO_PROCESSORS_LIBS)
  61. STANDALONE_LINK_FLAGS += $(JUCE_CORE_LIBS)
  62. STANDALONE_LINK_FLAGS += $(JUCE_DATA_STRUCTURES_LIBS)
  63. STANDALONE_LINK_FLAGS += $(JUCE_EVENTS_LIBS)
  64. STANDALONE_LINK_FLAGS += $(JUCE_GRAPHICS_LIBS)
  65. STANDALONE_LINK_FLAGS += $(JUCE_GUI_BASICS_LIBS)
  66. ifeq ($(MACOS),true)
  67. STANDALONE_LINK_FLAGS += $(JUCE_GUI_EXTRA_LIBS)
  68. endif
  69. else
  70. STANDALONE_LINK_FLAGS += $(RTAUDIO_LIBS)
  71. STANDALONE_LINK_FLAGS += $(RTMIDI_LIBS)
  72. endif
  73. ifeq ($(JACKBRIDGE_DIRECT),true)
  74. STANDALONE_LINK_FLAGS += $(JACK_LIBS)
  75. endif
  76. # ---------------------------------------------------------------------------------------------------------------------
  77. all: $(TARGETS)
  78. $(MAKE) -C utils
  79. # ---------------------------------------------------------------------------------------------------------------------
  80. clean:
  81. rm -f $(OBJS_standalone) $(TARGETS)
  82. $(MAKE) clean -C engine
  83. $(MAKE) clean -C plugin
  84. $(MAKE) clean -C utils
  85. debug:
  86. $(MAKE) DEBUG=true
  87. doxygen: CarlaBackend.doxygen
  88. doxygen $^
  89. # ---------------------------------------------------------------------------------------------------------------------
  90. $(BINDIR)/libcarla_standalone2$(LIB_EXT): $(OBJS_standalone) $(STANDALONE_LIBS)
  91. -@mkdir -p $(BINDIR)
  92. @echo "Linking libcarla_standalone2$(LIB_EXT)"
  93. @$(CXX) $(OBJS_standalone) $(LIBS_START) $(STANDALONE_LIBS) $(LIBS_END) $(LINK_FLAGS) $(STANDALONE_LINK_FLAGS) $(SHARED) -o $@
  94. # ---------------------------------------------------------------------------------------------------------------------
  95. ifeq ($(MACOS),true)
  96. $(OBJDIR)/CarlaStandalone.cpp.o: CarlaStandalone.cpp
  97. -@mkdir -p $(OBJDIR)
  98. @echo "Compiling $<"
  99. @$(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ -c -o $@
  100. endif
  101. $(OBJDIR)/%.cpp.o: %.cpp
  102. -@mkdir -p $(OBJDIR)
  103. @echo "Compiling $<"
  104. @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  105. -include $(OBJS_standalone:%.o=%.d)
  106. # ---------------------------------------------------------------------------------------------------------------------