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.

829 lines
27KB

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