Collection of tools useful for audio production
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.

73 lines
1.7KB

  1. #!/usr/bin/make -f
  2. # Makefile for carla-plugin #
  3. # ------------------------------------ #
  4. # Created by falkTX
  5. #
  6. include ../Makefile.mk
  7. HAVE_ZYN_DEPS = $(shell pkg-config --exists fftw3 mxml && echo true)
  8. ifeq ($(CARLA_PLUGIN_SUPPORT),true)
  9. HAVE_SUIL = $(shell pkg-config --exists suil-0 && echo true)
  10. endif
  11. ifeq ($(CARLA_SAMPLERS_SUPPORT),true)
  12. HAVE_FLUIDSYNTH = $(shell pkg-config --exists fluidsynth && echo true)
  13. HAVE_LINUSAMPLER = $(shell pkg-config --exists linuxsampler && echo true)
  14. endif
  15. # --------------------------------------------------------------
  16. BUILD_CXX_FLAGS += -fvisibility=hidden -fPIC
  17. BUILD_CXX_FLAGS += -I. -I../carla-backend -I../carla-engine -I../carla-includes -I../carla-native -I../carla-utils
  18. BUILD_CXX_FLAGS += $(shell pkg-config --cflags liblo QtCore)
  19. ifeq ($(CARLA_PLUGIN_SUPPORT),true)
  20. BUILD_CXX_FLAGS += -DWANT_LADSPA -DWANT_DSSI -DWANT_LV2 -DWANT_VST
  21. endif
  22. ifeq ($(HAVE_ZYN_DEPS),true)
  23. BUILD_CXX_FLAGS += -DWANT_ZYNADDSUBFX
  24. endif
  25. ifeq ($(HAVE_SUIL),true)
  26. BUILD_CXX_FLAGS += $(shell pkg-config --cflags suil-0) -DWANT_SUIL
  27. endif
  28. ifeq ($(HAVE_FLUIDSYNTH),true)
  29. BUILD_CXX_FLAGS += $(shell pkg-config --cflags fluidsynth) -DWANT_FLUIDSYNTH
  30. endif
  31. ifeq ($(HAVE_LINUSAMPLER),true)
  32. BUILD_CXX_FLAGS += $(shell pkg-config --cflags linuxsampler) -DWANT_LINUXSAMPLER
  33. endif
  34. OBJS = \
  35. carla_bridge.o \
  36. native.o \
  37. ladspa.o \
  38. dssi.o \
  39. lv2.o \
  40. vst.o \
  41. fluidsynth.o \
  42. linuxsampler.o
  43. # --------------------------------------------------------------
  44. all: carla_plugin.a
  45. doc: carla_plugin.doxygen
  46. doxygen $<
  47. carla_plugin.a: $(OBJS)
  48. $(AR) rs $@ $^
  49. # --------------------------------------------------------------
  50. .cpp.o:
  51. $(CXX) -c $< $(BUILD_CXX_FLAGS) -o $@
  52. clean:
  53. rm -f *.a $(OBJS)