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. ifeq ($(MACOS_OR_WIN32),true)
  38. STANDALONE_LIBS += $(MODULEDIR)/juce_graphics.a
  39. STANDALONE_LIBS += $(MODULEDIR)/juce_gui_basics.a
  40. endif
  41. ifeq ($(MACOS),true)
  42. STANDALONE_LIBS += $(MODULEDIR)/juce_gui_extra.a
  43. endif
  44. else
  45. STANDALONE_LIBS += $(MODULEDIR)/rtaudio.a
  46. STANDALONE_LIBS += $(MODULEDIR)/rtmidi.a
  47. endif
  48. # ----------------------------------------------------------------------------------------------------------------------------
  49. STANDALONE_LINK_FLAGS = $(JACKBRIDGE_LIBS)
  50. STANDALONE_LINK_FLAGS += $(LILV_LIBS)
  51. STANDALONE_LINK_FLAGS += $(NATIVE_PLUGINS_LIBS)
  52. STANDALONE_LINK_FLAGS += $(RTMEMPOOL_LIBS)
  53. STANDALONE_LINK_FLAGS += $(WATER_LIBS)
  54. STANDALONE_LINK_FLAGS += $(LIBLO_LIBS)
  55. STANDALONE_LINK_FLAGS += $(MAGIC_LIBS)
  56. STANDALONE_LINK_FLAGS += $(FLUIDSYNTH_LIBS)
  57. STANDALONE_LINK_FLAGS += $(X11_LIBS)
  58. ifeq ($(USING_JUCE),true)
  59. STANDALONE_LINK_FLAGS += $(JUCE_AUDIO_BASICS_LIBS)
  60. STANDALONE_LINK_FLAGS += $(JUCE_AUDIO_DEVICES_LIBS)
  61. STANDALONE_LINK_FLAGS += $(JUCE_AUDIO_PROCESSORS_LIBS)
  62. STANDALONE_LINK_FLAGS += $(JUCE_CORE_LIBS)
  63. STANDALONE_LINK_FLAGS += $(JUCE_DATA_STRUCTURES_LIBS)
  64. STANDALONE_LINK_FLAGS += $(JUCE_EVENTS_LIBS)
  65. ifeq ($(MACOS_OR_WIN32),true)
  66. STANDALONE_LINK_FLAGS += $(JUCE_GRAPHICS_LIBS)
  67. STANDALONE_LINK_FLAGS += $(JUCE_GUI_BASICS_LIBS)
  68. endif
  69. ifeq ($(MACOS),true)
  70. STANDALONE_LINK_FLAGS += $(JUCE_GUI_EXTRA_LIBS)
  71. endif
  72. else
  73. STANDALONE_LINK_FLAGS += $(RTAUDIO_LIBS)
  74. STANDALONE_LINK_FLAGS += $(RTMIDI_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. # ----------------------------------------------------------------------------------------------------------------------------