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.

784 lines
25KB

  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: plugin_build bin/carla.lv2/manifest.ttl
  98. plugin_build: libs .FORCE
  99. $(MAKE) -C source/plugin
  100. bin/carla.lv2/manifest.ttl: plugin_build bridges-plugin bridges-ui discovery
  101. cd bin && ./carla-lv2-export$(APP_EXT); cd ..
  102. cd bin/carla.lv2 && $(LINK) ../*bridge-* ../carla-discovery-* .; cd ..
  103. # --------------------------------------------------------------
  104. ifeq ($(HAVE_QT),true)
  105. theme: bin/styles/carlastyle$(LIB_EXT)
  106. bin/styles/carlastyle$(LIB_EXT): .FORCE
  107. $(MAKE) -C source/modules/theme
  108. else
  109. theme:
  110. endif
  111. # --------------------------------------------------------------
  112. # Binaries (posix32)
  113. LIBS_POSIX32 += source/modules/jackbridge.posix32.a
  114. LIBS_POSIX32 += source/modules/juce_audio_basics.posix32.a
  115. LIBS_POSIX32 += source/modules/juce_core.posix32.a
  116. LIBS_POSIX32 += source/modules/lilv.posix32.a
  117. LIBS_POSIX32 += source/modules/rtmempool.posix32.a
  118. ifeq ($(MACOS),true)
  119. LIBS_POSIX32 += source/modules/juce_audio_processors.posix32.a
  120. LIBS_POSIX32 += source/modules/juce_data_structures.posix32.a
  121. LIBS_POSIX32 += source/modules/juce_events.posix32.a
  122. LIBS_POSIX32 += source/modules/juce_graphics.posix32.a
  123. LIBS_POSIX32 += source/modules/juce_gui_basics.posix32.a
  124. LIBS_POSIX32 += source/modules/juce_gui_extra.posix32.a
  125. endif
  126. posix32: $(LIBS_POSIX32)
  127. $(MAKE) -C source/bridges-plugin posix32
  128. $(MAKE) -C source/discovery posix32
  129. # --------------------------------------------------------------
  130. # Binaries (posix64)
  131. LIBS_POSIX64 += source/modules/jackbridge.posix64.a
  132. LIBS_POSIX64 += source/modules/juce_audio_basics.posix64.a
  133. LIBS_POSIX64 += source/modules/juce_core.posix64.a
  134. LIBS_POSIX64 += source/modules/lilv.posix64.a
  135. LIBS_POSIX64 += source/modules/rtmempool.posix64.a
  136. ifeq ($(MACOS),true)
  137. LIBS_POSIX64 += source/modules/juce_audio_processors.posix64.a
  138. LIBS_POSIX64 += source/modules/juce_data_structures.posix64.a
  139. LIBS_POSIX64 += source/modules/juce_events.posix64.a
  140. LIBS_POSIX64 += source/modules/juce_graphics.posix64.a
  141. LIBS_POSIX64 += source/modules/juce_gui_basics.posix64.a
  142. LIBS_POSIX64 += source/modules/juce_gui_extra.posix64.a
  143. endif
  144. posix64: $(LIBS_POSIX64)
  145. $(MAKE) -C source/bridges-plugin posix64
  146. $(MAKE) -C source/discovery posix64
  147. # --------------------------------------------------------------
  148. # Binaries (win32)
  149. LIBS_WIN32 += source/modules/jackbridge.win32e.a
  150. LIBS_WIN32 += source/modules/juce_audio_basics.win32.a
  151. LIBS_WIN32 += source/modules/juce_audio_processors.win32.a
  152. LIBS_WIN32 += source/modules/juce_core.win32.a
  153. LIBS_WIN32 += source/modules/juce_data_structures.win32.a
  154. LIBS_WIN32 += source/modules/juce_events.win32.a
  155. LIBS_WIN32 += source/modules/juce_graphics.win32.a
  156. LIBS_WIN32 += source/modules/juce_gui_basics.win32.a
  157. LIBS_WIN32 += source/modules/lilv.win32.a
  158. LIBS_WIN32 += source/modules/rtmempool.win32.a
  159. win32: $(LIBS_WIN32)
  160. $(MAKE) -C source/bridges-plugin win32
  161. $(MAKE) -C source/discovery win32
  162. # --------------------------------------------------------------
  163. # Binaries (win64)
  164. LIBS_WIN64 += source/modules/jackbridge.win64e.a
  165. LIBS_WIN64 += source/modules/juce_audio_basics.win64.a
  166. LIBS_WIN64 += source/modules/juce_audio_processors.win64.a
  167. LIBS_WIN64 += source/modules/juce_core.win64.a
  168. LIBS_WIN64 += source/modules/juce_data_structures.win64.a
  169. LIBS_WIN64 += source/modules/juce_events.win64.a
  170. LIBS_WIN64 += source/modules/juce_graphics.win64.a
  171. LIBS_WIN64 += source/modules/juce_gui_basics.win64.a
  172. LIBS_WIN64 += source/modules/lilv.win64.a
  173. LIBS_WIN64 += source/modules/rtmempool.win64.a
  174. win64: $(LIBS_WIN64)
  175. $(MAKE) -C source/bridges-plugin win64
  176. $(MAKE) -C source/discovery win64
  177. # --------------------------------------------------------------
  178. # Binaries (wine)
  179. wine32:
  180. $(MAKE) -C source/modules/jackbridge wine32
  181. cp -f source/modules/jackbridge-wine32.dll.so bin/jackbridge-wine32.dll
  182. wine64:
  183. $(MAKE) -C source/modules/jackbridge wine64
  184. cp -f source/modules/jackbridge-wine64.dll.so bin/jackbridge-wine64.dll
  185. # --------------------------------------------------------------
  186. # Resources
  187. RES = \
  188. bin/resources/carla_app.py \
  189. bin/resources/carla_backend.py \
  190. bin/resources/carla_config.py \
  191. bin/resources/carla_database.py \
  192. bin/resources/carla_host.py \
  193. bin/resources/carla_patchbay.py \
  194. bin/resources/carla_rack.py \
  195. bin/resources/carla_settings.py \
  196. bin/resources/carla_skin.py \
  197. bin/resources/carla_shared.py \
  198. bin/resources/carla_utils.py \
  199. bin/resources/carla_widgets.py \
  200. bin/resources/canvaspreviewframe.py \
  201. bin/resources/digitalpeakmeter.py \
  202. bin/resources/externalui.py \
  203. bin/resources/ledbutton.py \
  204. bin/resources/paramspinbox.py \
  205. bin/resources/patchcanvas.py \
  206. bin/resources/patchcanvas_theme.py \
  207. bin/resources/pixmapbutton.py \
  208. bin/resources/pixmapdial.py \
  209. bin/resources/pixmapkeyboard.py \
  210. bin/resources/resources_rc.py \
  211. bin/resources/ui_carla_about.py \
  212. bin/resources/ui_carla_about_juce.py \
  213. bin/resources/ui_carla_database.py \
  214. bin/resources/ui_carla_edit.py \
  215. bin/resources/ui_carla_host.py \
  216. bin/resources/ui_carla_parameter.py \
  217. bin/resources/ui_carla_plugin_basic_fx.py \
  218. bin/resources/ui_carla_plugin_calf.py \
  219. bin/resources/ui_carla_plugin_default.py \
  220. bin/resources/ui_carla_plugin_sf2.py \
  221. bin/resources/ui_carla_plugin_zita.py \
  222. bin/resources/ui_carla_plugin_zynfx.py \
  223. bin/resources/ui_carla_refresh.py \
  224. bin/resources/ui_carla_settings.py \
  225. bin/resources/ui_carla_settings_driver.py \
  226. bin/resources/ui_inputdialog_value.py \
  227. source/carla_config.py \
  228. source/resources_rc.py
  229. RES: $(RES)
  230. source/carla_config.py:
  231. @echo "#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n" > $@
  232. ifeq ($(DEFAULT_QT),4)
  233. @echo "config_UseQt5 = False" >> $@
  234. else
  235. @echo "config_UseQt5 = True" >> $@
  236. endif
  237. source/resources_rc.py: resources/resources.qrc resources/*/*.png resources/*/*.svg
  238. $(PYRCC) $< -o $@
  239. bin/resources/%.py: source/%.py
  240. $(LINK) $(CURDIR)/source/$*.py bin/resources/
  241. # --------------------------------------------------------------
  242. # UI code
  243. UIs = \
  244. source/ui_carla_control.py \
  245. source/ui_carla_about.py \
  246. source/ui_carla_about_juce.py \
  247. source/ui_carla_database.py \
  248. source/ui_carla_edit.py \
  249. source/ui_carla_host.py \
  250. source/ui_carla_parameter.py \
  251. source/ui_carla_plugin_basic_fx.py \
  252. source/ui_carla_plugin_calf.py \
  253. source/ui_carla_plugin_default.py \
  254. source/ui_carla_plugin_sf2.py \
  255. source/ui_carla_plugin_zita.py \
  256. source/ui_carla_plugin_zynfx.py \
  257. source/ui_carla_refresh.py \
  258. source/ui_carla_settings.py \
  259. source/ui_carla_settings_driver.py \
  260. source/ui_inputdialog_value.py
  261. UI: $(UIs)
  262. source/ui_%.py: resources/ui/%.ui
  263. $(PYUIC) $< -o $@
  264. # --------------------------------------------------------------
  265. # Widgets
  266. WIDGETS = \
  267. source/canvaspreviewframe.py \
  268. source/digitalpeakmeter.py \
  269. source/ledbutton.py \
  270. source/paramspinbox.py \
  271. source/pixmapbutton.py \
  272. source/pixmapdial.py \
  273. source/pixmapkeyboard.py
  274. WIDGETS: $(WIDGETS)
  275. source/%.py: source/widgets/%.py
  276. $(LINK) widgets/$*.py $@
  277. # --------------------------------------------------------------
  278. clean:
  279. $(MAKE) clean -C source/backend
  280. $(MAKE) clean -C source/bridges-plugin
  281. $(MAKE) clean -C source/bridges-ui
  282. $(MAKE) clean -C source/discovery
  283. $(MAKE) clean -C source/modules
  284. $(MAKE) clean -C source/plugin
  285. rm -f $(RES)
  286. rm -f $(UIs)
  287. rm -f $(WIDGETS)
  288. rm -f *~ source/*~ source/*.pyc source/*_rc.py source/ui_*.py
  289. debug:
  290. $(MAKE) DEBUG=true
  291. doxygen:
  292. $(MAKE) doxygen -C source/backend
  293. # --------------------------------------------------------------
  294. install:
  295. # Create directories
  296. install -d $(DESTDIR)$(PREFIX)/bin/
  297. install -d $(DESTDIR)$(PREFIX)/lib/carla/
  298. install -d $(DESTDIR)$(PREFIX)/lib/carla/styles/
  299. install -d $(DESTDIR)$(PREFIX)/lib/lv2/carla.lv2/
  300. install -d $(DESTDIR)$(PREFIX)/lib/vst/
  301. install -d $(DESTDIR)$(PREFIX)/lib/pkgconfig/
  302. install -d $(DESTDIR)$(PREFIX)/include/carla/
  303. install -d $(DESTDIR)$(PREFIX)/include/carla/includes/
  304. install -d $(DESTDIR)$(PREFIX)/share/applications/
  305. install -d $(DESTDIR)$(PREFIX)/share/carla/
  306. install -d $(DESTDIR)$(PREFIX)/share/carla/resources/
  307. install -d $(DESTDIR)$(PREFIX)/share/carla/resources/nekofilter/
  308. install -d $(DESTDIR)$(PREFIX)/share/carla/resources/zynaddsubfx/
  309. install -d $(DESTDIR)$(PREFIX)/share/icons/hicolor/16x16/apps/
  310. install -d $(DESTDIR)$(PREFIX)/share/icons/hicolor/48x48/apps/
  311. install -d $(DESTDIR)$(PREFIX)/share/icons/hicolor/128x128/apps/
  312. install -d $(DESTDIR)$(PREFIX)/share/icons/hicolor/256x256/apps/
  313. install -d $(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps/
  314. install -d $(DESTDIR)$(PREFIX)/share/mime/packages/
  315. # Install script files
  316. install -m 755 \
  317. data/carla \
  318. data/carla-database \
  319. data/carla-patchbay \
  320. data/carla-rack \
  321. data/carla-settings \
  322. $(DESTDIR)$(PREFIX)/bin/
  323. # data/carla-control \
  324. # data/carla-single \
  325. # Install desktop files
  326. install -m 644 data/*.desktop $(DESTDIR)$(PREFIX)/share/applications/
  327. # Install icons, 16x16
  328. install -m 644 resources/16x16/carla.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/16x16/apps/
  329. install -m 644 resources/16x16/carla-control.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/16x16/apps/
  330. # Install icons, 48x48
  331. install -m 644 resources/48x48/carla.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/48x48/apps/
  332. install -m 644 resources/48x48/carla-control.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/48x48/apps/
  333. # Install icons, 128x128
  334. install -m 644 resources/128x128/carla.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/128x128/apps/
  335. install -m 644 resources/128x128/carla-control.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/128x128/apps/
  336. # Install icons, 256x256
  337. install -m 644 resources/256x256/carla.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/256x256/apps/
  338. install -m 644 resources/256x256/carla-control.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/256x256/apps/
  339. # Install icons, scalable
  340. install -m 644 resources/scalable/carla.svg $(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps/
  341. install -m 644 resources/scalable/carla-control.svg $(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps/
  342. # Install mime package
  343. install -m 644 data/carla.xml $(DESTDIR)$(PREFIX)/share/mime/packages/
  344. # Install pkg-config file
  345. install -m 644 data/carla-standalone.pc $(DESTDIR)$(PREFIX)/lib/pkgconfig/
  346. # Install backend
  347. install -m 644 \
  348. bin/libcarla_standalone2.* \
  349. $(DESTDIR)$(PREFIX)/lib/carla/
  350. # Install lv2 plugin
  351. install -m 644 \
  352. bin/carla.lv2/carla.* \
  353. bin/carla.lv2/*.ttl \
  354. $(DESTDIR)$(PREFIX)/lib/lv2/carla.lv2/
  355. # Install vst plugin
  356. install -m 644 \
  357. bin/CarlaRack*.* \
  358. bin/CarlaPatchbay*.* \
  359. $(DESTDIR)$(PREFIX)/lib/vst/
  360. # Install binaries (backend)
  361. install -m 755 \
  362. bin/*bridge-* \
  363. bin/carla-discovery-* \
  364. $(DESTDIR)$(PREFIX)/lib/carla/
  365. # Install theme
  366. install -m 644 \
  367. bin/styles/* \
  368. $(DESTDIR)$(PREFIX)/lib/carla/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_sf2.py $(DESTDIR)$(PREFIX)/share/carla/resources/
  433. $(LINK) $(PREFIX)/share/carla/ui_carla_plugin_zita.py $(DESTDIR)$(PREFIX)/share/carla/resources/
  434. $(LINK) $(PREFIX)/share/carla/ui_carla_plugin_zynfx.py $(DESTDIR)$(PREFIX)/share/carla/resources/
  435. $(LINK) $(PREFIX)/share/carla/ui_carla_refresh.py $(DESTDIR)$(PREFIX)/share/carla/resources/
  436. $(LINK) $(PREFIX)/share/carla/ui_carla_settings.py $(DESTDIR)$(PREFIX)/share/carla/resources/
  437. $(LINK) $(PREFIX)/share/carla/ui_carla_settings_driver.py $(DESTDIR)$(PREFIX)/share/carla/resources/
  438. $(LINK) $(PREFIX)/share/carla/ui_inputdialog_value.py $(DESTDIR)$(PREFIX)/share/carla/resources/
  439. # Link binaries for lv2 plugin
  440. @for i in $(shell find $(DESTDIR)$(PREFIX)/lib/carla/ -maxdepth 1 -type f -exec basename {} ';'); do \
  441. $(LINK) $(PREFIX)/lib/carla/$$i $(DESTDIR)$(PREFIX)/lib/lv2/carla.lv2/; \
  442. done
  443. rm -f $(DESTDIR)$(PREFIX)/lib/lv2/carla.lv2/libcarla_*.*
  444. # Link styles for lv2 plugin
  445. $(LINK) $(PREFIX)/lib/carla/styles/ $(DESTDIR)$(PREFIX)/lib/lv2/carla.lv2/
  446. # Link resources for lv2 plugin
  447. rm -rf $(DESTDIR)$(PREFIX)/lib/lv2/carla.lv2/resources
  448. $(LINK) $(PREFIX)/share/carla/resources/ $(DESTDIR)$(PREFIX)/lib/lv2/carla.lv2/
  449. # Link resources for vst plugin
  450. rm -rf $(DESTDIR)$(PREFIX)/lib/vst/carla-resources
  451. $(LINK) $(PREFIX)/lib/lv2/carla.lv2/resources $(DESTDIR)$(PREFIX)/lib/vst/carla-resources
  452. # Adjust PREFIX value in script files
  453. sed -i "s?X-PREFIX-X?$(PREFIX)?" \
  454. $(DESTDIR)$(PREFIX)/bin/carla \
  455. $(DESTDIR)$(PREFIX)/bin/carla-database \
  456. $(DESTDIR)$(PREFIX)/bin/carla-patchbay \
  457. $(DESTDIR)$(PREFIX)/bin/carla-rack \
  458. $(DESTDIR)$(PREFIX)/bin/carla-settings \
  459. $(DESTDIR)$(PREFIX)/lib/pkgconfig/carla-standalone.pc
  460. # $(DESTDIR)$(PREFIX)/bin/carla-single \
  461. # $(DESTDIR)$(PREFIX)/bin/carla-control \
  462. # --------------------------------------------------------------
  463. uninstall:
  464. rm -f $(DESTDIR)$(PREFIX)/bin/carla*
  465. rm -f $(DESTDIR)$(PREFIX)/lib/vst/CarlaRack*.*
  466. rm -f $(DESTDIR)$(PREFIX)/lib/vst/CarlaPatchbay*.*
  467. rm -f $(DESTDIR)$(PREFIX)/lib/pkgconfig/carla-standalone.pc
  468. rm -f $(DESTDIR)$(PREFIX)/share/applications/carla.desktop
  469. rm -f $(DESTDIR)$(PREFIX)/share/applications/carla-control.desktop
  470. rm -f $(DESTDIR)$(PREFIX)/share/icons/hicolor/*/apps/carla.png
  471. rm -f $(DESTDIR)$(PREFIX)/share/icons/hicolor/*/apps/carla-control.png
  472. rm -f $(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps/carla.svg
  473. rm -f $(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps/carla-control.svg
  474. rm -f $(DESTDIR)$(PREFIX)/share/mime/packages/carla.xml
  475. rm -rf $(DESTDIR)$(PREFIX)/include/carla/
  476. rm -rf $(DESTDIR)$(PREFIX)/lib/carla/
  477. rm -rf $(DESTDIR)$(PREFIX)/lib/lv2/carla.lv2/
  478. rm -rf $(DESTDIR)$(PREFIX)/lib/vst/carla-resources
  479. rm -rf $(DESTDIR)$(PREFIX)/share/carla/
  480. # --------------------------------------------------------------
  481. USE_COLORS=true
  482. ifeq ($(HAIKU),true)
  483. USE_COLORS=false
  484. endif
  485. ifeq ($(USE_COLORS),true)
  486. ANS_NO=\033[31m NO \033[0m
  487. ANS_YES=\033[32m YES \033[0m
  488. mS=\033[33m[
  489. mZ=\033[30;1m[
  490. mE=]\033[0m
  491. tS=\033[36m
  492. tE=\033[0m
  493. else
  494. ANS_NO=" NO "
  495. ANS_YES=" YES "
  496. endif
  497. features:
  498. @echo "$(tS)---> Main features $(tE)"
  499. ifeq ($(HAVE_PYQT),true)
  500. @echo "Front-End: $(ANS_YES)"
  501. ifneq ($(WIN32),true)
  502. @echo "LV2 plugin: $(ANS_YES)"
  503. else
  504. @echo "LV2 plugin: $(ANS_NO) $(mZ)Not available for Windows$(mE)"
  505. endif
  506. ifeq ($(LINUX),true)
  507. ifeq ($(DEFAULT_QT),4)
  508. ifeq ($(HAVE_X11),true)
  509. @echo "VST plugin: $(ANS_YES)"
  510. else # HAVE_X11
  511. @echo "VST plugin: $(ANS_NO) $(mS)X11 missing$(mE)"
  512. endif
  513. else # DEFAULT_QT
  514. @echo "VST plugin: $(ANS_NO) $(mZ)Qt4 only$(mE)"
  515. endif
  516. else # LINUX
  517. @echo "VST plugin: $(ANS_NO) $(mZ)Linux only$(mE)"
  518. endif
  519. else
  520. @echo "Front-End: $(ANS_NO) $(mS)Missing PyQt$(mE)"
  521. @echo "LV2 plugin: $(ANS_NO) $(mS)No front-end$(mE)"
  522. @echo "VST plugin: $(ANS_NO) $(mS)No front-end$(mE)"
  523. endif
  524. @echo ""
  525. @echo "$(tS)---> Engine drivers $(tE)"
  526. @echo "JACK: $(ANS_YES)"
  527. ifeq ($(LINUX),true)
  528. ifeq ($(HAVE_ALSA),true)
  529. @echo "ALSA: $(ANS_YES)"
  530. else
  531. @echo "ALSA: $(ANS_NO) $(mS)Missing ALSA$(mE)"
  532. endif
  533. ifeq ($(HAVE_PULSEAUDIO),true)
  534. @echo "PulseAudio: $(ANS_YES)"
  535. else
  536. @echo "PulseAudio: $(ANS_NO) $(mS)Missing PulseAudio$(mE)"
  537. endif
  538. else
  539. @echo "ALSA: $(ANS_NO) $(mZ)Linux only$(mE)"
  540. @echo "PulseAudio: $(ANS_NO) $(mZ)Linux only$(mE)"
  541. endif
  542. ifeq ($(MACOS),true)
  543. @echo "CoreAudio: $(ANS_YES)"
  544. else
  545. @echo "CoreAudio: $(ANS_NO) $(mZ)MacOS only$(mE)"
  546. endif
  547. ifeq ($(WIN32),true)
  548. @echo "ASIO: $(ANS_YES)"
  549. @echo "DirectSound:$(ANS_YES)"
  550. else
  551. @echo "ASIO: $(ANS_NO) $(mZ)Windows only$(mE)"
  552. @echo "DirectSound:$(ANS_NO) $(mZ)Windows only$(mE)"
  553. endif
  554. @echo ""
  555. @echo "$(tS)---> Plugin formats: $(tE)"
  556. @echo "Internal:$(ANS_YES)"
  557. @echo "LADSPA: $(ANS_YES)"
  558. @echo "DSSI: $(ANS_YES)"
  559. @echo "LV2: $(ANS_YES)"
  560. ifeq ($(MACOS_OR_WIN32),true)
  561. @echo "VST: $(ANS_YES) (with UI)"
  562. else
  563. ifeq ($(LINUX),true)
  564. ifeq ($(HAVE_X11),true)
  565. @echo "VST: $(ANS_YES) (with UI)"
  566. else
  567. @echo "VST: $(ANS_YES) (without UI) $(mS)Missing X11$(mE)"
  568. endif
  569. else # LINUX
  570. @echo "VST: $(ANS_YES) (without UI) $(mZ)Linux, Mac and Windows only$(mE)"
  571. endif
  572. endif
  573. ifeq ($(MACOS_OR_WIN32),true)
  574. @echo "VST3: $(ANS_YES)"
  575. else
  576. @echo "VST3: $(ANS_NO) $(mZ)Windows and MacOS only$(mE)"
  577. endif
  578. ifeq ($(MACOS),true)
  579. @echo "AU: $(ANS_YES)"
  580. else
  581. @echo "AU: $(ANS_NO) $(mZ)MacOS only$(mE)"
  582. endif
  583. @echo ""
  584. @echo "$(tS)---> LV2 UI toolkit support: $(tE)"
  585. @echo "External:$(ANS_YES) (direct)"
  586. ifeq ($(HAVE_GTK2),true)
  587. @echo "Gtk2: $(ANS_YES) (bridge)"
  588. else
  589. @echo "Gtk2: $(ANS_NO) $(mS)Gtk2 missing$(mE)"
  590. endif
  591. ifeq ($(HAVE_GTK3),true)
  592. @echo "Gtk3: $(ANS_YES) (bridge)"
  593. else
  594. @echo "Gtk3: $(ANS_NO) $(mS)Gtk3 missing$(mE)"
  595. endif
  596. ifeq ($(HAVE_QT4),true)
  597. @echo "Qt4: $(ANS_YES) (bridge)"
  598. else
  599. @echo "Qt4: $(ANS_NO) $(mS)Qt4 missing$(mE)"
  600. endif
  601. ifeq ($(HAVE_QT5),true)
  602. @echo "Qt5: $(ANS_YES) (bridge)"
  603. else
  604. @echo "Qt5: $(ANS_NO) $(mS)Qt5 missing$(mE)"
  605. endif
  606. ifeq ($(HAVE_X11),true)
  607. @echo "X11: $(ANS_YES) (direct+bridge)"
  608. else
  609. @echo "X11: $(ANS_NO) $(mS)X11 missing$(mE)"
  610. endif
  611. # ifeq ($(MACOS),true)
  612. # @echo "Cocoa: $(ANS_YES) (direct+bridge)"
  613. # else
  614. # @echo "Cocoa: $(ANS_NO) $(mZ)MacOS only$(mE)"
  615. # endif
  616. # ifeq ($(WIN32),true)
  617. # @echo "Windows: $(ANS_YES) (direct+bridge)"
  618. # else
  619. # @echo "Windows: $(ANS_NO) $(mZ)Windows only$(mE)"
  620. # endif
  621. @echo ""
  622. @echo "$(tS)---> File formats: $(tE)"
  623. ifeq ($(HAVE_LINUXSAMPLER),true)
  624. @echo "GIG:$(ANS_YES)"
  625. else
  626. @echo "GIG:$(ANS_NO) $(mS)LinuxSampler missing or too old$(mE)"
  627. endif
  628. ifeq ($(HAVE_FLUIDSYNTH),true)
  629. @echo "SF2:$(ANS_YES)"
  630. else
  631. @echo "SF2:$(ANS_NO) $(mS)FluidSynth missing$(mE)"
  632. endif
  633. ifeq ($(HAVE_LINUXSAMPLER),true)
  634. @echo "SFZ:$(ANS_YES)"
  635. else
  636. @echo "SFZ:$(ANS_NO) $(mS)LinuxSampler missing or too old$(mE)"
  637. endif
  638. @echo ""
  639. @echo "$(tS)---> Internal plugins: $(tE)"
  640. ifneq ($(WIN32),true)
  641. @echo "Carla-Rack: $(ANS_YES)"
  642. else
  643. @echo "Carla-Rack: $(ANS_NO) $(mS)Not available for Windows$(mE)"
  644. endif
  645. ifeq ($(HAVE_ZYN_DEPS),true)
  646. ifeq ($(HAVE_ZYN_UI_DEPS),true)
  647. @echo "ZynAddSubFX:$(ANS_YES) (with UI)"
  648. else
  649. @echo "ZynAddSubFX:$(ANS_YES) (without UI) $(mS)NTK missing$(mE)"
  650. endif
  651. else
  652. @echo "ZynAddSubFX:$(ANS_NO) $(mS)fftw3, mxml or zlib missing$(mE)"
  653. endif
  654. # --------------------------------------------------------------
  655. .FORCE:
  656. .PHONY: .FORCE
  657. # --------------------------------------------------------------