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.

111 lines
2.9KB

  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
  9. BUILD_CXX_FLAGS += $(shell pkg-config --cflags QtCore QtGui gl)
  10. LINK_FLAGS += $(shell pkg-config --libs QtCore 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)
  14. LINK_FLAGS += $(shell pkg-config --libs libavcodec libavformat sndfile)
  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)
  19. LINK_FLAGS += $(shell pkg-config --libs fftw3 mxml)
  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. distrho-notes.cpp.o
  33. ifeq ($(HAVE_AF_DEPS),true)
  34. OBJS += \
  35. audiofile.c.o
  36. endif
  37. # ZynAddSubFX
  38. ifeq ($(HAVE_ZYN_DEPS),true)
  39. OBJS += \
  40. zynaddsubfx.cpp.o \
  41. zynaddsubfx-src.cpp.o
  42. endif
  43. SHARED = ../libcarla_native.so
  44. STATIC = ../libcarla_native.a
  45. LIBS = ../../libs/dgl.a
  46. # --------------------------------------------------------------
  47. all: $(STATIC)
  48. clean:
  49. rm -f $(OBJS) $(SHARED) $(STATIC)
  50. rm -f moc_*.cpp
  51. debug:
  52. $(MAKE) DEBUG=true
  53. # --------------------------------------------------------------
  54. %.c.o: %.c
  55. $(CC) $< $(BUILD_C_FLAGS) -c -o $@
  56. %.cpp.o: %.cpp
  57. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  58. $(SHARED): $(OBJS) $(LIBS)
  59. $(CXX) $^ -shared $(LINK_FLAGS) -o $@
  60. $(STATIC): $(OBJS)
  61. $(AR) rs $@ $^
  62. # --------------------------------------------------------------
  63. distrho-3bandeq.cpp.o: distrho-3bandeq.cpp 3bandeq/DistrhoArtwork3BandEQ.cpp 3bandeq/DistrhoPlugin3BandEQ.cpp 3bandeq/DistrhoUI3BandEQ.cpp distrho/DistrhoPluginCarla.cpp
  64. $(CXX) $< $(BUILD_CXX_FLAGS) -I3bandeq -DDISTRHO_NAMESPACE=DISTRHO_3BandEQ -c -o $@
  65. distrho-3bandsplitter.cpp.o: distrho-3bandsplitter.cpp distrho/DistrhoPluginCarla.cpp
  66. $(CXX) $< $(BUILD_CXX_FLAGS) -I3bandsplitter -DDISTRHO_NAMESPACE=DISTRHO_3BandSplitter -c -o $@
  67. distrho-pingpongpan.cpp.o: distrho-pingpongpan.cpp distrho/DistrhoPluginCarla.cpp
  68. $(CXX) $< $(BUILD_CXX_FLAGS) -Ipingpongpan -DDISTRHO_NAMESPACE=DISTRHO_PingPongPan -c -o $@
  69. distrho-notes.cpp.o: distrho-notes.cpp distrho/DistrhoPluginCarla.cpp moc_DistrhoUINotes.cpp moc_ParamProgressBar.cpp
  70. $(CXX) $< $(BUILD_CXX_FLAGS) -Inotes -DDISTRHO_NAMESPACE=DISTRHO_Notes -c -o $@
  71. zynaddsubfx.cpp.o: zynaddsubfx.cpp
  72. $(CXX) $< $(ZYN_CXX_FLAGS) -c -o $@
  73. zynaddsubfx-src.cpp.o: zynaddsubfx-src.cpp
  74. $(CXX) $< $(ZYN_CXX_FLAGS) -c -o $@
  75. # --------------------------------------------------------------
  76. moc_DistrhoUINotes.cpp: notes/DistrhoUINotes.hpp
  77. $(MOC) $< -o $@
  78. moc_ParamProgressBar.cpp: notes/ParamProgressBar.hpp
  79. $(MOC) $< -o $@