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.

68 lines
1.6KB

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