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.

Makefile 4.9KB

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