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.

Makefile 6.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. #!/usr/bin/make -f
  2. # Makefile for native-plugins #
  3. # --------------------------- #
  4. # Created by falkTX
  5. #
  6. # NOTE: this file assumes Makefile.mk has been included before
  7. # ---------------------------------------------------------------------------------------------------------------------
  8. # DPF plugins
  9. OBJS_all += \
  10. $(OBJDIR)/distrho-3bandeq.cpp.o \
  11. $(OBJDIR)/distrho-3bandsplitter.cpp.o \
  12. $(OBJDIR)/distrho-kars.cpp.o \
  13. $(OBJDIR)/distrho-nekobi.cpp.o \
  14. $(OBJDIR)/distrho-pingpongpan.cpp.o
  15. ifeq ($(HAVE_DGL),true)
  16. ifeq ($(HAVE_PROJECTM),true)
  17. OBJS += $(OBJDIR)/distrho-prom.cpp.o
  18. endif
  19. endif
  20. # ---------------------------------------------------------------------------------------------------------------------
  21. # DPF plugins (Juice)
  22. OBJS_all += \
  23. $(OBJDIR)/distrho-vectorjuice.cpp.o \
  24. $(OBJDIR)/distrho-wobblejuice.cpp.o
  25. # ---------------------------------------------------------------------------------------------------------------------
  26. # ZynAddSubFX
  27. ifeq ($(HAVE_ZYN_DEPS),true)
  28. OBJS_all += \
  29. $(OBJDIR)/zynaddsubfx-fx.cpp.o \
  30. $(OBJDIR)/zynaddsubfx-src.cpp.o \
  31. $(OBJDIR)/zynaddsubfx-synth.cpp.o
  32. ifeq ($(HAVE_ZYN_UI_DEPS),true)
  33. TARGETS += resources/zynaddsubfx-ui$(APP_EXT)
  34. ZYN_UI_FILES_CPP = \
  35. zynaddsubfx/UI/ADnoteUI.cpp \
  36. zynaddsubfx/UI/BankUI.cpp \
  37. zynaddsubfx/UI/ConfigUI.cpp \
  38. zynaddsubfx/UI/EffUI.cpp \
  39. zynaddsubfx/UI/EnvelopeUI.cpp \
  40. zynaddsubfx/UI/FilterUI.cpp \
  41. zynaddsubfx/UI/LFOUI.cpp \
  42. zynaddsubfx/UI/MasterUI.cpp \
  43. zynaddsubfx/UI/MicrotonalUI.cpp \
  44. zynaddsubfx/UI/OscilGenUI.cpp \
  45. zynaddsubfx/UI/PADnoteUI.cpp \
  46. zynaddsubfx/UI/PartUI.cpp \
  47. zynaddsubfx/UI/PresetsUI.cpp \
  48. zynaddsubfx/UI/ResonanceUI.cpp \
  49. zynaddsubfx/UI/SUBnoteUI.cpp \
  50. zynaddsubfx/UI/VirKeyboard.cpp
  51. ZYN_UI_FILES_H = \
  52. zynaddsubfx/UI/ADnoteUI.h \
  53. zynaddsubfx/UI/BankUI.h \
  54. zynaddsubfx/UI/ConfigUI.h \
  55. zynaddsubfx/UI/EffUI.h \
  56. zynaddsubfx/UI/EnvelopeUI.h \
  57. zynaddsubfx/UI/FilterUI.h \
  58. zynaddsubfx/UI/LFOUI.h \
  59. zynaddsubfx/UI/MasterUI.h \
  60. zynaddsubfx/UI/MicrotonalUI.h \
  61. zynaddsubfx/UI/OscilGenUI.h \
  62. zynaddsubfx/UI/PADnoteUI.h \
  63. zynaddsubfx/UI/PartUI.h \
  64. zynaddsubfx/UI/PresetsUI.h \
  65. zynaddsubfx/UI/ResonanceUI.h \
  66. zynaddsubfx/UI/SUBnoteUI.h \
  67. zynaddsubfx/UI/VirKeyboard.h
  68. endif
  69. endif
  70. # ---------------------------------------------------------------------------------------------------------------------
  71. zynaddsubfx/UI/%.cpp: zynaddsubfx/UI/%.fl
  72. @echo "Generating $@|h"
  73. @$(FLUID) -c -o zynaddsubfx/UI/$*.cpp -h zynaddsubfx/UI/$*.h $<
  74. zynaddsubfx/UI/%.h: zynaddsubfx/UI/%.fl
  75. @echo "Generating $@|cpp"
  76. @$(FLUID) -c -o zynaddsubfx/UI/$*.cpp -h zynaddsubfx/UI/$*.h $<
  77. # ---------------------------------------------------------------------------------------------------------------------
  78. $(OBJDIR)/distrho-3bandeq.cpp.o: $(EXTERNAL_DIR)distrho-3bandeq.cpp
  79. -@mkdir -p $(OBJDIR)
  80. @echo "Compiling $<"
  81. @$(CXX) $< $(BUILD_CXX_FLAGS) $(DPF_FLAGS) -DDISTRHO_NAMESPACE=d3BandEQ -Idistrho-3bandeq -c -o $@
  82. $(OBJDIR)/distrho-3bandsplitter.cpp.o: distrho-3bandsplitter.cpp
  83. -@mkdir -p $(OBJDIR)
  84. @echo "Compiling $<"
  85. @$(CXX) $< $(BUILD_CXX_FLAGS) $(DPF_FLAGS) -DDISTRHO_NAMESPACE=d3BandSplitter -Idistrho-3bandsplitter -c -o $@
  86. $(OBJDIR)/distrho-kars.cpp.o: distrho-kars.cpp
  87. -@mkdir -p $(OBJDIR)
  88. @echo "Compiling $<"
  89. @$(CXX) $< $(BUILD_CXX_FLAGS) $(DPF_FLAGS) -DDISTRHO_NAMESPACE=dKars -Idistrho-kars -c -o $@
  90. $(OBJDIR)/distrho-nekobi.cpp.o: distrho-nekobi.cpp
  91. -@mkdir -p $(OBJDIR)
  92. @echo "Compiling $<"
  93. @$(CXX) $< $(BUILD_CXX_FLAGS) $(DPF_FLAGS) -DDISTRHO_NAMESPACE=dNekobi -Idistrho-nekobi -w -c -o $@
  94. $(OBJDIR)/distrho-pingpongpan.cpp.o: distrho-pingpongpan.cpp
  95. -@mkdir -p $(OBJDIR)
  96. @echo "Compiling $<"
  97. @$(CXX) $< $(BUILD_CXX_FLAGS) $(DPF_FLAGS) -DDISTRHO_NAMESPACE=dPingPongPan -Idistrho-pingpongpan -c -o $@
  98. $(OBJDIR)/distrho-prom.cpp.o: distrho-prom.cpp
  99. -@mkdir -p $(OBJDIR)
  100. @echo "Compiling $<"
  101. @$(CXX) $< $(BUILD_CXX_FLAGS) $(DPF_FLAGS) $(PROJECTM_FLAGS) -DDISTRHO_NAMESPACE=dProM -Idistrho-prom -c -o $@
  102. # ---------------------------------------------------------------------------------------------------------------------
  103. $(OBJDIR)/distrho-vectorjuice.cpp.o: distrho-vectorjuice.cpp
  104. -@mkdir -p $(OBJDIR)
  105. @echo "Compiling $<"
  106. @$(CXX) $< $(BUILD_CXX_FLAGS) $(DPF_FLAGS) -DDISTRHO_NAMESPACE=dVectorJuice -Idistrho-vectorjuice -c -o $@
  107. $(OBJDIR)/distrho-wobblejuice.cpp.o: distrho-wobblejuice.cpp
  108. -@mkdir -p $(OBJDIR)
  109. @echo "Compiling $<"
  110. @$(CXX) $< $(BUILD_CXX_FLAGS) $(DPF_FLAGS) -DDISTRHO_NAMESPACE=dWobbleJuice -Idistrho-wobblejuice -c -o $@
  111. # ---------------------------------------------------------------------------------------------------------------------
  112. $(OBJDIR)/zynaddsubfx-fx.cpp.o: zynaddsubfx-fx.cpp
  113. -@mkdir -p $(OBJDIR)
  114. @echo "Compiling $<"
  115. @$(CXX) $< $(BUILD_CXX_FLAGS) $(ZYN_DSP_FLAGS) -c -o $@
  116. $(OBJDIR)/zynaddsubfx-synth.cpp.o: zynaddsubfx-synth.cpp
  117. -@mkdir -p $(OBJDIR)
  118. @echo "Compiling $<"
  119. @$(CXX) $< $(BUILD_CXX_FLAGS) $(ZYN_DSP_FLAGS) -Wno-unused-parameter -c -o $@
  120. $(OBJDIR)/zynaddsubfx-src.cpp.o: zynaddsubfx-src.cpp
  121. -@mkdir -p $(OBJDIR)
  122. @echo "Compiling $<"
  123. @$(CXX) $< $(BUILD_CXX_FLAGS) $(ZYN_DSP_FLAGS) -Wno-unused-parameter -Wno-unused-variable -c -o $@
  124. $(OBJDIR)/zynaddsubfx-ui.cpp.o: zynaddsubfx-ui.cpp $(ZYN_UI_FILES_H) $(ZYN_UI_FILES_CPP)
  125. -@mkdir -p $(OBJDIR)
  126. @echo "Compiling $<"
  127. @$(CXX) $< $(BUILD_CXX_FLAGS) $(ZYN_UI_FLAGS) -Wno-unused-parameter -Wno-unused-variable -c -o $@
  128. resources/zynaddsubfx-ui$(APP_EXT): $(OBJDIR)/zynaddsubfx-ui.cpp.o
  129. -@mkdir -p ../resources
  130. @echo "Linking zynaddsubfx-ui"
  131. @$(CXX) $^ $(LINK_FLAGS) $(ZYN_UI_LIBS) -o $@
  132. # ---------------------------------------------------------------------------------------------------------------------
  133. $(OBJDIR)/zita-%-ui.cpp.o: zita-%-ui.cpp
  134. -@mkdir -p $(OBJDIR)
  135. @echo "Compiling $<"
  136. @$(CXX) $< $(BUILD_CXX_FLAGS) $(ZITA_UI_FLAGS) -c -o $@
  137. $(OBJDIR)/zita-%.cpp.o: zita-%.cpp
  138. -@mkdir -p $(OBJDIR)
  139. @echo "Compiling $<"
  140. @$(CXX) $< $(BUILD_CXX_FLAGS) $(ZITA_DSP_FLAGS) -c -o $@
  141. resources/zita-%-ui$(APP_EXT): $(OBJDIR)/zita-%-ui.cpp.o
  142. -@mkdir -p ../resources
  143. @echo "Linking $<"
  144. @$(CXX) $^ $(LINK_FLAGS) $(ZITA_UI_LIBS) -o $@
  145. # ---------------------------------------------------------------------------------------------------------------------
  146. -include $(OBJDIR)/zita-at1-ui.cpp.d
  147. -include $(OBJDIR)/zita-bls1-ui.cpp.d
  148. -include $(OBJDIR)/zita-rev1-ui.cpp.d
  149. -include $(OBJDIR)/zynaddsubfx-ui.cpp.d
  150. # ---------------------------------------------------------------------------------------------------------------------