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.

135 lines
3.4KB

  1. #!/usr/bin/make -f
  2. # Makefile for carla plugin #
  3. # ------------------------- #
  4. # Created by falkTX
  5. #
  6. CWD=..
  7. include ../Makefile.mk
  8. # --------------------------------------------------------------
  9. BUILD_CXX_FLAGS += -I../backend -I../includes -I../utils -isystem ../modules
  10. BUILD_CXX_FLAGS += $(NATIVE_PLUGINS_FLAGS)
  11. # --------------------------------------------------------------
  12. # Common
  13. LINK_FLAGS += $(JUCE_AUDIO_BASICS_LIBS)
  14. LINK_FLAGS += $(JUCE_CORE_LIBS)
  15. LINK_FLAGS += $(JUCE_EVENTS_LIBS)
  16. LINK_FLAGS += $(LIBLO_LIBS)
  17. LINK_FLAGS += $(QTCORE_LIBS)
  18. LINK_FLAGS += $(RTMEMPOOL_LIBS)
  19. # --------------------------------------------------------------
  20. # Engine
  21. LINK_FLAGS += $(JACKBRIDGE_LIBS)
  22. # --------------------------------------------------------------
  23. # Plugin
  24. ifeq ($(CARLA_PLUGIN_SUPPORT),true)
  25. LINK_FLAGS += $(LILV_LIBS)
  26. endif
  27. ifeq ($(HAVE_FLUIDSYNTH),true)
  28. LINK_FLAGS += $(FLUIDSYNTH_LIBS)
  29. endif
  30. ifeq ($(HAVE_LINUXSAMPLER),true)
  31. LINK_FLAGS += $(LINUXSAMPLER_LIBS)
  32. endif
  33. # --------------------------------------------------------------
  34. # Coomon
  35. ifeq ($(HAVE_DGL),true)
  36. LINK_FLAGS += $(DGL_LIBS)
  37. endif
  38. ifeq ($(HAVE_JUCE_UI),true)
  39. LINK_FLAGS += $(JUCE_AUDIO_PROCESSORS_LIBS)
  40. LINK_FLAGS += $(JUCE_DATA_STRUCTURES_LIBS)
  41. LINK_FLAGS += $(JUCE_GRAPHICS_LIBS)
  42. LINK_FLAGS += $(JUCE_GUI_BASICS_LIBS)
  43. LINK_FLAGS += $(JUCE_GUI_EXTRA_LIBS)
  44. endif
  45. # --------------------------------------------------------------
  46. # Native
  47. LINK_FLAGS += $(NATIVE_PLUGINS_LIBS)
  48. # --------------------------------------------------------------
  49. # Libs
  50. LIBS += ../backend/carla_engine_plugin.a
  51. LIBS += ../backend/carla_plugin.a
  52. LIBS += ../modules/native-plugins.a
  53. LIBS += ../modules/jackbridge.a
  54. LIBS += ../modules/juce_audio_basics.a
  55. LIBS += ../modules/juce_core.a
  56. LIBS += ../modules/juce_events.a
  57. LIBS += ../modules/rtmempool.a
  58. ifeq ($(HAVE_AF_DEPS),true)
  59. LIBS += ../modules/audio_decoder.a
  60. endif
  61. ifeq ($(HAVE_DGL),true)
  62. LIBS += ../modules/dgl.a
  63. endif
  64. ifeq ($(HAVE_JUCE_UI),true)
  65. LIBS += ../modules/juce_audio_processors.a
  66. LIBS += ../modules/juce_data_structures.a
  67. LIBS += ../modules/juce_graphics.a
  68. LIBS += ../modules/juce_gui_basics.a
  69. LIBS += ../modules/juce_gui_extra.a
  70. endif
  71. ifeq ($(CARLA_PLUGIN_SUPPORT),true)
  72. LIBS += ../modules/lilv.a
  73. endif
  74. # --------------------------------------------------------------
  75. TARGETS = \
  76. ../../bin/carla-native.lv2/carla-native$(LIB_EXT) \
  77. ../../bin/carla-native-lv2-export$(APP_EXT)
  78. # --------------------------------------------------------------
  79. all: $(TARGETS)
  80. clean:
  81. $(RM) $(TARGETS) *.o
  82. $(RM) carla-native.lv2/*.*
  83. debug:
  84. $(MAKE) DEBUG=true
  85. # --------------------------------------------------------------
  86. carla-native-base.cpp.o: carla-native-base.cpp ../modules/CarlaNative.h
  87. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  88. carla-native-lv2.cpp.o: carla-native-lv2.cpp carla-native-base.cpp ../modules/CarlaNative.h
  89. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  90. carla-native-lv2-export.cpp.o: carla-native-lv2-export.cpp carla-native-base.cpp ../modules/CarlaNative.h
  91. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  92. # --------------------------------------------------------------
  93. ../../bin/carla-native.lv2/carla-native$(LIB_EXT): carla-native-lv2.cpp.o $(LIBS)
  94. $(CXX) $< $(LIBS_START) $(LIBS) $(LIBS_END) $(SHARED) $(LINK_FLAGS) -o $@
  95. ../../bin/carla-native-lv2-export$(APP_EXT): carla-native-lv2-export.cpp.o $(LIBS)
  96. $(CXX) $< $(LIBS_START) $(LIBS) $(LIBS_END) $(LINK_FLAGS) -o $@
  97. # --------------------------------------------------------------