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.

109 lines
2.6KB

  1. #!/usr/bin/make -f
  2. # Makefile for carla plugin exports #
  3. # --------------------------------- #
  4. # Created by falkTX
  5. #
  6. include ../Makefile.mk
  7. # --------------------------------------------------------------
  8. # Common
  9. LINK_FLAGS += $(shell pkg-config --libs liblo)
  10. ifeq ($(HAVE_QT4),true)
  11. LINK_FLAGS += $(shell pkg-config --libs QtCore QtGui QtXml)
  12. else
  13. LINK_FLAGS += $(shell pkg-config --libs Qt5Core Qt5Gui Qt5Xml Qt5Widgets)
  14. endif
  15. # --------------------------------------------------------------
  16. # Plugin
  17. ifeq ($(HAVE_FLUIDSYNTH),true)
  18. LINK_FLAGS += $(shell pkg-config --libs fluidsynth)
  19. endif
  20. ifeq ($(HAVE_LINUXSAMPLER),true)
  21. LINK_FLAGS += $(shell pkg-config --libs linuxsampler)
  22. endif
  23. # --------------------------------------------------------------
  24. # Native
  25. DGL_LIBS = -lX11
  26. ifeq ($(HAVE_AF_DEPS),true)
  27. LINK_FLAGS += $(shell pkg-config --libs sndfile)
  28. ifeq ($(HAVE_FFMPEG),true)
  29. LINK_FLAGS += $(shell pkg-config --libs libavcodec libavformat libavutil)
  30. endif
  31. endif
  32. ifeq ($(HAVE_MF_DEPS),true)
  33. LINK_FLAGS += $(shell pkg-config --libs smf)
  34. endif
  35. ifeq ($(HAVE_OPENGL),true)
  36. LINK_FLAGS += $(shell pkg-config --libs gl) $(DGL_LIBS)
  37. endif
  38. ifeq ($(HAVE_ZYN_DEPS),true)
  39. LINK_FLAGS += $(shell pkg-config --libs fftw3f mxml zlib)
  40. ifeq ($(HAVE_ZYN_UI_DEPS),true)
  41. LINK_FLAGS += $(shell pkg-config --libs ntk ntk_images)
  42. endif
  43. endif
  44. LINK_FLAGS += $(EXTRA_LIBS)
  45. # --------------------------------------------------------------
  46. LIBS = ../backend/libcarla_engine_plugin.a
  47. LIBS += ../backend/libcarla_plugin.a
  48. LIBS += ../backend/libcarla_native.a
  49. LIBS += ../libs/rtmempool.a
  50. LIBS += ../libs/widgets.a
  51. ifeq ($(CARLA_PLUGIN_SUPPORT),true)
  52. LIBS += ../libs/lilv.a
  53. endif
  54. ifeq ($(HAVE_OPENGL),true)
  55. LIBS += ../libs/dgl.a
  56. endif
  57. # --------------------------------------------------------------
  58. all: dssi vst
  59. # all: dssi lv2 vst
  60. dssi: carla-dssi.so
  61. vst: carla-vst.so
  62. lv2: carla.lv2/carla-lv2.so
  63. # --------------------------------------------------------------
  64. carla-dssi.so: ../backend/engine/CarlaEnginePlugin.cpp.dssi.o $(LIBS)
  65. $(CXX) $^ -shared $(LINK_FLAGS) -o $@
  66. carla-vst.so: ../backend/engine/CarlaEnginePlugin.cpp.vst.o $(LIBS)
  67. $(CXX) $^ -shared $(LINK_FLAGS) -o $@
  68. carla.lv2/carla-lv2.so: ../backend/engine/CarlaEnginePlugin.cpp.lv2.o $(LIBS)
  69. $(CXX) $^ -shared $(LINK_FLAGS) -o $@
  70. # --------------------------------------------------------------
  71. clean:
  72. rm -f *.dll *.dylib *.so
  73. rm -f carla.lv2/*.dll carla.lv2/*.dylib carla.lv2/*.so
  74. debug:
  75. $(MAKE) DEBUG=true
  76. # --------------------------------------------------------------
  77. ../backend/engine/CarlaEnginePlugin.cpp.%.o: ../backend/engine/CarlaEnginePlugin.cpp
  78. make -C ../backend/engine CarlaEnginePlugin.cpp.$*.o