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.

110 lines
2.4KB

  1. #!/usr/bin/make -f
  2. # Makefile for carla-standalone #
  3. # ----------------------------- #
  4. # Created by falkTX
  5. #
  6. include ../Makefile.mk
  7. # --------------------------------------------------------------
  8. # Common
  9. LINK_FLAGS += $(shell pkg-config --libs liblo QtCore QtGui QtXml)
  10. # --------------------------------------------------------------
  11. # Engine
  12. ifeq ($(HAVE_ALSA),true)
  13. LINK_FLAGS += $(shell pkg-config --libs alsa)
  14. endif
  15. ifeq ($(HAVE_JACK),true)
  16. LINK_FLAGS += $(shell pkg-config --libs jack)
  17. endif
  18. ifeq ($(HAVE_PULSEAUDIO),true)
  19. LINK_FLAGS += $(shell pkg-config --libs libpulse-simple)
  20. endif
  21. # --------------------------------------------------------------
  22. # Plugin
  23. ifeq ($(HAVE_FLUIDSYNTH),true)
  24. LINK_FLAGS += $(shell pkg-config --libs fluidsynth)
  25. endif
  26. ifeq ($(HAVE_LINUXSAMPLER),true)
  27. LINK_FLAGS += $(shell pkg-config --libs linuxsampler)
  28. endif
  29. # --------------------------------------------------------------
  30. # Native
  31. LINK_FLAGS += $(shell pkg-config --libs QtGui)
  32. ifeq ($(HAVE_AF_DEPS),true)
  33. LINK_FLAGS += $(shell pkg-config --libs libavcodec libavformat sndfile)
  34. endif
  35. ifeq ($(HAVE_OPENGL),true)
  36. LINK_FLAGS += $(shell pkg-config --libs gl)
  37. endif
  38. ifeq ($(HAVE_ZYN_DEPS),true)
  39. LINK_FLAGS += $(shell pkg-config --libs fftw3 mxml zlib)
  40. ifeq ($(HAVE_ZYN_UI_DEPS),true)
  41. LINK_FLAGS += $(shell pkg-config --libs ntk ntk_images)
  42. endif
  43. endif
  44. # --------------------------------------------------------------
  45. LIBS = ../libcarla_engine.a
  46. LIBS += ../libcarla_plugin.a
  47. LIBS += ../libcarla_native.a
  48. LIBS += ../../libs/rtmempool.a
  49. LIBS += ../../libs/widgets.a
  50. ifeq ($(CARLA_PLUGIN_SUPPORT),true)
  51. LIBS += ../../libs/lilv.a
  52. endif
  53. ifeq ($(HAVE_OPENGL),true)
  54. LIBS += ../../libs/dgl.a
  55. endif
  56. OBJS = \
  57. CarlaStandalone.cpp.o
  58. SHARED = ../libcarla_standalone.so
  59. STATIC = ../libcarla_standalone.a
  60. # --------------------------------------------------------------
  61. all: $(SHARED)
  62. clean:
  63. rm -f $(OBJS) $(SHARED) $(STATIC)
  64. debug:
  65. $(MAKE) DEBUG=true
  66. # --------------------------------------------------------------
  67. %.cpp.o: %.cpp ../CarlaBackend.hpp ../CarlaEngine.hpp ../CarlaPlugin.hpp
  68. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  69. $(SHARED): $(OBJS) $(LIBS)
  70. $(CXX) $^ -shared $(LINK_FLAGS) -o $@ && $(STRIP) $@
  71. $(STATIC): $(OBJS) $(LIBS)
  72. $(AR) rs $@ $^
  73. # --------------------------------------------------------------
  74. ../libcarla_%.a:
  75. $(MAKE) -C ../$* $@
  76. ../../libs/%.a:
  77. $(MAKE) -C ../../libs/ $*.a