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.

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