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.

151 lines
4.4KB

  1. #!/usr/bin/make -f
  2. # Makefile for carla-standalone #
  3. # ----------------------------- #
  4. # Created by falkTX
  5. #
  6. include ../Makefile.mk
  7. # ----------------------------------------------------------------------------------------------------------------------------
  8. # Base
  9. LINK_FLAGS += $(LIBLO_LIBS)
  10. LINK_FLAGS += $(QTCORE_LIBS)
  11. LINK_FLAGS += $(QTXML_LIBS)
  12. # ----------------------------------------------------------------------------------------------------------------------------
  13. # Common
  14. STATIC_LIBS = ../carla_engine.a
  15. STATIC_LIBS += ../carla_plugin.a
  16. STATIC_LIBS += ../../modules/jackbridge.a
  17. STATIC_LIBS += ../../modules/rtmempool.a
  18. LINK_FLAGS += $(JACKBRIDGE_LIBS)
  19. LINK_FLAGS += $(RTMEMPOOL_LIBS)
  20. ifeq ($(HAVE_DGL),true)
  21. STATIC_LIBS += ../../modules/dgl.a
  22. LINK_FLAGS += $(DGL_LIBS)
  23. endif
  24. ifeq ($(HAVE_JUCE),true)
  25. STATIC_LIBS += ../../modules/juce_audio_basics.a
  26. STATIC_LIBS += ../../modules/juce_audio_devices.a
  27. STATIC_LIBS += ../../modules/juce_audio_processors.a
  28. STATIC_LIBS += ../../modules/juce_core.a
  29. STATIC_LIBS += ../../modules/juce_data_structures.a
  30. STATIC_LIBS += ../../modules/juce_events.a
  31. STATIC_LIBS += ../../modules/juce_graphics.a
  32. STATIC_LIBS += ../../modules/juce_gui_basics.a
  33. STATIC_LIBS += ../../modules/juce_gui_extra.a
  34. LINK_FLAGS += $(JUCE_AUDIO_BASICS_LIBS)
  35. LINK_FLAGS += $(JUCE_AUDIO_DEVICES_LIBS)
  36. LINK_FLAGS += $(JUCE_AUDIO_PROCESSORS_LIBS)
  37. LINK_FLAGS += $(JUCE_CORE_LIBS)
  38. LINK_FLAGS += $(JUCE_DATA_STRUCTURES_LIBS)
  39. LINK_FLAGS += $(JUCE_EVENTS_LIBS)
  40. LINK_FLAGS += $(JUCE_GRAPHICS_LIBS)
  41. LINK_FLAGS += $(JUCE_GUI_BASICS_LIBS)
  42. LINK_FLAGS += $(JUCE_GUI_EXTRA_LIBS)
  43. endif
  44. # ----------------------------------------------------------------------------------------------------------------------------
  45. # Engine
  46. STATIC_LIBS += ../../modules/rtaudio.a
  47. STATIC_LIBS += ../../modules/rtmidi.a
  48. LINK_FLAGS += $(RTAUDIO_LIBS)
  49. LINK_FLAGS += $(RTMIDI_LIBS)
  50. # ----------------------------------------------------------------------------------------------------------------------------
  51. # Plugin
  52. ifeq ($(CARLA_PLUGIN_SUPPORT),true)
  53. STATIC_LIBS += ../../modules/lilv.a
  54. LINK_FLAGS += $(LILV_LIBS)
  55. endif
  56. ifeq ($(HAVE_CSOUND),true)
  57. LINK_FLAGS += $(CSOUND_LIBS)
  58. endif
  59. ifeq ($(HAVE_FLUIDSYNTH),true)
  60. LINK_FLAGS += $(FLUIDSYNTH_LIBS)
  61. endif
  62. ifeq ($(HAVE_LINUXSAMPLER),true)
  63. LINK_FLAGS += $(LINUXSAMPLER_LIBS)
  64. endif
  65. # ifeq ($(HAVE_WAYLAND),true)
  66. # LINK_FLAGS += $(WAYLAND_LIBS)
  67. # endif
  68. ifeq ($(HAVE_X11),true)
  69. LINK_FLAGS += $(X11_LIBS)
  70. endif
  71. # ----------------------------------------------------------------------------------------------------------------------------
  72. # Native
  73. STATIC_LIBS += ../../modules/native-plugins.a
  74. ifeq ($(HAVE_AF_DEPS),true)
  75. STATIC_LIBS += ../../modules/audio_decoder.a
  76. endif
  77. LINK_FLAGS += $(NATIVE_PLUGINS_LIBS)
  78. # ----------------------------------------------------------------------------------------------------------------------------
  79. ifeq ($(WIN32),true)
  80. TARGET = ../libcarla_standalone2.dll
  81. else
  82. ifeq ($(MACOS),true)
  83. TARGET = ../libcarla_standalone2.dylib
  84. else
  85. TARGET = ../libcarla_standalone2.so
  86. endif
  87. endif
  88. # ----------------------------------------------------------------------------------------------------------------------------
  89. all: $(TARGET)
  90. clean:
  91. $(RM) *.o $(TARGET)
  92. debug:
  93. $(MAKE) DEBUG=true
  94. # ----------------------------------------------------------------------------------------------------------------------------
  95. ../libcarla_standalone2.dll: CarlaStandalone.cpp.o $(STATIC_LIBS)
  96. $(CXX) $< -Wl,--start-group $(STATIC_LIBS) -Wl,--end-group $(LINK_FLAGS) $(EXTRA_LIBS) -shared -Wl,--output-def,$@.def -o $@
  97. ../libcarla_standalone2.dylib: CarlaStandalone.cpp.o $(STATIC_LIBS)
  98. $(CXX) $< $(STATIC_LIBS) $(LINK_FLAGS) -dynamiclib -o $@
  99. ../libcarla_standalone2.so: CarlaStandalone.cpp.o $(STATIC_LIBS)
  100. $(CXX) $< -Wl,--start-group $(STATIC_LIBS) -Wl,--end-group $(LINK_FLAGS) -shared -o $@
  101. # ----------------------------------------------------------------------------------------------------------------------------
  102. CarlaStandalone.cpp.o: CarlaStandalone.cpp $(CARLA_STANDALONE_CPP_DEPS)
  103. $(CXX) $< $(BUILD_CXX_FLAGS) $(QTCORE_FLAGS) -c -o $@
  104. # ----------------------------------------------------------------------------------------------------------------------------
  105. .FORCE:
  106. .PHONY: .FORCE
  107. ../libcarla_%.a: .FORCE
  108. $(MAKE) -C ../$*
  109. ../../modules/%.a: .FORCE
  110. $(MAKE) -C ../../modules $*
  111. # ----------------------------------------------------------------------------------------------------------------------------