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.

119 lines
3.4KB

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