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.

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