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

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