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.

194 lines
4.8KB

  1. #!/usr/bin/make -f
  2. # Makefile for native-plugins #
  3. # --------------------------- #
  4. # Created by falkTX
  5. #
  6. include ../../Makefile.mk
  7. # --------------------------------------------------------------
  8. BUILD_C_FLAGS += -I. -I../../includes -isystem ..
  9. BUILD_CXX_FLAGS += -I. -I../../includes -I../../utils -I../distrho -isystem ..
  10. # --------------------------------------------------------------
  11. # Flags for _all.c
  12. ALL_C_FLAGS = $(BUILD_C_FLAGS)
  13. # ZynAddSubFX
  14. ifeq ($(HAVE_ZYN_DEPS),true)
  15. ALL_C_FLAGS += -DWANT_ZYNADDSUBFX
  16. endif
  17. # --------------------------------------------------------------
  18. # Flags for ZynAddSubFX
  19. ifeq ($(HAVE_ZYN_DEPS),true)
  20. ZYN_CXX_FLAGS = $(BUILD_CXX_FLAGS)
  21. ZYN_CXX_FLAGS += $(shell pkg-config --cflags fftw3 mxml zlib)
  22. ifneq ($(MACOS),true)
  23. ZYN_CXX_FLAGS += -DHAVE_SCHEDULER
  24. endif
  25. ifeq ($(HAVE_ZYN_UI_DEPS),true)
  26. ZYN_CXX_FLAGS += -DNTK_GUI -DWANT_ZYNADDSUBFX_UI
  27. ZYN_CXX_FLAGS += $(shell pkg-config --cflags ntk_images ntk)
  28. endif
  29. endif
  30. # --------------------------------------------------------------
  31. # Set objects
  32. OBJS = _all.c.o
  33. # --------------------------------------------------------------
  34. # Simple plugins
  35. OBJS += \
  36. bypass.c.o \
  37. lfo.c.o \
  38. midi-gain.c.o \
  39. midi-split.c.o \
  40. midi-through.c.o \
  41. midi-transpose.c.o \
  42. nekofilter.c.o
  43. OBJS += \
  44. audio-file.cpp.o \
  45. midi-file.cpp.o
  46. ifneq ($(WIN32),true)
  47. # --------------------------------------------------------------
  48. # External-UI plugins
  49. OBJS += \
  50. bigmeter.cpp.o \
  51. notes.cpp.o
  52. endif
  53. # --------------------------------------------------------------
  54. # ZynAddSubFX
  55. ifeq ($(HAVE_ZYN_DEPS),true)
  56. OBJS += \
  57. zynaddsubfx-fx.cpp.o \
  58. zynaddsubfx-synth.cpp.o \
  59. zynaddsubfx-src.cpp.o
  60. ifeq ($(HAVE_ZYN_UI_DEPS),true)
  61. OBJS += zynaddsubfx-ui.cpp.o
  62. ZYN_UI_FILES_CPP = \
  63. zynaddsubfx/UI/ADnoteUI.cpp \
  64. zynaddsubfx/UI/BankUI.cpp \
  65. zynaddsubfx/UI/ConfigUI.cpp \
  66. zynaddsubfx/UI/EffUI.cpp \
  67. zynaddsubfx/UI/EnvelopeUI.cpp \
  68. zynaddsubfx/UI/FilterUI.cpp \
  69. zynaddsubfx/UI/LFOUI.cpp \
  70. zynaddsubfx/UI/MasterUI.cpp \
  71. zynaddsubfx/UI/MicrotonalUI.cpp \
  72. zynaddsubfx/UI/OscilGenUI.cpp \
  73. zynaddsubfx/UI/PADnoteUI.cpp \
  74. zynaddsubfx/UI/PartUI.cpp \
  75. zynaddsubfx/UI/PresetsUI.cpp \
  76. zynaddsubfx/UI/ResonanceUI.cpp \
  77. zynaddsubfx/UI/SUBnoteUI.cpp \
  78. zynaddsubfx/UI/VirKeyboard.cpp
  79. ZYN_UI_FILES_H = \
  80. zynaddsubfx/UI/ADnoteUI.h \
  81. zynaddsubfx/UI/BankUI.h \
  82. zynaddsubfx/UI/ConfigUI.h \
  83. zynaddsubfx/UI/EffUI.h \
  84. zynaddsubfx/UI/EnvelopeUI.h \
  85. zynaddsubfx/UI/FilterUI.h \
  86. zynaddsubfx/UI/LFOUI.h \
  87. zynaddsubfx/UI/MasterUI.h \
  88. zynaddsubfx/UI/MicrotonalUI.h \
  89. zynaddsubfx/UI/OscilGenUI.h \
  90. zynaddsubfx/UI/PADnoteUI.h \
  91. zynaddsubfx/UI/PartUI.h \
  92. zynaddsubfx/UI/PresetsUI.h \
  93. zynaddsubfx/UI/ResonanceUI.h \
  94. zynaddsubfx/UI/SUBnoteUI.h \
  95. zynaddsubfx/UI/VirKeyboard.h
  96. endif
  97. endif
  98. # --------------------------------------------------------------
  99. all: ../native-plugins.a
  100. # --------------------------------------------------------------
  101. ../native-plugins.a: $(OBJS)
  102. $(RM) $@
  103. $(AR) crs $@ $^
  104. # --------------------------------------------------------------
  105. CDEPS = ../CarlaNative.h
  106. _all.c.o: _all.c $(CDEPS)
  107. $(CC) $< $(ALL_C_FLAGS) -c -o $@
  108. bypass.c.o: bypass.c $(CDEPS)
  109. $(CC) $< $(BUILD_C_FLAGS) -c -o $@
  110. lfo.c.o: lfo.c $(CDEPS)
  111. $(CC) $< $(BUILD_C_FLAGS) -c -o $@
  112. midi-%.c.o: midi-%.c $(CDEPS)
  113. $(CC) $< $(BUILD_C_FLAGS) -c -o $@
  114. nekofilter.c.o: nekofilter.c nekofilter/*.c nekofilter/*.h $(CDEPS)
  115. $(CC) $< $(BUILD_C_FLAGS) -c -o $@
  116. # --------------------------------------------------------------
  117. CXXDEPS = ../CarlaNative.h ../CarlaNative.hpp
  118. audio-file.cpp.o: audio-file.cpp $(CXXDEPS)
  119. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  120. bigmeter.cpp.o: bigmeter.cpp $(CXXDEPS) ../CarlaNativeExtUI.hpp
  121. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  122. midi-file.cpp.o: midi-file.cpp midi-base.hpp $(CXXDEPS)
  123. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  124. midi-sequencer.cpp.o: midi-sequencer.cpp midi-base.hpp $(CXXDEPS)
  125. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  126. notes.cpp.o: notes.cpp $(CXXDEPS) ../CarlaNativeExtUI.hpp
  127. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  128. zynaddsubfx-%.cpp.o: zynaddsubfx-%.cpp $(CXXDEPS) $(ZYN_UI_FILES_H)
  129. $(CXX) $< $(ZYN_CXX_FLAGS) -c -o $@
  130. zynaddsubfx-src.cpp.o: zynaddsubfx-src.cpp $(ZYN_UI_FILES_H)
  131. $(CXX) $< $(ZYN_CXX_FLAGS) -c -o $@
  132. zynaddsubfx-ui.cpp.o: zynaddsubfx-ui.cpp $(ZYN_UI_FILES_H) $(ZYN_UI_FILES_CPP)
  133. $(CXX) $< $(ZYN_CXX_FLAGS) -c -o $@
  134. zynaddsubfx/UI/%.cpp: zynaddsubfx/UI/%.fl
  135. ntk-fluid -c -o zynaddsubfx/UI/$*.cpp -h zynaddsubfx/UI/$*.h $<
  136. zynaddsubfx/UI/%.h: zynaddsubfx/UI/%.fl
  137. ntk-fluid -c -o zynaddsubfx/UI/$*.cpp -h zynaddsubfx/UI/$*.h $<
  138. # --------------------------------------------------------------
  139. clean:
  140. $(RM) *.o ../native-plugins*.a ../libnative-plugins.*
  141. ifeq ($(HAVE_ZYN_UI_DEPS),true)
  142. $(RM) $(ZYN_UI_FILES_H) $(ZYN_UI_FILES_CPP)
  143. endif
  144. debug:
  145. $(MAKE) DEBUG=true
  146. # --------------------------------------------------------------