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.

129 lines
3.4KB

  1. #!/usr/bin/make -f
  2. # Makefile for carla-backend #
  3. # -------------------------- #
  4. # Created by falkTX
  5. #
  6. CWD=..
  7. include Makefile.mk
  8. # --------------------------------------------------------------
  9. STANDALONE_LIBS = carla_engine.a
  10. STANDALONE_LIBS += carla_plugin.a
  11. STANDALONE_LIBS += ../modules/jackbridge.a
  12. STANDALONE_LIBS += ../modules/juce_audio_basics.a
  13. STANDALONE_LIBS += ../modules/juce_audio_formats.a
  14. STANDALONE_LIBS += ../modules/juce_core.a
  15. STANDALONE_LIBS += ../modules/lilv.a
  16. STANDALONE_LIBS += ../modules/native-plugins.a
  17. STANDALONE_LIBS += ../modules/rtmempool.a
  18. ifeq ($(MACOS_OR_WIN32),true)
  19. STANDALONE_LIBS += ../modules/juce_audio_devices.a
  20. STANDALONE_LIBS += ../modules/juce_audio_processors.a
  21. STANDALONE_LIBS += ../modules/juce_data_structures.a
  22. STANDALONE_LIBS += ../modules/juce_events.a
  23. STANDALONE_LIBS += ../modules/juce_graphics.a
  24. STANDALONE_LIBS += ../modules/juce_gui_basics.a
  25. ifeq ($(MACOS),true)
  26. STANDALONE_LIBS += ../modules/juce_gui_extra.a
  27. endif
  28. else
  29. STANDALONE_LIBS += ../modules/rtaudio.a
  30. STANDALONE_LIBS += ../modules/rtmidi.a
  31. endif
  32. UTILS_LIBS = ../modules/juce_core.a
  33. # --------------------------------------------------------------
  34. STANDALONE_FLAGS = $(JACKBRIDGE_LIBS)
  35. STANDALONE_FLAGS += $(JUCE_CORE_LIBS)
  36. STANDALONE_FLAGS += $(JUCE_AUDIO_BASICS_LIBS)
  37. STANDALONE_FLAGS += $(JUCE_AUDIO_FORMATS_LIBS)
  38. STANDALONE_FLAGS += $(LIBLO_LIBS)
  39. STANDALONE_FLAGS += $(LILV_LIBS)
  40. STANDALONE_FLAGS += $(NATIVE_PLUGINS_LIBS)
  41. STANDALONE_FLAGS += $(RTMEMPOOL_LIBS)
  42. ifeq ($(MACOS_OR_WIN32),true)
  43. STANDALONE_FLAGS += $(JUCE_AUDIO_DEVICES_LIBS)
  44. STANDALONE_FLAGS += $(JUCE_AUDIO_PROCESSORS_LIBS)
  45. STANDALONE_FLAGS += $(JUCE_DATA_STRUCTURES_LIBS)
  46. STANDALONE_FLAGS += $(JUCE_EVENTS_LIBS)
  47. STANDALONE_FLAGS += $(JUCE_GRAPHICS_LIBS)
  48. STANDALONE_FLAGS += $(JUCE_GUI_BASICS_LIBS)
  49. ifeq ($(MACOS),true)
  50. STANDALONE_FLAGS += $(JUCE_GUI_EXTRA_LIBS)
  51. endif
  52. else
  53. STANDALONE_FLAGS += $(RTAUDIO_LIBS)
  54. STANDALONE_FLAGS += $(RTMIDI_LIBS)
  55. endif
  56. ifeq ($(HAVE_FLUIDSYNTH),true)
  57. STANDALONE_FLAGS += $(FLUIDSYNTH_LIBS)
  58. endif
  59. ifeq ($(HAVE_LINUXSAMPLER),true)
  60. STANDALONE_FLAGS += $(LINUXSAMPLER_LIBS)
  61. endif
  62. ifeq ($(HAVE_X11),true)
  63. STANDALONE_FLAGS += $(X11_LIBS)
  64. endif
  65. ifeq ($(UNIX),true)
  66. STANDALONE_FLAGS += -lmagic
  67. endif
  68. UTILS_FLAGS = $(JUCE_CORE_LIBS)
  69. # --------------------------------------------------------------
  70. OBJS = \
  71. CarlaStandalone.cpp.o \
  72. CarlaUtils.cpp.o
  73. TARGETS = \
  74. ../../bin/libcarla_standalone2$(LIB_EXT) \
  75. ../../bin/libcarla_utils$(LIB_EXT)
  76. # --------------------------------------------------------------
  77. all: $(TARGETS)
  78. # --------------------------------------------------------------
  79. clean:
  80. $(RM) $(OBJS)
  81. $(RM) $(TARGETS)
  82. $(MAKE) clean -C engine
  83. $(MAKE) clean -C plugin
  84. debug:
  85. $(MAKE) DEBUG=true
  86. doxygen: CarlaBackend.doxygen
  87. doxygen $^
  88. # --------------------------------------------------------------
  89. CarlaStandalone.cpp.o: $(CARLA_STANDALONE_CPP)
  90. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  91. CarlaUtils.cpp.o: $(CARLA_UTILS_CPP)
  92. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  93. # --------------------------------------------------------------
  94. ../../bin/libcarla_standalone2$(LIB_EXT): CarlaStandalone.cpp.o $(STANDALONE_LIBS)
  95. $(CXX) $< $(LIBS_START) $(STANDALONE_LIBS) $(LIBS_END) $(LINK_FLAGS) $(STANDALONE_FLAGS) $(SHARED) -o $@
  96. ../../bin/libcarla_utils$(LIB_EXT): CarlaUtils.cpp.o $(UTILS_LIBS)
  97. $(CXX) $< $(LIBS_START) $(UTILS_LIBS) $(LIBS_END) $(LINK_FLAGS) $(UTILS_FLAGS) $(SHARED) -o $@
  98. # --------------------------------------------------------------