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.

152 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)/juce_audio_basics.a
  37. ifeq ($(USING_JUCE_AUDIO_DEVICES),true)
  38. STANDALONE_LIBS += $(MODULEDIR)/juce_audio_devices.a
  39. endif
  40. STANDALONE_LIBS += $(MODULEDIR)/juce_audio_processors.a
  41. STANDALONE_LIBS += $(MODULEDIR)/juce_core.a
  42. STANDALONE_LIBS += $(MODULEDIR)/juce_data_structures.a
  43. STANDALONE_LIBS += $(MODULEDIR)/juce_events.a
  44. STANDALONE_LIBS += $(MODULEDIR)/juce_graphics.a
  45. STANDALONE_LIBS += $(MODULEDIR)/juce_gui_basics.a
  46. ifeq ($(USING_JUCE_GUI_EXTRA),true)
  47. STANDALONE_LIBS += $(MODULEDIR)/juce_gui_extra.a
  48. endif
  49. endif
  50. ifeq ($(USING_RTAUDIO),true)
  51. STANDALONE_LIBS += $(MODULEDIR)/rtaudio.a
  52. STANDALONE_LIBS += $(MODULEDIR)/rtmidi.a
  53. endif
  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. ifeq ($(USING_JUCE_GUI_EXTRA),true)
  77. STANDALONE_LINK_FLAGS += $(JUCE_GUI_EXTRA_LIBS)
  78. endif
  79. endif
  80. ifeq ($(USING_RTAUDIO),true)
  81. STANDALONE_LINK_FLAGS += $(RTAUDIO_LIBS)
  82. STANDALONE_LINK_FLAGS += $(RTMIDI_LIBS)
  83. endif
  84. ifeq ($(JACKBRIDGE_DIRECT),true)
  85. STANDALONE_LINK_FLAGS += $(JACK_LIBS)
  86. endif
  87. # ---------------------------------------------------------------------------------------------------------------------
  88. all: $(TARGETS)
  89. $(MAKE) -C utils
  90. static: $(OBJS_standalone)
  91. # ---------------------------------------------------------------------------------------------------------------------
  92. clean:
  93. rm -f $(OBJS_standalone) $(TARGETS)
  94. $(MAKE) clean -C engine
  95. $(MAKE) clean -C plugin
  96. $(MAKE) clean -C utils
  97. debug:
  98. $(MAKE) DEBUG=true
  99. doxygen: CarlaBackend.doxygen
  100. doxygen $^
  101. # ---------------------------------------------------------------------------------------------------------------------
  102. $(BINDIR)/libcarla_standalone2$(LIB_EXT): $(OBJS_standalone) $(STANDALONE_LIBS)
  103. -@mkdir -p $(BINDIR)
  104. @echo "Linking libcarla_standalone2$(LIB_EXT)"
  105. $(SILENT)$(CXX) $(OBJS_standalone) $(BUILD_CXX_FLAGS) $(LIBS_START) $(STANDALONE_LIBS) $(LIBS_END) $(LINK_FLAGS) $(STANDALONE_LINK_FLAGS) $(SHARED) -o $@
  106. # ---------------------------------------------------------------------------------------------------------------------
  107. ifeq ($(MACOS),true)
  108. $(OBJDIR)/CarlaStandalone.cpp.o: CarlaStandalone.cpp
  109. -@mkdir -p $(OBJDIR)
  110. @echo "Compiling $<"
  111. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ -c -o $@
  112. endif
  113. $(OBJDIR)/%.cpp.o: %.cpp
  114. -@mkdir -p $(OBJDIR)
  115. @echo "Compiling $<"
  116. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  117. -include $(OBJS_standalone:%.o=%.d)
  118. # ---------------------------------------------------------------------------------------------------------------------