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.

798 lines
26KB

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