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.

834 lines
28KB

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