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 5.6KB

11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  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. -I../../libs/distrho -I../../widgets
  9. ifeq ($(HAVE_QT5),true)
  10. BUILD_CXX_FLAGS += $(shell pkg-config --cflags Qt5Core Qt5Gui Qt5Widgets)
  11. else
  12. BUILD_CXX_FLAGS += $(shell pkg-config --cflags QtCore QtGui)
  13. endif
  14. # --------------------------------------------------------------
  15. CARLA_CXX_FLAGS = $(BUILD_CXX_FLAGS)
  16. CARLA_CXX_FLAGS += $(shell pkg-config --cflags liblo)
  17. CARLA_CXX_FLAGS += -I../engine
  18. ifeq ($(HAVE_AF_DEPS),true)
  19. AF_C_FLAGS = $(BUILD_C_FLAGS)
  20. AF_C_FLAGS += $(shell pkg-config --cflags sndfile)
  21. ifeq ($(HAVE_FFMPEG),true)
  22. AF_C_FLAGS += -DHAVE_FFMPEG
  23. AF_C_FLAGS += $(shell pkg-config --cflags libavcodec libavformat libavutil)
  24. endif
  25. endif
  26. ifeq ($(HAVE_MF_DEPS),true)
  27. MF_CXX_FLAGS = $(BUILD_CXX_FLAGS)
  28. MF_CXX_FLAGS += $(shell pkg-config --cflags smf)
  29. endif
  30. ifeq ($(HAVE_OPENGL),true)
  31. GL_CXX_FLAGS = $(BUILD_CXX_FLAGS)
  32. GL_CXX_FLAGS += $(shell pkg-config --cflags gl)
  33. endif
  34. ifeq ($(HAVE_ZYN_DEPS),true)
  35. ZYN_CXX_FLAGS = $(BUILD_CXX_FLAGS)
  36. ZYN_CXX_FLAGS += $(shell pkg-config --cflags fftw3 mxml zlib)
  37. ifeq ($(HAVE_ZYN_UI_DEPS),true)
  38. ZYN_CXX_FLAGS += -DNTK_GUI
  39. ZYN_CXX_FLAGS += $(shell pkg-config --cflags ntk ntk_images)
  40. endif
  41. endif
  42. # --------------------------------------------------------------
  43. # Simple plugins
  44. OBJS = \
  45. bypass.c.o \
  46. lfo.c.o \
  47. midi-sequencer.cpp.o \
  48. midi-split.c.o \
  49. midi-through.c.o \
  50. midi-transpose.c.o \
  51. nekofilter.c.o \
  52. sunvox-file.cpp.o
  53. # Carla
  54. OBJS += \
  55. carla.cpp.o
  56. # AudioFile
  57. ifeq ($(HAVE_AF_DEPS),true)
  58. OBJS += \
  59. audiofile.c.o
  60. endif
  61. # MidiFile
  62. ifeq ($(HAVE_MF_DEPS),true)
  63. OBJS += \
  64. midi-file.cpp.o
  65. endif
  66. # DISTRHO plugins (OpenGL)
  67. ifeq ($(HAVE_OPENGL),true)
  68. OBJS += \
  69. distrho-3bandeq.cpp.o \
  70. distrho-3bandsplitter.cpp.o \
  71. distrho-pingpongpan.cpp.o
  72. endif
  73. # DISTRHO plugins (Qt)
  74. OBJS += \
  75. distrho-notes.cpp.o
  76. ifeq ($(HAVE_ZYN_DEPS),true)
  77. # ZynAddSubFX
  78. OBJS += \
  79. zynaddsubfx.cpp.o \
  80. zynaddsubfx-src.cpp.o
  81. ifeq ($(HAVE_ZYN_UI_DEPS),true)
  82. OBJS += zynaddsubfx-ui.cpp.o
  83. ZYN_UI_FILES_CPP = \
  84. zynaddsubfx/UI/ADnoteUI.cpp \
  85. zynaddsubfx/UI/BankUI.cpp \
  86. zynaddsubfx/UI/ConfigUI.cpp \
  87. zynaddsubfx/UI/EffUI.cpp \
  88. zynaddsubfx/UI/EnvelopeUI.cpp \
  89. zynaddsubfx/UI/FilterUI.cpp \
  90. zynaddsubfx/UI/LFOUI.cpp \
  91. zynaddsubfx/UI/MasterUI.cpp \
  92. zynaddsubfx/UI/MicrotonalUI.cpp \
  93. zynaddsubfx/UI/OscilGenUI.cpp \
  94. zynaddsubfx/UI/PADnoteUI.cpp \
  95. zynaddsubfx/UI/PartUI.cpp \
  96. zynaddsubfx/UI/PresetsUI.cpp \
  97. zynaddsubfx/UI/ResonanceUI.cpp \
  98. zynaddsubfx/UI/SUBnoteUI.cpp \
  99. zynaddsubfx/UI/VirKeyboard.cpp
  100. ZYN_UI_FILES_H = \
  101. zynaddsubfx/UI/ADnoteUI.h \
  102. zynaddsubfx/UI/BankUI.h \
  103. zynaddsubfx/UI/ConfigUI.h \
  104. zynaddsubfx/UI/EffUI.h \
  105. zynaddsubfx/UI/EnvelopeUI.h \
  106. zynaddsubfx/UI/FilterUI.h \
  107. zynaddsubfx/UI/LFOUI.h \
  108. zynaddsubfx/UI/MasterUI.h \
  109. zynaddsubfx/UI/MicrotonalUI.h \
  110. zynaddsubfx/UI/OscilGenUI.h \
  111. zynaddsubfx/UI/PADnoteUI.h \
  112. zynaddsubfx/UI/PartUI.h \
  113. zynaddsubfx/UI/PresetsUI.h \
  114. zynaddsubfx/UI/ResonanceUI.h \
  115. zynaddsubfx/UI/SUBnoteUI.h \
  116. zynaddsubfx/UI/VirKeyboard.h
  117. endif
  118. endif
  119. TARGET = ../libcarla_native.a
  120. # --------------------------------------------------------------
  121. all: $(TARGET)
  122. clean:
  123. rm -f $(OBJS) $(TARGET)
  124. rm -f $(ZYN_UI_FILES_CPP)
  125. rm -f $(ZYN_UI_FILES_H)
  126. rm -f moc_*.cpp
  127. debug:
  128. $(MAKE) DEBUG=true
  129. # --------------------------------------------------------------
  130. %.c.o: %.c ../CarlaNative.h
  131. $(CC) $< $(BUILD_C_FLAGS) -c -o $@
  132. %.cpp.o: %.cpp ../CarlaNative.h ../CarlaNative.hpp
  133. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  134. $(TARGET): $(OBJS)
  135. $(AR) rs $@ $^
  136. # --------------------------------------------------------------
  137. audiofile.c.o: audiofile.c
  138. $(CC) $< $(AF_C_FLAGS) -c -o $@
  139. carla.cpp.o: carla.cpp
  140. $(CXX) $< $(CARLA_CXX_FLAGS) -c -o $@
  141. distrho-3bandeq.cpp.o: distrho-3bandeq.cpp 3bandeq/DistrhoArtwork3BandEQ.cpp 3bandeq/DistrhoPlugin3BandEQ.cpp 3bandeq/DistrhoUI3BandEQ.cpp distrho/DistrhoPluginCarla.cpp
  142. $(CXX) $< $(GL_CXX_FLAGS) -I3bandeq -DDISTRHO_NAMESPACE=DISTRHO_3BandEQ -c -o $@
  143. distrho-3bandsplitter.cpp.o: distrho-3bandsplitter.cpp 3bandsplitter/DistrhoArtwork3BandSplitter.cpp 3bandsplitter/DistrhoPlugin3BandSplitter.cpp 3bandsplitter/DistrhoUI3BandSplitter.cpp distrho/DistrhoPluginCarla.cpp
  144. $(CXX) $< $(GL_CXX_FLAGS) -I3bandsplitter -DDISTRHO_NAMESPACE=DISTRHO_3BandSplitter -c -o $@
  145. distrho-pingpongpan.cpp.o: distrho-pingpongpan.cpp pingpongpan/DistrhoArtworkPingPongPan.cpp pingpongpan/DistrhoPluginPingPongPan.cpp pingpongpan/DistrhoUIPingPongPan.cpp distrho/DistrhoPluginCarla.cpp
  146. $(CXX) $< $(GL_CXX_FLAGS) -Ipingpongpan -DDISTRHO_NAMESPACE=DISTRHO_PingPongPan -c -o $@
  147. distrho-notes.cpp.o: distrho-notes.cpp notes/DistrhoPluginNotes.cpp notes/DistrhoUINotes.cpp distrho/DistrhoPluginCarla.cpp moc_DistrhoUINotes.cpp
  148. $(CXX) $< $(BUILD_CXX_FLAGS) -Inotes -DDISTRHO_NAMESPACE=DISTRHO_Notes -c -o $@
  149. midi-file.cpp.o: midi-file.cpp
  150. $(CXX) $< $(MF_CXX_FLAGS) -c -o $@
  151. zynaddsubfx.cpp.o: zynaddsubfx.cpp $(ZYN_UI_FILES_H)
  152. $(CXX) $< $(ZYN_CXX_FLAGS) -c -o $@
  153. zynaddsubfx-src.cpp.o: zynaddsubfx-src.cpp
  154. $(CXX) $< $(ZYN_CXX_FLAGS) -c -o $@
  155. zynaddsubfx-ui.cpp.o: zynaddsubfx-ui.cpp $(ZYN_UI_FILES_CPP)
  156. $(CXX) $< $(ZYN_CXX_FLAGS) -c -o $@
  157. # --------------------------------------------------------------
  158. moc_DistrhoUINotes.cpp: notes/DistrhoUINotes.hpp
  159. $(MOC) $< -o $@
  160. zynaddsubfx/UI/%.cpp: zynaddsubfx/UI/%.fl
  161. ntk-fluid -c -o zynaddsubfx/UI/$*.cpp -h zynaddsubfx/UI/$*.h $<
  162. zynaddsubfx/UI/%.h: zynaddsubfx/UI/%.fl
  163. ntk-fluid -c -o zynaddsubfx/UI/$*.cpp -h zynaddsubfx/UI/$*.h $<
  164. # --------------------------------------------------------------
  165. ../libs/%:
  166. $(MAKE) -C ../libs $*