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.

76 lines
1.9KB

  1. #!/usr/bin/make -f
  2. # Makefile for carla-plugin #
  3. # ------------------------- #
  4. # Created by falkTX
  5. #
  6. include ../Makefile.mk
  7. # --------------------------------------------------------------
  8. BUILD_CXX_FLAGS += $(shell pkg-config --cflags liblo)
  9. LINK_FLAGS += $(shell pkg-config --libs liblo)
  10. ifeq ($(HAVE_QT5),true)
  11. BUILD_CXX_FLAGS += $(shell pkg-config --cflags Qt5Core Qt5Xml Qt5Widgets)
  12. LINK_FLAGS += $(shell pkg-config --libs Qt5Core Qt5Xml Qt5Widgets)
  13. else
  14. BUILD_CXX_FLAGS += $(shell pkg-config --cflags QtCore QtGui QtXml)
  15. LINK_FLAGS += $(shell pkg-config --libs QtCore QtGui QtXml)
  16. endif
  17. # --------------------------------------------------------------
  18. ifeq ($(HAVE_FLUIDSYNTH),true)
  19. BUILD_CXX_FLAGS += $(shell pkg-config --cflags fluidsynth)
  20. LINK_FLAGS += $(shell pkg-config --libs fluidsynth)
  21. endif
  22. ifeq ($(HAVE_LINUXSAMPLER),true)
  23. BUILD_CXX_FLAGS += $(shell pkg-config --cflags linuxsampler)
  24. LINK_FLAGS += $(shell pkg-config --libs linuxsampler)
  25. endif
  26. # --------------------------------------------------------------
  27. OBJS = \
  28. CarlaPlugin.cpp.o \
  29. CarlaPluginGui.cpp.o \
  30. CarlaPluginThread.cpp.o \
  31. BridgePlugin.cpp.o \
  32. NativePlugin.cpp.o \
  33. LadspaPlugin.cpp.o \
  34. DssiPlugin.cpp.o \
  35. Lv2Plugin.cpp.o \
  36. VstPlugin.cpp.o \
  37. Vst3Plugin.cpp.o \
  38. FluidSynthPlugin.cpp.o \
  39. LinuxSamplerPlugin.cpp.o
  40. SHARED = ../libcarla_plugin.so
  41. STATIC = ../libcarla_plugin.a
  42. # --------------------------------------------------------------
  43. all: $(STATIC)
  44. clean:
  45. rm -f $(OBJS) $(SHARED) $(STATIC)
  46. debug:
  47. $(MAKE) DEBUG=true
  48. # --------------------------------------------------------------
  49. %.cpp.o: %.cpp moc_CarlaPluginGui.cpp ../CarlaBackend.hpp ../CarlaEngine.hpp ../CarlaPlugin.hpp CarlaPluginGui.hpp CarlaPluginInternal.hpp CarlaPluginThread.hpp
  50. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  51. moc_%.cpp: %.hpp
  52. $(MOC) $< -DMOC_PARSING -o $@
  53. $(SHARED): $(OBJS)
  54. $(CXX) $^ -shared $(LINK_FLAGS) -o $@
  55. $(STATIC): $(OBJS)
  56. $(AR) rs $@ $^