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.4KB

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