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.

67 lines
1.5KB

  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. ifeq ($(HAVE_QT5),true)
  10. BUILD_CXX_FLAGS += $(shell pkg-config --cflags Qt5Core Qt5Xml Qt5Widgets)
  11. else
  12. BUILD_CXX_FLAGS += $(shell pkg-config --cflags QtCore QtGui QtXml)
  13. endif
  14. # --------------------------------------------------------------
  15. ifeq ($(HAVE_FLUIDSYNTH),true)
  16. BUILD_CXX_FLAGS += $(shell pkg-config --cflags fluidsynth)
  17. endif
  18. ifeq ($(HAVE_LINUXSAMPLER),true)
  19. BUILD_CXX_FLAGS += $(shell pkg-config --cflags linuxsampler)
  20. endif
  21. # --------------------------------------------------------------
  22. OBJS = \
  23. CarlaPlugin.cpp.o \
  24. CarlaPluginGui.cpp.o \
  25. CarlaPluginThread.cpp.o \
  26. BridgePlugin.cpp.o \
  27. NativePlugin.cpp.o \
  28. LadspaPlugin.cpp.o \
  29. DssiPlugin.cpp.o \
  30. Lv2Plugin.cpp.o \
  31. VstPlugin.cpp.o \
  32. Vst3Plugin.cpp.o \
  33. FluidSynthPlugin.cpp.o \
  34. LinuxSamplerPlugin.cpp.o
  35. TARGET = ../libcarla_plugin.a
  36. # --------------------------------------------------------------
  37. all: $(TARGET)
  38. clean:
  39. rm -f $(OBJS) $(TARGET)
  40. debug:
  41. $(MAKE) DEBUG=true
  42. # --------------------------------------------------------------
  43. %.cpp.o: %.cpp moc_CarlaPluginGui.cpp ../CarlaBackend.hpp ../CarlaEngine.hpp ../CarlaPlugin.hpp CarlaPluginGui.hpp CarlaPluginInternal.hpp CarlaPluginThread.hpp
  44. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  45. moc_%.cpp: %.hpp
  46. $(MOC) $< -DMOC_PARSING -o $@
  47. $(TARGET): $(OBJS)
  48. $(AR) rs $@ $^