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.

730 lines
24KB

  1. #!/usr/bin/make -f
  2. # Makefile for Carla #
  3. # ------------------ #
  4. # Created by falkTX
  5. #
  6. include source/Makefile.mk
  7. # --------------------------------------------------------------
  8. PREFIX = /usr/local
  9. DESTDIR =
  10. LINK = ln -sf
  11. ifeq ($(DEFAULT_QT),4)
  12. PYUIC ?= pyuic4 -w
  13. PYRCC ?= pyrcc4 -py3
  14. else
  15. PYUIC ?= pyuic5
  16. PYRCC ?= pyrcc5
  17. endif
  18. # --------------------------------------------------------------
  19. all: BIN RES UI WIDGETS
  20. # --------------------------------------------------------------
  21. # Binaries (native)
  22. BIN: libs backend bridges-plugin bridges-ui discovery plugin theme
  23. # --------------------------------------------------------------
  24. ALL_LIBS += source/backend/carla_engine.a
  25. ALL_LIBS += source/backend/carla_engine_plugin.a
  26. ALL_LIBS += source/backend/carla_plugin.a
  27. ALL_LIBS += source/modules/jackbridge.a
  28. ALL_LIBS += source/modules/juce_audio_basics.a
  29. ALL_LIBS += source/modules/juce_audio_formats.a
  30. ALL_LIBS += source/modules/juce_core.a
  31. ALL_LIBS += source/modules/lilv.a
  32. ALL_LIBS += source/modules/native-plugins.a
  33. ALL_LIBS += source/modules/rtmempool.a
  34. ifeq ($(MACOS_OR_WIN32),true)
  35. ALL_LIBS += source/modules/juce_audio_devices.a
  36. ALL_LIBS += source/modules/juce_audio_processors.a
  37. ALL_LIBS += source/modules/juce_data_structures.a
  38. ALL_LIBS += source/modules/juce_events.a
  39. ALL_LIBS += source/modules/juce_graphics.a
  40. ALL_LIBS += source/modules/juce_gui_basics.a
  41. ifeq ($(MACOS),true)
  42. ALL_LIBS += source/modules/juce_gui_extra.a
  43. endif
  44. else
  45. ALL_LIBS += source/modules/rtaudio.a
  46. ALL_LIBS += source/modules/rtmidi.a
  47. endif
  48. ifeq ($(HAVE_QT4),true)
  49. ALL_LIBS += source/modules/theme.qt4.a
  50. endif
  51. ifeq ($(HAVE_QT5),true)
  52. ALL_LIBS += source/modules/theme.qt5.a
  53. endif
  54. libs: $(ALL_LIBS)
  55. source/backend/carla_%_plugin.a: .FORCE
  56. $(MAKE) -C source/backend/$* ../carla_$*_plugin.a
  57. source/backend/carla_%.a: .FORCE
  58. $(MAKE) -C source/backend/$* ../carla_$*.a
  59. source/modules/%.qt4.a: .FORCE
  60. $(MAKE) -C source/modules/$* ../$*.qt4.a
  61. source/modules/%.qt5.a: .FORCE
  62. $(MAKE) -C source/modules/$* ../$*.qt5.a
  63. source/modules/%.posix32.a: .FORCE
  64. $(MAKE) -C source/modules/$* ../$*.posix32.a
  65. source/modules/%.posix32e.a: .FORCE
  66. $(MAKE) -C source/modules/$* ../$*.posix32e.a
  67. source/modules/%.posix64.a: .FORCE
  68. $(MAKE) -C source/modules/$* ../$*.posix64.a
  69. source/modules/%.posix64e.a: .FORCE
  70. $(MAKE) -C source/modules/$* ../$*.posix64e.a
  71. source/modules/%.win32.a: .FORCE
  72. $(MAKE) -C source/modules/$* ../$*.win32.a
  73. source/modules/%.win32e.a: .FORCE
  74. $(MAKE) -C source/modules/$* ../$*.win32e.a
  75. source/modules/%.win64.a: .FORCE
  76. $(MAKE) -C source/modules/$* ../$*.win64.a
  77. source/modules/%.win64e.a: .FORCE
  78. $(MAKE) -C source/modules/$* ../$*.win64e.a
  79. source/modules/%.a: .FORCE
  80. $(MAKE) -C source/modules/$* ../$*.a
  81. # --------------------------------------------------------------
  82. backend: bin/libcarla_standalone2$(LIB_EXT)
  83. bin/libcarla_standalone2$(LIB_EXT): libs .FORCE
  84. $(MAKE) -C source/backend
  85. # --------------------------------------------------------------
  86. bridges-plugin: bin/carla-bridge-native$(APP_EXT)
  87. bin/carla-bridge-native$(APP_EXT): libs .FORCE
  88. $(MAKE) -C source/bridges-plugin
  89. # --------------------------------------------------------------
  90. bridges-ui: libs .FORCE
  91. $(MAKE) -C source/bridges-ui
  92. # --------------------------------------------------------------
  93. discovery: bin/carla-discovery-native$(APP_EXT)
  94. bin/carla-discovery-native$(APP_EXT): libs .FORCE
  95. $(MAKE) -C source/discovery
  96. # --------------------------------------------------------------
  97. plugin: bin/carla-native.lv2/manifest.ttl
  98. bin/carla-native.lv2/carla-native$(LIB_EXT): backend .FORCE
  99. $(MAKE) -C source/plugin ../../$@
  100. bin/carla-native.lv2/manifest.ttl: bin/carla-native-lv2-export$(APP_EXT) bridges-plugin discovery .FORCE
  101. cd bin && ./carla-native-lv2-export$(APP_EXT); cd ..
  102. cd bin/carla-native.lv2 && $(LINK) ../*bridge-* ../carla-discovery-* .; cd ..
  103. bin/carla-native-lv2-export$(APP_EXT): bin/carla-native.lv2/carla-native$(LIB_EXT) .FORCE
  104. $(MAKE) -C source/plugin ../../$@
  105. # --------------------------------------------------------------
  106. theme: bin/styles/carlastyle$(LIB_EXT)
  107. bin/styles/carlastyle$(LIB_EXT): .FORCE
  108. $(MAKE) -C source/modules/theme
  109. # --------------------------------------------------------------
  110. # Binaries (posix32)
  111. LIBS_POSIX32 += source/modules/jackbridge.posix32.a
  112. LIBS_POSIX32 += source/modules/juce_audio_basics.posix32.a
  113. LIBS_POSIX32 += source/modules/juce_core.posix32.a
  114. LIBS_POSIX32 += source/modules/lilv.posix32.a
  115. LIBS_POSIX32 += source/modules/rtmempool.posix32.a
  116. ifeq ($(MACOS),true)
  117. LIBS_POSIX32 += source/modules/juce_audio_processors.posix32.a
  118. LIBS_POSIX32 += source/modules/juce_data_structures.posix32.a
  119. LIBS_POSIX32 += source/modules/juce_events.posix32.a
  120. LIBS_POSIX32 += source/modules/juce_graphics.posix32.a
  121. LIBS_POSIX32 += source/modules/juce_gui_basics.posix32.a
  122. LIBS_POSIX32 += source/modules/juce_gui_extra.posix32.a
  123. endif
  124. posix32: $(LIBS_POSIX32)
  125. $(MAKE) -C source/bridges-plugin posix32
  126. $(MAKE) -C source/discovery posix32
  127. # --------------------------------------------------------------
  128. # Binaries (posix64)
  129. LIBS_POSIX64 += source/modules/jackbridge.posix64.a
  130. LIBS_POSIX64 += source/modules/juce_audio_basics.posix64.a
  131. LIBS_POSIX64 += source/modules/juce_core.posix64.a
  132. LIBS_POSIX64 += source/modules/lilv.posix64.a
  133. LIBS_POSIX64 += source/modules/rtmempool.posix64.a
  134. ifeq ($(MACOS),true)
  135. LIBS_POSIX64 += source/modules/juce_audio_processors.posix64.a
  136. LIBS_POSIX64 += source/modules/juce_data_structures.posix64.a
  137. LIBS_POSIX64 += source/modules/juce_events.posix64.a
  138. LIBS_POSIX64 += source/modules/juce_graphics.posix64.a
  139. LIBS_POSIX64 += source/modules/juce_gui_basics.posix64.a
  140. LIBS_POSIX64 += source/modules/juce_gui_extra.posix64.a
  141. endif
  142. posix64: $(LIBS_POSIX64)
  143. $(MAKE) -C source/bridges-plugin posix64
  144. $(MAKE) -C source/discovery posix64
  145. # --------------------------------------------------------------
  146. # Binaries (win32)
  147. LIBS_WIN32 += source/modules/jackbridge.win32e.a
  148. LIBS_WIN32 += source/modules/juce_audio_basics.win32.a
  149. LIBS_WIN32 += source/modules/juce_audio_processors.win32.a
  150. LIBS_WIN32 += source/modules/juce_core.win32.a
  151. LIBS_WIN32 += source/modules/juce_data_structures.win32.a
  152. LIBS_WIN32 += source/modules/juce_events.win32.a
  153. LIBS_WIN32 += source/modules/juce_graphics.win32.a
  154. LIBS_WIN32 += source/modules/juce_gui_basics.win32.a
  155. LIBS_WIN32 += source/modules/lilv.win32.a
  156. LIBS_WIN32 += source/modules/rtmempool.win32.a
  157. win32: $(LIBS_WIN32)
  158. $(MAKE) -C source/bridges-plugin win32
  159. $(MAKE) -C source/discovery win32
  160. # --------------------------------------------------------------
  161. # Binaries (win64)
  162. LIBS_WIN64 += source/modules/jackbridge.win64e.a
  163. LIBS_WIN64 += source/modules/juce_audio_basics.win64.a
  164. LIBS_WIN64 += source/modules/juce_audio_processors.win64.a
  165. LIBS_WIN64 += source/modules/juce_core.win64.a
  166. LIBS_WIN64 += source/modules/juce_data_structures.win64.a
  167. LIBS_WIN64 += source/modules/juce_events.win64.a
  168. LIBS_WIN64 += source/modules/juce_graphics.win64.a
  169. LIBS_WIN64 += source/modules/juce_gui_basics.win64.a
  170. LIBS_WIN64 += source/modules/lilv.win64.a
  171. LIBS_WIN64 += source/modules/rtmempool.win64.a
  172. win64: $(LIBS_WIN64)
  173. $(MAKE) -C source/bridges-plugin win64
  174. $(MAKE) -C source/discovery win64
  175. # --------------------------------------------------------------
  176. # Binaries (wine)
  177. wine32:
  178. $(MAKE) -C source/modules/jackbridge wine32
  179. cp -f source/modules/jackbridge-wine32.dll.so bin/jackbridge-wine32.dll
  180. wine64:
  181. $(MAKE) -C source/modules/jackbridge wine64
  182. cp -f source/modules/jackbridge-wine64.dll.so bin/jackbridge-wine64.dll
  183. # --------------------------------------------------------------
  184. # Resources
  185. RES = \
  186. bin/resources/carla_app.py \
  187. bin/resources/carla_backend.py \
  188. bin/resources/carla_config.py \
  189. bin/resources/carla_database.py \
  190. bin/resources/carla_host.py \
  191. bin/resources/carla_patchbay.py \
  192. bin/resources/carla_rack.py \
  193. bin/resources/carla_settings.py \
  194. bin/resources/carla_skin.py \
  195. bin/resources/carla_shared.py \
  196. bin/resources/carla_utils.py \
  197. bin/resources/carla_widgets.py \
  198. bin/resources/canvaspreviewframe.py \
  199. bin/resources/digitalpeakmeter.py \
  200. bin/resources/externalui.py \
  201. bin/resources/ledbutton.py \
  202. bin/resources/paramspinbox.py \
  203. bin/resources/patchcanvas.py \
  204. bin/resources/patchcanvas_theme.py \
  205. bin/resources/pixmapbutton.py \
  206. bin/resources/pixmapdial.py \
  207. bin/resources/pixmapkeyboard.py \
  208. bin/resources/resources_rc.py \
  209. bin/resources/ui_carla_about.py \
  210. bin/resources/ui_carla_about_juce.py \
  211. bin/resources/ui_carla_database.py \
  212. bin/resources/ui_carla_edit.py \
  213. bin/resources/ui_carla_host.py \
  214. bin/resources/ui_carla_parameter.py \
  215. bin/resources/ui_carla_plugin_basic_fx.py \
  216. bin/resources/ui_carla_plugin_calf.py \
  217. bin/resources/ui_carla_plugin_default.py \
  218. bin/resources/ui_carla_plugin_zita.py \
  219. bin/resources/ui_carla_plugin_zynfx.py \
  220. bin/resources/ui_carla_refresh.py \
  221. bin/resources/ui_carla_settings.py \
  222. bin/resources/ui_carla_settings_driver.py \
  223. bin/resources/ui_inputdialog_value.py \
  224. source/carla_config.py \
  225. source/resources_rc.py
  226. RES: $(RES)
  227. source/carla_config.py:
  228. @echo "#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n" > $@
  229. ifeq ($(DEFAULT_QT),4)
  230. @echo "config_UseQt5 = False" >> $@
  231. else
  232. @echo "config_UseQt5 = True" >> $@
  233. endif
  234. source/resources_rc.py: resources/resources.qrc resources/*/*.png resources/*/*.svg
  235. $(PYRCC) $< -o $@
  236. bin/resources/%.py: source/%.py
  237. $(LINK) $(CURDIR)/source/$*.py bin/resources/
  238. # --------------------------------------------------------------
  239. # UI code
  240. UIs = \
  241. source/ui_carla_control.py \
  242. source/ui_carla_about.py \
  243. source/ui_carla_about_juce.py \
  244. source/ui_carla_database.py \
  245. source/ui_carla_edit.py \
  246. source/ui_carla_host.py \
  247. source/ui_carla_parameter.py \
  248. source/ui_carla_plugin_basic_fx.py \
  249. source/ui_carla_plugin_default.py \
  250. source/ui_carla_plugin_calf.py \
  251. source/ui_carla_plugin_zita.py \
  252. source/ui_carla_plugin_zynfx.py \
  253. source/ui_carla_refresh.py \
  254. source/ui_carla_settings.py \
  255. source/ui_carla_settings_driver.py \
  256. source/ui_inputdialog_value.py
  257. UI: $(UIs)
  258. source/ui_%.py: resources/ui/%.ui
  259. $(PYUIC) $< -o $@
  260. # --------------------------------------------------------------
  261. # Widgets
  262. WIDGETS = \
  263. source/canvaspreviewframe.py \
  264. source/digitalpeakmeter.py \
  265. source/ledbutton.py \
  266. source/paramspinbox.py \
  267. source/pixmapbutton.py \
  268. source/pixmapdial.py \
  269. source/pixmapkeyboard.py
  270. WIDGETS: $(WIDGETS)
  271. source/%.py: source/widgets/%.py
  272. $(LINK) widgets/$*.py $@
  273. # --------------------------------------------------------------
  274. clean:
  275. $(MAKE) clean -C source/backend
  276. $(MAKE) clean -C source/bridges-plugin
  277. $(MAKE) clean -C source/bridges-ui
  278. $(MAKE) clean -C source/discovery
  279. $(MAKE) clean -C source/modules
  280. $(MAKE) clean -C source/plugin
  281. rm -f $(RES)
  282. rm -f $(UIs)
  283. rm -f $(WIDGETS)
  284. rm -f *~ source/*~ source/*.pyc source/*_rc.py source/ui_*.py
  285. debug:
  286. $(MAKE) DEBUG=true
  287. doxygen:
  288. $(MAKE) doxygen -C source/backend
  289. # --------------------------------------------------------------
  290. install:
  291. # Create directories
  292. install -d $(DESTDIR)$(PREFIX)/bin/
  293. install -d $(DESTDIR)$(PREFIX)/lib/carla/
  294. install -d $(DESTDIR)$(PREFIX)/lib/carla/styles/
  295. install -d $(DESTDIR)$(PREFIX)/lib/lv2/carla-native.lv2/
  296. install -d $(DESTDIR)$(PREFIX)/lib/lv2/carla-native.lv2/styles/
  297. install -d $(DESTDIR)$(PREFIX)/lib/pkgconfig/
  298. install -d $(DESTDIR)$(PREFIX)/include/carla/
  299. install -d $(DESTDIR)$(PREFIX)/include/carla/includes/
  300. install -d $(DESTDIR)$(PREFIX)/share/applications/
  301. install -d $(DESTDIR)$(PREFIX)/share/carla/
  302. install -d $(DESTDIR)$(PREFIX)/share/carla/resources/
  303. install -d $(DESTDIR)$(PREFIX)/share/carla/resources/nekofilter/
  304. install -d $(DESTDIR)$(PREFIX)/share/carla/resources/zynaddsubfx/
  305. install -d $(DESTDIR)$(PREFIX)/share/icons/hicolor/16x16/apps/
  306. install -d $(DESTDIR)$(PREFIX)/share/icons/hicolor/48x48/apps/
  307. install -d $(DESTDIR)$(PREFIX)/share/icons/hicolor/128x128/apps/
  308. install -d $(DESTDIR)$(PREFIX)/share/icons/hicolor/256x256/apps/
  309. install -d $(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps/
  310. install -d $(DESTDIR)$(PREFIX)/share/mime/packages/
  311. # Install script files
  312. install -m 755 \
  313. data/carla \
  314. data/carla-database \
  315. data/carla-patchbay \
  316. data/carla-rack \
  317. data/carla-settings \
  318. $(DESTDIR)$(PREFIX)/bin/
  319. # data/carla-control \
  320. # data/carla-single \
  321. # Install desktop files
  322. install -m 644 data/*.desktop $(DESTDIR)$(PREFIX)/share/applications/
  323. # Install icons, 16x16
  324. install -m 644 resources/16x16/carla.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/16x16/apps/
  325. install -m 644 resources/16x16/carla-control.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/16x16/apps/
  326. # Install icons, 48x48
  327. install -m 644 resources/48x48/carla.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/48x48/apps/
  328. install -m 644 resources/48x48/carla-control.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/48x48/apps/
  329. # Install icons, 128x128
  330. install -m 644 resources/128x128/carla.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/128x128/apps/
  331. install -m 644 resources/128x128/carla-control.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/128x128/apps/
  332. # Install icons, 256x256
  333. install -m 644 resources/256x256/carla.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/256x256/apps/
  334. install -m 644 resources/256x256/carla-control.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/256x256/apps/
  335. # Install icons, scalable
  336. install -m 644 resources/scalable/carla.svg $(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps/
  337. install -m 644 resources/scalable/carla-control.svg $(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps/
  338. # Install mime package
  339. install -m 644 data/carla.xml $(DESTDIR)$(PREFIX)/share/mime/packages/
  340. # Install pkg-config file
  341. install -m 644 data/carla-standalone.pc $(DESTDIR)$(PREFIX)/lib/pkgconfig/
  342. # Install backend
  343. install -m 644 \
  344. bin/libcarla_standalone2.* \
  345. $(DESTDIR)$(PREFIX)/lib/carla/
  346. # Install lv2 plugin
  347. install -m 644 \
  348. bin/carla-native.lv2/carla-native.* \
  349. bin/carla-native.lv2/*.ttl \
  350. $(DESTDIR)$(PREFIX)/lib/lv2/carla-native.lv2/
  351. # Install binaries (backend)
  352. install -m 755 \
  353. bin/*bridge-* \
  354. bin/carla-discovery-* \
  355. $(DESTDIR)$(PREFIX)/lib/carla/
  356. # Install binaries (lv2 plugin)
  357. install -m 755 \
  358. bin/*bridge-* \
  359. bin/carla-discovery-* \
  360. $(DESTDIR)$(PREFIX)/lib/lv2/carla-native.lv2/
  361. # Install theme
  362. install -m 644 \
  363. bin/styles/* \
  364. $(DESTDIR)$(PREFIX)/lib/carla/styles/
  365. # Install theme (lv2 plugin)
  366. install -m 644 \
  367. bin/styles/* \
  368. $(DESTDIR)$(PREFIX)/lib/lv2/carla-native.lv2/styles/
  369. # Install python code
  370. install -m 644 \
  371. source/carla \
  372. source/carla-patchbay \
  373. source/carla-rack \
  374. source/*.py \
  375. $(DESTDIR)$(PREFIX)/share/carla/
  376. # Install headers
  377. install -m 644 \
  378. source/backend/CarlaBackend.h \
  379. source/backend/CarlaHost.h \
  380. source/backend/CarlaEngine.hpp \
  381. source/backend/CarlaPlugin.hpp \
  382. source/modules/CarlaNative.h \
  383. $(DESTDIR)$(PREFIX)/include/carla/
  384. install -m 644 \
  385. source/includes/CarlaDefines.h \
  386. $(DESTDIR)$(PREFIX)/include/carla/includes/
  387. # Install resources (main)
  388. install -m 755 \
  389. bin/resources/carla-plugin \
  390. bin/resources/carla-plugin-patchbay \
  391. bin/resources/*-ui \
  392. $(DESTDIR)$(PREFIX)/share/carla/resources/
  393. install -m 644 \
  394. bin/resources/nekofilter/*.png \
  395. $(DESTDIR)$(PREFIX)/share/carla/resources/nekofilter/
  396. install -m 644 \
  397. bin/resources/zynaddsubfx/*.png \
  398. $(DESTDIR)$(PREFIX)/share/carla/resources/zynaddsubfx/
  399. # Install resources (re-use python files)
  400. $(LINK) $(PREFIX)/share/carla/carla_app.py $(DESTDIR)$(PREFIX)/share/carla/resources/
  401. $(LINK) $(PREFIX)/share/carla/carla_backend.py $(DESTDIR)$(PREFIX)/share/carla/resources/
  402. $(LINK) $(PREFIX)/share/carla/carla_config.py $(DESTDIR)$(PREFIX)/share/carla/resources/
  403. $(LINK) $(PREFIX)/share/carla/carla_database.py $(DESTDIR)$(PREFIX)/share/carla/resources/
  404. $(LINK) $(PREFIX)/share/carla/carla_host.py $(DESTDIR)$(PREFIX)/share/carla/resources/
  405. $(LINK) $(PREFIX)/share/carla/carla_patchbay.py $(DESTDIR)$(PREFIX)/share/carla/resources/
  406. $(LINK) $(PREFIX)/share/carla/carla_rack.py $(DESTDIR)$(PREFIX)/share/carla/resources/
  407. $(LINK) $(PREFIX)/share/carla/carla_settings.py $(DESTDIR)$(PREFIX)/share/carla/resources/
  408. $(LINK) $(PREFIX)/share/carla/carla_skin.py $(DESTDIR)$(PREFIX)/share/carla/resources/
  409. $(LINK) $(PREFIX)/share/carla/carla_shared.py $(DESTDIR)$(PREFIX)/share/carla/resources/
  410. $(LINK) $(PREFIX)/share/carla/carla_utils.py $(DESTDIR)$(PREFIX)/share/carla/resources/
  411. $(LINK) $(PREFIX)/share/carla/carla_widgets.py $(DESTDIR)$(PREFIX)/share/carla/resources/
  412. $(LINK) $(PREFIX)/share/carla/canvaspreviewframe.py $(DESTDIR)$(PREFIX)/share/carla/resources/
  413. $(LINK) $(PREFIX)/share/carla/digitalpeakmeter.py $(DESTDIR)$(PREFIX)/share/carla/resources/
  414. $(LINK) $(PREFIX)/share/carla/externalui.py $(DESTDIR)$(PREFIX)/share/carla/resources/
  415. $(LINK) $(PREFIX)/share/carla/ledbutton.py $(DESTDIR)$(PREFIX)/share/carla/resources/
  416. $(LINK) $(PREFIX)/share/carla/paramspinbox.py $(DESTDIR)$(PREFIX)/share/carla/resources/
  417. $(LINK) $(PREFIX)/share/carla/patchcanvas.py $(DESTDIR)$(PREFIX)/share/carla/resources/
  418. $(LINK) $(PREFIX)/share/carla/patchcanvas_theme.py $(DESTDIR)$(PREFIX)/share/carla/resources/
  419. $(LINK) $(PREFIX)/share/carla/pixmapbutton.py $(DESTDIR)$(PREFIX)/share/carla/resources/
  420. $(LINK) $(PREFIX)/share/carla/pixmapdial.py $(DESTDIR)$(PREFIX)/share/carla/resources/
  421. $(LINK) $(PREFIX)/share/carla/pixmapkeyboard.py $(DESTDIR)$(PREFIX)/share/carla/resources/
  422. $(LINK) $(PREFIX)/share/carla/resources_rc.py $(DESTDIR)$(PREFIX)/share/carla/resources/
  423. $(LINK) $(PREFIX)/share/carla/ui_carla_about.py $(DESTDIR)$(PREFIX)/share/carla/resources/
  424. $(LINK) $(PREFIX)/share/carla/ui_carla_about_juce.py $(DESTDIR)$(PREFIX)/share/carla/resources/
  425. $(LINK) $(PREFIX)/share/carla/ui_carla_database.py $(DESTDIR)$(PREFIX)/share/carla/resources/
  426. $(LINK) $(PREFIX)/share/carla/ui_carla_edit.py $(DESTDIR)$(PREFIX)/share/carla/resources/
  427. $(LINK) $(PREFIX)/share/carla/ui_carla_host.py $(DESTDIR)$(PREFIX)/share/carla/resources/
  428. $(LINK) $(PREFIX)/share/carla/ui_carla_parameter.py $(DESTDIR)$(PREFIX)/share/carla/resources/
  429. $(LINK) $(PREFIX)/share/carla/ui_carla_plugin_basic_fx.py $(DESTDIR)$(PREFIX)/share/carla/resources/
  430. $(LINK) $(PREFIX)/share/carla/ui_carla_plugin_calf.py $(DESTDIR)$(PREFIX)/share/carla/resources/
  431. $(LINK) $(PREFIX)/share/carla/ui_carla_plugin_default.py $(DESTDIR)$(PREFIX)/share/carla/resources/
  432. $(LINK) $(PREFIX)/share/carla/ui_carla_plugin_zita.py $(DESTDIR)$(PREFIX)/share/carla/resources/
  433. $(LINK) $(PREFIX)/share/carla/ui_carla_plugin_zynfx.py $(DESTDIR)$(PREFIX)/share/carla/resources/
  434. $(LINK) $(PREFIX)/share/carla/ui_carla_refresh.py $(DESTDIR)$(PREFIX)/share/carla/resources/
  435. $(LINK) $(PREFIX)/share/carla/ui_carla_settings.py $(DESTDIR)$(PREFIX)/share/carla/resources/
  436. $(LINK) $(PREFIX)/share/carla/ui_carla_settings_driver.py $(DESTDIR)$(PREFIX)/share/carla/resources/
  437. $(LINK) $(PREFIX)/share/carla/ui_inputdialog_value.py $(DESTDIR)$(PREFIX)/share/carla/resources/
  438. # Link resources for lv2 plugin
  439. rm -rf $(DESTDIR)$(PREFIX)/lib/lv2/carla-native.lv2/resources
  440. $(LINK) $(PREFIX)/share/carla/resources/ $(DESTDIR)$(PREFIX)/lib/lv2/carla-native.lv2/
  441. # Adjust PREFIX value in script files
  442. sed -i "s?X-PREFIX-X?$(PREFIX)?" \
  443. $(DESTDIR)$(PREFIX)/bin/carla \
  444. $(DESTDIR)$(PREFIX)/bin/carla-database \
  445. $(DESTDIR)$(PREFIX)/bin/carla-patchbay \
  446. $(DESTDIR)$(PREFIX)/bin/carla-rack \
  447. $(DESTDIR)$(PREFIX)/bin/carla-settings \
  448. $(DESTDIR)$(PREFIX)/lib/pkgconfig/carla-standalone.pc
  449. # $(DESTDIR)$(PREFIX)/bin/carla-single \
  450. # $(DESTDIR)$(PREFIX)/bin/carla-control \
  451. # --------------------------------------------------------------
  452. uninstall:
  453. rm -f $(DESTDIR)$(PREFIX)/bin/carla*
  454. rm -f $(DESTDIR)$(PREFIX)/lib/pkgconfig/carla-standalone.pc
  455. rm -f $(DESTDIR)$(PREFIX)/share/applications/carla.desktop
  456. rm -f $(DESTDIR)$(PREFIX)/share/applications/carla-control.desktop
  457. rm -f $(DESTDIR)$(PREFIX)/share/icons/hicolor/*/apps/carla.png
  458. rm -f $(DESTDIR)$(PREFIX)/share/icons/hicolor/*/apps/carla-control.png
  459. rm -f $(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps/carla.svg
  460. rm -f $(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps/carla-control.svg
  461. rm -f $(DESTDIR)$(PREFIX)/share/mime/packages/carla.xml
  462. rm -rf $(DESTDIR)$(PREFIX)/include/carla/
  463. rm -rf $(DESTDIR)$(PREFIX)/lib/carla/
  464. rm -rf $(DESTDIR)$(PREFIX)/lib/lv2/carla-native.lv2/
  465. rm -rf $(DESTDIR)$(PREFIX)/share/carla/
  466. # --------------------------------------------------------------
  467. USE_COLORS=true
  468. USE_VST3=false
  469. ifeq ($(HAIKU),true)
  470. USE_COLORS=false
  471. endif
  472. ifeq ($(USE_COLORS),true)
  473. ANS_NO=\033[31m NO \033[0m
  474. ANS_YES=\033[32m YES \033[0m
  475. mS=\033[33m[
  476. mZ=\033[30;1m[
  477. mE=]\033[0m
  478. tS=\033[36m
  479. tE=\033[0m
  480. else
  481. ANS_NO=" NO "
  482. ANS_YES=" YES "
  483. endif
  484. features:
  485. @echo "$(tS)---> Engine drivers $(tE)"
  486. @echo "JACK: $(ANS_YES)"
  487. ifeq ($(LINUX),true)
  488. ifeq ($(HAVE_ALSA),true)
  489. @echo "ALSA: $(ANS_YES)"
  490. else
  491. @echo "ALSA: $(ANS_NO) $(mS)Missing ALSA$(mE)"
  492. endif
  493. ifeq ($(HAVE_PULSEAUDIO),true)
  494. @echo "PulseAudio: $(ANS_YES)"
  495. else
  496. @echo "PulseAudio: $(ANS_NO) $(mS)Missing PulseAudio$(mE)"
  497. endif
  498. else
  499. @echo "ALSA: $(ANS_NO) $(mZ)Linux only$(mE)"
  500. @echo "PulseAudio: $(ANS_NO) $(mZ)Linux only$(mE)"
  501. endif
  502. ifeq ($(MACOS),true)
  503. @echo "CoreAudio: $(ANS_YES)"
  504. else
  505. @echo "CoreAudio: $(ANS_NO) $(mZ)MacOS only$(mE)"
  506. endif
  507. ifeq ($(WIN32),true)
  508. @echo "ASIO: $(ANS_YES)"
  509. @echo "DirectSound:$(ANS_YES)"
  510. else
  511. @echo "ASIO: $(ANS_NO) $(mZ)Windows only$(mE)"
  512. @echo "DirectSound:$(ANS_NO) $(mZ)Windows only$(mE)"
  513. endif
  514. @echo ""
  515. @echo "$(tS)---> Plugin formats: $(tE)"
  516. @echo "Internal:$(ANS_YES)"
  517. @echo "LADSPA: $(ANS_YES)"
  518. @echo "DSSI: $(ANS_YES)"
  519. @echo "LV2: $(ANS_YES)"
  520. @echo "VST: $(ANS_YES)"
  521. ifeq ($(MACOS_OR_WIN32),true)
  522. @echo "VST3: $(ANS_YES)"
  523. else
  524. @echo "VST3: $(ANS_NO) $(mZ)Windows and MacOS only$(mE)"
  525. endif
  526. ifeq ($(MACOS),true)
  527. @echo "AU: $(ANS_YES)"
  528. else
  529. @echo "AU: $(ANS_NO) $(mZ)MacOS only$(mE)"
  530. endif
  531. @echo ""
  532. @echo "$(tS)---> LV2 UI toolkit support: $(tE)"
  533. # @echo "External:$(ANS_YES) (direct+bridge)"
  534. ifeq ($(HAVE_GTK2),true)
  535. @echo "Gtk2: $(ANS_YES) (bridge)"
  536. else
  537. @echo "Gtk2: $(ANS_NO) $(mS)Gtk2 missing$(mE)"
  538. endif
  539. ifeq ($(HAVE_GTK3),true)
  540. @echo "Gtk3: $(ANS_YES) (bridge)"
  541. else
  542. @echo "Gtk3: $(ANS_NO) $(mS)Gtk3 missing$(mE)"
  543. endif
  544. ifeq ($(HAVE_QT4),true)
  545. @echo "Qt4: $(ANS_YES) (bridge)"
  546. else
  547. @echo "Qt4: $(ANS_NO) $(mS)Qt4 missing$(mE)"
  548. endif
  549. ifeq ($(HAVE_QT5),true)
  550. @echo "Qt5: $(ANS_YES) (bridge)"
  551. else
  552. @echo "Qt5: $(ANS_NO) $(mS)Qt5 missing$(mE)"
  553. endif
  554. ifeq ($(HAVE_X11),true)
  555. @echo "X11: $(ANS_YES) (direct+bridge)"
  556. else
  557. @echo "X11: $(ANS_NO) $(mS)X11 missing$(mE)"
  558. endif
  559. # ifeq ($(MACOS),true)
  560. # @echo "Cocoa: $(ANS_YES) (direct+bridge)"
  561. # else
  562. # @echo "Cocoa: $(ANS_NO) $(mZ)MacOS only$(mE)"
  563. # endif
  564. # ifeq ($(WIN32),true)
  565. # @echo "Windows: $(ANS_YES) (direct+bridge)"
  566. # else
  567. # @echo "Windows: $(ANS_NO) $(mZ)Windows only$(mE)"
  568. # endif
  569. @echo ""
  570. @echo "$(tS)---> File formats: $(tE)"
  571. ifeq ($(HAVE_LINUXSAMPLER),true)
  572. @echo "GIG:$(ANS_YES)"
  573. else
  574. @echo "GIG:$(ANS_NO) $(mS)LinuxSampler missing or too old$(mE)"
  575. endif
  576. ifeq ($(HAVE_FLUIDSYNTH),true)
  577. @echo "SF2:$(ANS_YES)"
  578. else
  579. @echo "SF2:$(ANS_NO) $(mS)FluidSynth missing$(mE)"
  580. endif
  581. ifeq ($(HAVE_LINUXSAMPLER),true)
  582. @echo "SFZ:$(ANS_YES)"
  583. else
  584. @echo "SFZ:$(ANS_NO) $(mS)LinuxSampler missing or too old$(mE)"
  585. endif
  586. @echo ""
  587. @echo "$(tS)---> Internal plugins: $(tE)"
  588. ifneq ($(WIN32),true)
  589. @echo "Carla-Rack: $(ANS_YES)"
  590. else
  591. @echo "Carla-Rack: $(ANS_NO) $(mS)Not available for Windows$(mE)"
  592. endif
  593. ifeq ($(HAVE_ZYN_DEPS),true)
  594. ifeq ($(HAVE_ZYN_UI_DEPS),true)
  595. @echo "ZynAddSubFX:$(ANS_YES) (with UI)"
  596. else
  597. @echo "ZynAddSubFX:$(ANS_YES) (without UI) $(mS)NTK missing$(mE)"
  598. endif
  599. else
  600. @echo "ZynAddSubFX:$(ANS_NO) $(mS)fftw3, mxml or zlib missing$(mE)"
  601. endif
  602. # --------------------------------------------------------------
  603. .FORCE:
  604. .PHONY: .FORCE
  605. # --------------------------------------------------------------