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.

96 lines
2.3KB

  1. #!/usr/bin/make -f
  2. # Makefile for carla-native #
  3. # ------------------------- #
  4. # Created by falkTX
  5. #
  6. include ../Makefile.mk
  7. # --------------------------------------------------------------
  8. BUILD_CXX_FLAGS += -I../../libs/distrho-plugin-toolkit
  9. BUILD_CXX_FLAGS += $(shell pkg-config --cflags QtGui)
  10. LINK_FLAGS += $(shell pkg-config --libs QtGui gl)
  11. ifeq ($(HAVE_AF_DEPS),true)
  12. AF_CXX_FLAGS = $(BUILD_CXX_FLAGS)
  13. AF_CXX_FLAGS += $(shell pkg-config --cflags libavcodec libavformat sndfile) -dpthread
  14. LINK_FLAGS += $(shell pkg-config --libs libavcodec libavformat sndfile) -lpthread
  15. endif
  16. ifeq ($(HAVE_ZYN_DEPS),true)
  17. ZYN_CXX_FLAGS = $(BUILD_CXX_FLAGS)
  18. ZYN_CXX_FLAGS += $(shell pkg-config --cflags fftw3 mxml) -dpthread
  19. LINK_FLAGS += $(shell pkg-config --libs fftw3 mxml) -lpthread
  20. endif
  21. # --------------------------------------------------------------
  22. # Simple plugins
  23. OBJS = \
  24. bypass.c.o \
  25. midi-split.c.o \
  26. midi-through.c.o
  27. # DISTRHO plugins
  28. # OBJS += \
  29. # distrho-3bandeq.cpp.o \
  30. # distrho-3bandsplitter.cpp.o \
  31. # distrho-pingpongpan.cpp.o
  32. ifeq ($(HAVE_AF_DEPS),true)
  33. OBJS += \
  34. audiofile.c.o
  35. endif
  36. # ZynAddSubFX
  37. ifeq ($(HAVE_ZYN_DEPS),true)
  38. OBJS += \
  39. zynaddsubfx.cpp.o \
  40. zynaddsubfx-src.cpp.o
  41. endif
  42. SHARED = ../libcarla_native.so
  43. STATIC = ../libcarla_native.a
  44. # --------------------------------------------------------------
  45. all: $(STATIC)
  46. clean:
  47. rm -f $(OBJS) $(SHARED) $(STATIC)
  48. debug:
  49. $(MAKE) DEBUG=true
  50. # --------------------------------------------------------------
  51. %.c.o: %.c
  52. $(CC) $< $(BUILD_C_FLAGS) -c -o $@
  53. %.cpp.o: %.cpp
  54. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  55. $(SHARED): $(OBJS) $(LIBS)
  56. $(CXX) $^ -shared $(LINK_FLAGS) -o $@
  57. $(STATIC): $(OBJS) $(LIBS)
  58. $(AR) rs $@ $^
  59. # --------------------------------------------------------------
  60. distrho-3bandeq.cpp.o: distrho-3bandeq.cpp
  61. $(CXX) $< $(BUILD_CXX_FLAGS) -I3bandeq -DDISTRHO_NAMESPACE=DISTRHO_3BandEQ -c -o $@
  62. distrho-3bandsplitter.cpp.o: distrho-3bandsplitter.cpp
  63. $(CXX) $< $(BUILD_CXX_FLAGS) -I3bandsplitter -DDISTRHO_NAMESPACE=DISTRHO_3BandSplitter -c -o $@
  64. distrho-pingpongpan.cpp.o: distrho-pingpongpan.cpp
  65. $(CXX) $< $(BUILD_CXX_FLAGS) -Ipingpongpan -DDISTRHO_NAMESPACE=DISTRHO_PingPongPan -c -o $@
  66. zynaddsubfx.cpp.o: zynaddsubfx.cpp
  67. $(CXX) $< $(ZYN_CXX_FLAGS) -c -o $@
  68. zynaddsubfx-src.cpp.o: zynaddsubfx-src.cpp
  69. $(CXX) $< $(ZYN_CXX_FLAGS) -c -o $@