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 QtGui)
  9. LINK_FLAGS += $(shell pkg-config --libs liblo 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. carla_plugin.cpp.o \
  25. native.cpp.o
  26. # carla_plugin_thread.cpp.o \
  27. # carla_bridge.cpp.o \
  28. # ladspa.cpp.o \
  29. # dssi.cpp.o \
  30. # lv2.cpp.o \
  31. # vst.cpp.o \
  32. # fluidsynth.cpp.o \
  33. # linuxsampler.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
  44. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  45. $(SHARED): $(OBJS) $(LIBS)
  46. $(CXX) $^ -shared $(LINK_FLAGS) -o $@
  47. $(STATIC): $(OBJS) $(LIBS)
  48. $(AR) rs $@ $^