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.

117 lines
3.0KB

  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. # --------------------------------------------------------------
  33. STANDALONE_FLAGS = $(JACKBRIDGE_LIBS)
  34. STANDALONE_FLAGS += $(JUCE_CORE_LIBS)
  35. STANDALONE_FLAGS += $(JUCE_AUDIO_BASICS_LIBS)
  36. STANDALONE_FLAGS += $(JUCE_AUDIO_FORMATS_LIBS)
  37. STANDALONE_FLAGS += $(LIBLO_LIBS)
  38. STANDALONE_FLAGS += $(LILV_LIBS)
  39. STANDALONE_FLAGS += $(NATIVE_PLUGINS_LIBS)
  40. STANDALONE_FLAGS += $(RTMEMPOOL_LIBS)
  41. ifeq ($(MACOS_OR_WIN32),true)
  42. STANDALONE_FLAGS += $(JUCE_AUDIO_DEVICES_LIBS)
  43. STANDALONE_FLAGS += $(JUCE_AUDIO_PROCESSORS_LIBS)
  44. STANDALONE_FLAGS += $(JUCE_DATA_STRUCTURES_LIBS)
  45. STANDALONE_FLAGS += $(JUCE_EVENTS_LIBS)
  46. STANDALONE_FLAGS += $(JUCE_GRAPHICS_LIBS)
  47. STANDALONE_FLAGS += $(JUCE_GUI_BASICS_LIBS)
  48. ifeq ($(MACOS),true)
  49. STANDALONE_FLAGS += $(JUCE_GUI_EXTRA_LIBS)
  50. endif
  51. else
  52. STANDALONE_FLAGS += $(RTAUDIO_LIBS)
  53. STANDALONE_FLAGS += $(RTMIDI_LIBS)
  54. endif
  55. ifeq ($(HAVE_FLUIDSYNTH),true)
  56. STANDALONE_FLAGS += $(FLUIDSYNTH_LIBS)
  57. endif
  58. ifeq ($(HAVE_LINUXSAMPLER),true)
  59. STANDALONE_FLAGS += $(LINUXSAMPLER_LIBS)
  60. endif
  61. ifeq ($(HAVE_X11),true)
  62. STANDALONE_FLAGS += $(X11_LIBS)
  63. endif
  64. ifeq ($(LINUX),true)
  65. STANDALONE_FLAGS += -lmagic
  66. endif
  67. # --------------------------------------------------------------
  68. OBJS = \
  69. CarlaStandalone.cpp.o
  70. TARGETS = \
  71. ../../bin/libcarla_standalone2$(LIB_EXT)
  72. # --------------------------------------------------------------
  73. all: $(TARGETS)
  74. # --------------------------------------------------------------
  75. clean:
  76. $(RM) $(OBJS)
  77. $(RM) $(TARGETS)
  78. $(MAKE) clean -C engine
  79. $(MAKE) clean -C plugin
  80. debug:
  81. $(MAKE) DEBUG=true
  82. doxygen: CarlaBackend.doxygen
  83. doxygen $^
  84. # --------------------------------------------------------------
  85. CarlaStandalone.cpp.o: $(CARLA_STANDALONE_CPP)
  86. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  87. # --------------------------------------------------------------
  88. ../../bin/libcarla_standalone2$(LIB_EXT): $(OBJS) $(STANDALONE_LIBS)
  89. $(CXX) $< $(LIBS_START) $(STANDALONE_LIBS) $(LIBS_END) $(LINK_FLAGS) $(STANDALONE_FLAGS) $(SHARED) -o $@
  90. # --------------------------------------------------------------