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.

Makefile 1.5KB

11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. CarlaPluginThread.cpp.o \
  23. BridgePlugin.cpp.o \
  24. NativePlugin.cpp.o \
  25. LadspaPlugin.cpp.o \
  26. DssiPlugin.cpp.o \
  27. Lv2Plugin.cpp.o \
  28. VstPlugin.cpp.o \
  29. Vst3Plugin.cpp.o \
  30. FluidSynthPlugin.cpp.o \
  31. LinuxSamplerPlugin.cpp.o
  32. SHARED = ../libcarla_plugin.so
  33. STATIC = ../libcarla_plugin.a
  34. # --------------------------------------------------------------
  35. all: $(STATIC)
  36. clean:
  37. rm -f $(OBJS) $(SHARED) $(STATIC)
  38. debug:
  39. $(MAKE) DEBUG=true
  40. # --------------------------------------------------------------
  41. %.cpp.o: %.cpp ../CarlaBackend.hpp ../CarlaEngine.hpp ../CarlaPlugin.hpp CarlaPluginInternal.hpp CarlaPluginThread.hpp
  42. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  43. $(SHARED): $(OBJS)
  44. $(CXX) $^ -shared $(LINK_FLAGS) -o $@
  45. $(STATIC): $(OBJS)
  46. $(AR) rs $@ $^