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.

62 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 += -fvisibility=hidden -fPIC -I. -I.. -I../../includes -I../../libs -I../../utils
  9. BUILD_CXX_FLAGS += $(shell pkg-config --cflags liblo QtCore QtGui)
  10. LINK_FLAGS += -shared
  11. LINK_FLAGS += $(shell pkg-config --libs liblo QtCore QtGui)
  12. ifeq ($(HAVE_SUIL),true)
  13. BUILD_CXX_FLAGS += $(shell pkg-config --cflags suil-0) -DWANT_SUIL
  14. LINK_FLAGS += $(shell pkg-config --libs suil-0)
  15. endif
  16. ifeq ($(HAVE_FLUIDSYNTH),true)
  17. BUILD_CXX_FLAGS += $(shell pkg-config --cflags fluidsynth) -DWANT_FLUIDSYNTH
  18. LINK_FLAGS += $(shell pkg-config --libs fluidsynth)
  19. endif
  20. ifeq ($(HAVE_LINUXSAMPLER),true)
  21. BUILD_CXX_FLAGS += $(shell pkg-config --cflags linuxsampler) -DWANT_LINUXSAMPLER
  22. LINK_FLAGS += $(shell pkg-config --libs linuxsampler)
  23. endif
  24. # --------------------------------------------------------------
  25. OBJS = \
  26. carla_plugin.cpp.o
  27. # carla_plugin_thread.cpp.o \
  28. # carla_bridge.cpp.o \
  29. # native.cpp.o \
  30. # ladspa.cpp.o \
  31. # dssi.cpp.o \
  32. # lv2.cpp.o \
  33. # vst.cpp.o \
  34. # fluidsynth.cpp.o \
  35. # linuxsampler.cpp.o
  36. TARGET = ../carla_plugin.so
  37. # --------------------------------------------------------------
  38. all: $(TARGET)
  39. clean:
  40. rm -f $(OBJS) $(TARGET)
  41. # --------------------------------------------------------------
  42. %.cpp.o: %.cpp
  43. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  44. $(TARGET): $(OBJS)
  45. $(CXX) $^ $(LINK_FLAGS) -o $@