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.

66 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)
  9. LINK_FLAGS += $(shell pkg-config --libs liblo QtCore QtGui)
  10. ifeq ($(HAVE_SUIL),true)
  11. BUILD_CXX_FLAGS += $(shell pkg-config --cflags suil-0)
  12. LINK_FLAGS += $(shell pkg-config --libs suil-0)
  13. endif
  14. ifeq ($(HAVE_FLUIDSYNTH),true)
  15. BUILD_CXX_FLAGS += $(shell pkg-config --cflags fluidsynth)
  16. LINK_FLAGS += $(shell pkg-config --libs fluidsynth)
  17. endif
  18. ifeq ($(HAVE_LINUXSAMPLER),true)
  19. BUILD_CXX_FLAGS += $(shell pkg-config --cflags linuxsampler)
  20. LINK_FLAGS += $(shell pkg-config --libs linuxsampler)
  21. endif
  22. # --------------------------------------------------------------
  23. OBJS = \
  24. CarlaPlugin.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. FluidSynthPlugin.cpp.o \
  33. LinuxSamplerPlugin.cpp.o
  34. SHARED = ../libcarla_plugin.so
  35. STATIC = ../libcarla_plugin.a
  36. # --------------------------------------------------------------
  37. all: $(STATIC)
  38. clean:
  39. rm -f $(OBJS) $(SHARED) $(STATIC)
  40. debug:
  41. $(MAKE) DEBUG=true
  42. # --------------------------------------------------------------
  43. %.cpp.o: %.cpp ../CarlaEngine.hpp ../CarlaPlugin.hpp CarlaPluginInternal.hpp CarlaPluginThread.hpp
  44. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  45. $(SHARED): $(OBJS)
  46. $(CXX) $^ -shared $(LINK_FLAGS) -o $@
  47. $(STATIC): $(OBJS)
  48. $(AR) rs $@ $^