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.

153 lines
4.7KB

  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. ifneq ($(STATIC_PLUGIN_TARGET),true)
  13. TARGETS = \
  14. $(BINDIR)/libcarla_standalone2$(LIB_EXT)
  15. endif
  16. # ---------------------------------------------------------------------------------------------------------------------
  17. BUILD_CXX_FLAGS += $(FLUIDSYNTH_FLAGS)
  18. # ---------------------------------------------------------------------------------------------------------------------
  19. STANDALONE_LIBS = $(MODULEDIR)/carla_engine.a
  20. STANDALONE_LIBS += $(MODULEDIR)/carla_plugin.a
  21. STANDALONE_LIBS += $(MODULEDIR)/jackbridge.a
  22. STANDALONE_LIBS += $(MODULEDIR)/audio_decoder.a
  23. STANDALONE_LIBS += $(MODULEDIR)/lilv.a
  24. STANDALONE_LIBS += $(MODULEDIR)/native-plugins.a
  25. STANDALONE_LIBS += $(MODULEDIR)/rtmempool.a
  26. STANDALONE_LIBS += $(MODULEDIR)/sfzero.a
  27. STANDALONE_LIBS += $(MODULEDIR)/water.a
  28. STANDALONE_LIBS += $(MODULEDIR)/zita-resampler.a
  29. ifeq ($(HAVE_DGL),true)
  30. STANDALONE_LIBS += $(MODULEDIR)/dgl.a
  31. endif
  32. ifeq ($(HAVE_HYLIA),true)
  33. STANDALONE_LIBS += $(MODULEDIR)/hylia.a
  34. endif
  35. ifeq ($(USING_JUCE),true)
  36. STANDALONE_LIBS += $(MODULEDIR)/carla_juce.a
  37. STANDALONE_LIBS += $(MODULEDIR)/juce_audio_basics.a
  38. ifeq ($(USING_JUCE_AUDIO_DEVICES),true)
  39. STANDALONE_LIBS += $(MODULEDIR)/juce_audio_devices.a
  40. endif
  41. STANDALONE_LIBS += $(MODULEDIR)/juce_audio_processors.a
  42. STANDALONE_LIBS += $(MODULEDIR)/juce_core.a
  43. STANDALONE_LIBS += $(MODULEDIR)/juce_data_structures.a
  44. STANDALONE_LIBS += $(MODULEDIR)/juce_events.a
  45. STANDALONE_LIBS += $(MODULEDIR)/juce_graphics.a
  46. STANDALONE_LIBS += $(MODULEDIR)/juce_gui_basics.a
  47. STANDALONE_LIBS += $(MODULEDIR)/juce_gui_extra.a
  48. endif
  49. ifeq ($(USING_RTAUDIO),true)
  50. STANDALONE_LIBS += $(MODULEDIR)/rtaudio.a
  51. STANDALONE_LIBS += $(MODULEDIR)/rtmidi.a
  52. endif
  53. STANDALONE_LIBS += $(MODULEDIR)/ysfx.a
  54. # ---------------------------------------------------------------------------------------------------------------------
  55. STANDALONE_LINK_FLAGS = $(HYLIA_LIBS)
  56. STANDALONE_LINK_FLAGS += $(JACKBRIDGE_LIBS)
  57. STANDALONE_LINK_FLAGS += $(LILV_LIBS)
  58. STANDALONE_LINK_FLAGS += $(NATIVE_PLUGINS_LIBS)
  59. STANDALONE_LINK_FLAGS += $(RTMEMPOOL_LIBS)
  60. STANDALONE_LINK_FLAGS += $(WATER_LIBS)
  61. STANDALONE_LINK_FLAGS += $(LIBLO_LIBS)
  62. STANDALONE_LINK_FLAGS += $(MAGIC_LIBS)
  63. STANDALONE_LINK_FLAGS += $(FLUIDSYNTH_LIBS)
  64. STANDALONE_LINK_FLAGS += $(X11_LIBS)
  65. ifeq ($(USING_JUCE),true)
  66. STANDALONE_LINK_FLAGS += $(JUCE_AUDIO_BASICS_LIBS)
  67. ifeq ($(USING_JUCE_AUDIO_DEVICES),true)
  68. STANDALONE_LINK_FLAGS += $(JUCE_AUDIO_DEVICES_LIBS)
  69. endif
  70. STANDALONE_LINK_FLAGS += $(JUCE_AUDIO_PROCESSORS_LIBS)
  71. STANDALONE_LINK_FLAGS += $(JUCE_CORE_LIBS)
  72. STANDALONE_LINK_FLAGS += $(JUCE_DATA_STRUCTURES_LIBS)
  73. STANDALONE_LINK_FLAGS += $(JUCE_EVENTS_LIBS)
  74. STANDALONE_LINK_FLAGS += $(JUCE_GRAPHICS_LIBS)
  75. STANDALONE_LINK_FLAGS += $(JUCE_GUI_BASICS_LIBS)
  76. STANDALONE_LINK_FLAGS += $(JUCE_GUI_EXTRA_LIBS)
  77. endif
  78. ifeq ($(USING_RTAUDIO),true)
  79. STANDALONE_LINK_FLAGS += $(RTAUDIO_LIBS)
  80. STANDALONE_LINK_FLAGS += $(RTMIDI_LIBS)
  81. endif
  82. STANDALONE_LINK_FLAGS += $(YSFX_GRAPHICS_LIBS)
  83. ifeq ($(JACKBRIDGE_DIRECT),true)
  84. STANDALONE_LINK_FLAGS += $(JACK_LIBS)
  85. endif
  86. # ---------------------------------------------------------------------------------------------------------------------
  87. all: $(TARGETS)
  88. $(MAKE) -C utils
  89. static: $(OBJS_standalone)
  90. # ---------------------------------------------------------------------------------------------------------------------
  91. clean:
  92. rm -f $(OBJS_standalone) $(TARGETS)
  93. $(MAKE) clean -C engine
  94. $(MAKE) clean -C plugin
  95. $(MAKE) clean -C utils
  96. debug:
  97. $(MAKE) DEBUG=true
  98. doxygen: CarlaBackend.doxygen
  99. doxygen $^
  100. # ---------------------------------------------------------------------------------------------------------------------
  101. $(BINDIR)/libcarla_standalone2$(LIB_EXT): $(OBJS_standalone) $(STANDALONE_LIBS)
  102. -@mkdir -p $(BINDIR)
  103. @echo "Linking libcarla_standalone2$(LIB_EXT)"
  104. $(SILENT)$(CXX) $(OBJS_standalone) $(BUILD_CXX_FLAGS) $(LIBS_START) $(STANDALONE_LIBS) $(LIBS_END) $(LINK_FLAGS) $(STANDALONE_LINK_FLAGS) $(SHARED) -o $@
  105. # ---------------------------------------------------------------------------------------------------------------------
  106. ifeq ($(MACOS),true)
  107. $(OBJDIR)/CarlaStandalone.cpp.o: CarlaStandalone.cpp
  108. -@mkdir -p $(OBJDIR)
  109. @echo "Compiling $<"
  110. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ -c -o $@
  111. endif
  112. $(OBJDIR)/%.cpp.o: %.cpp
  113. -@mkdir -p $(OBJDIR)
  114. @echo "Compiling $<"
  115. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  116. -include $(OBJS_standalone:%.o=%.d)
  117. # ---------------------------------------------------------------------------------------------------------------------