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.

143 lines
4.4KB

  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. ifeq ($(USING_JUCE_AUDIO_DEVICES),true)
  33. STANDALONE_LIBS += $(MODULEDIR)/juce_audio_devices.a
  34. endif
  35. STANDALONE_LIBS += $(MODULEDIR)/juce_audio_processors.a
  36. STANDALONE_LIBS += $(MODULEDIR)/juce_core.a
  37. STANDALONE_LIBS += $(MODULEDIR)/juce_data_structures.a
  38. STANDALONE_LIBS += $(MODULEDIR)/juce_events.a
  39. STANDALONE_LIBS += $(MODULEDIR)/juce_graphics.a
  40. STANDALONE_LIBS += $(MODULEDIR)/juce_gui_basics.a
  41. ifeq ($(USING_JUCE_GUI_EXTRA),true)
  42. STANDALONE_LIBS += $(MODULEDIR)/juce_gui_extra.a
  43. endif
  44. endif
  45. ifneq ($(USING_JUCE_AUDIO_DEVICES),true)
  46. STANDALONE_LIBS += $(MODULEDIR)/rtaudio.a
  47. STANDALONE_LIBS += $(MODULEDIR)/rtmidi.a
  48. endif
  49. # ---------------------------------------------------------------------------------------------------------------------
  50. STANDALONE_LINK_FLAGS = $(HYLIA_LIBS)
  51. STANDALONE_LINK_FLAGS += $(JACKBRIDGE_LIBS)
  52. STANDALONE_LINK_FLAGS += $(LILV_LIBS)
  53. STANDALONE_LINK_FLAGS += $(NATIVE_PLUGINS_LIBS)
  54. STANDALONE_LINK_FLAGS += $(RTMEMPOOL_LIBS)
  55. STANDALONE_LINK_FLAGS += $(WATER_LIBS)
  56. STANDALONE_LINK_FLAGS += $(LIBLO_LIBS)
  57. STANDALONE_LINK_FLAGS += $(MAGIC_LIBS)
  58. STANDALONE_LINK_FLAGS += $(FLUIDSYNTH_LIBS)
  59. STANDALONE_LINK_FLAGS += $(X11_LIBS)
  60. ifeq ($(USING_JUCE),true)
  61. STANDALONE_LINK_FLAGS += $(JUCE_AUDIO_BASICS_LIBS)
  62. ifeq ($(USING_JUCE_AUDIO_DEVICES),true)
  63. STANDALONE_LINK_FLAGS += $(JUCE_AUDIO_DEVICES_LIBS)
  64. endif
  65. STANDALONE_LINK_FLAGS += $(JUCE_AUDIO_PROCESSORS_LIBS)
  66. STANDALONE_LINK_FLAGS += $(JUCE_CORE_LIBS)
  67. STANDALONE_LINK_FLAGS += $(JUCE_DATA_STRUCTURES_LIBS)
  68. STANDALONE_LINK_FLAGS += $(JUCE_EVENTS_LIBS)
  69. STANDALONE_LINK_FLAGS += $(JUCE_GRAPHICS_LIBS)
  70. STANDALONE_LINK_FLAGS += $(JUCE_GUI_BASICS_LIBS)
  71. ifeq ($(USING_JUCE_GUI_EXTRA),true)
  72. STANDALONE_LINK_FLAGS += $(JUCE_GUI_EXTRA_LIBS)
  73. endif
  74. endif
  75. ifneq ($(USING_JUCE_AUDIO_DEVICES),true)
  76. STANDALONE_LINK_FLAGS += $(RTAUDIO_LIBS)
  77. STANDALONE_LINK_FLAGS += $(RTMIDI_LIBS)
  78. endif
  79. ifeq ($(JACKBRIDGE_DIRECT),true)
  80. STANDALONE_LINK_FLAGS += $(JACK_LIBS)
  81. endif
  82. # ---------------------------------------------------------------------------------------------------------------------
  83. all: $(TARGETS)
  84. $(MAKE) -C utils
  85. # ---------------------------------------------------------------------------------------------------------------------
  86. clean:
  87. rm -f $(OBJS_standalone) $(TARGETS)
  88. $(MAKE) clean -C engine
  89. $(MAKE) clean -C plugin
  90. $(MAKE) clean -C utils
  91. debug:
  92. $(MAKE) DEBUG=true
  93. doxygen: CarlaBackend.doxygen
  94. doxygen $^
  95. # ---------------------------------------------------------------------------------------------------------------------
  96. $(BINDIR)/libcarla_standalone2$(LIB_EXT): $(OBJS_standalone) $(STANDALONE_LIBS)
  97. -@mkdir -p $(BINDIR)
  98. @echo "Linking libcarla_standalone2$(LIB_EXT)"
  99. @$(CXX) $(OBJS_standalone) $(LIBS_START) $(STANDALONE_LIBS) $(LIBS_END) $(LINK_FLAGS) $(STANDALONE_LINK_FLAGS) $(SHARED) -o $@
  100. # ---------------------------------------------------------------------------------------------------------------------
  101. ifeq ($(MACOS),true)
  102. $(OBJDIR)/CarlaStandalone.cpp.o: CarlaStandalone.cpp
  103. -@mkdir -p $(OBJDIR)
  104. @echo "Compiling $<"
  105. @$(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ -c -o $@
  106. endif
  107. $(OBJDIR)/%.cpp.o: %.cpp
  108. -@mkdir -p $(OBJDIR)
  109. @echo "Compiling $<"
  110. @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  111. -include $(OBJS_standalone:%.o=%.d)
  112. # ---------------------------------------------------------------------------------------------------------------------