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.

113 lines
3.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
  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. midi-transpose.c.o \
  28. nekofilter.c.o
  29. # DISTRHO plugins
  30. OBJS += \
  31. distrho-3bandeq.cpp.o \
  32. distrho-3bandsplitter.cpp.o \
  33. distrho-pingpongpan.cpp.o \
  34. distrho-notes.cpp.o
  35. ifeq ($(HAVE_AF_DEPS),true)
  36. OBJS += \
  37. audiofile.c.o
  38. endif
  39. # ZynAddSubFX
  40. ifeq ($(HAVE_ZYN_DEPS),true)
  41. OBJS += \
  42. zynaddsubfx.cpp.o \
  43. zynaddsubfx-src.cpp.o
  44. endif
  45. SHARED = ../libcarla_native.so
  46. STATIC = ../libcarla_native.a
  47. LIBS = ../../libs/dgl.a
  48. # --------------------------------------------------------------
  49. all: $(STATIC)
  50. clean:
  51. rm -f $(OBJS) $(SHARED) $(STATIC)
  52. rm -f moc_*.cpp
  53. debug:
  54. $(MAKE) DEBUG=true
  55. # --------------------------------------------------------------
  56. %.c.o: %.c
  57. $(CC) $< $(BUILD_C_FLAGS) -c -o $@
  58. %.cpp.o: %.cpp
  59. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  60. $(SHARED): $(OBJS) $(LIBS)
  61. $(CXX) $^ -shared $(LINK_FLAGS) -o $@
  62. $(STATIC): $(OBJS)
  63. $(AR) rs $@ $^
  64. # --------------------------------------------------------------
  65. distrho-3bandeq.cpp.o: distrho-3bandeq.cpp 3bandeq/DistrhoArtwork3BandEQ.cpp 3bandeq/DistrhoPlugin3BandEQ.cpp 3bandeq/DistrhoUI3BandEQ.cpp distrho/DistrhoPluginCarla.cpp
  66. $(CXX) $< $(BUILD_CXX_FLAGS) -I3bandeq -DDISTRHO_NAMESPACE=DISTRHO_3BandEQ -c -o $@
  67. distrho-3bandsplitter.cpp.o: distrho-3bandsplitter.cpp 3bandsplitter/DistrhoArtwork3BandSplitter.cpp 3bandsplitter/DistrhoPlugin3BandSplitter.cpp 3bandsplitter/DistrhoUI3BandSplitter.cpp distrho/DistrhoPluginCarla.cpp
  68. $(CXX) $< $(BUILD_CXX_FLAGS) -I3bandsplitter -DDISTRHO_NAMESPACE=DISTRHO_3BandSplitter -c -o $@
  69. distrho-pingpongpan.cpp.o: distrho-pingpongpan.cpp pingpongpan/DistrhoArtworkPingPongPan.cpp pingpongpan/DistrhoPluginPingPongPan.cpp pingpongpan/DistrhoUIPingPongPan.cpp distrho/DistrhoPluginCarla.cpp
  70. $(CXX) $< $(BUILD_CXX_FLAGS) -Ipingpongpan -DDISTRHO_NAMESPACE=DISTRHO_PingPongPan -c -o $@
  71. distrho-notes.cpp.o: distrho-notes.cpp notes/DistrhoPluginNotes.cpp notes/DistrhoUINotes.cpp distrho/DistrhoPluginCarla.cpp moc_DistrhoUINotes.cpp moc_ParamProgressBar.cpp
  72. $(CXX) $< $(BUILD_CXX_FLAGS) -Inotes -DDISTRHO_NAMESPACE=DISTRHO_Notes -c -o $@
  73. zynaddsubfx.cpp.o: zynaddsubfx.cpp
  74. $(CXX) $< $(ZYN_CXX_FLAGS) -c -o $@
  75. zynaddsubfx-src.cpp.o: zynaddsubfx-src.cpp
  76. $(CXX) $< $(ZYN_CXX_FLAGS) -c -o $@
  77. # --------------------------------------------------------------
  78. moc_DistrhoUINotes.cpp: notes/DistrhoUINotes.hpp
  79. $(MOC) $< -o $@
  80. moc_ParamProgressBar.cpp: notes/ParamProgressBar.hpp
  81. $(MOC) $< -o $@