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.

Makefile 3.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. #!/usr/bin/make -f
  2. # Makefile for carla-frontend #
  3. # --------------------------- #
  4. # Created by falkTX
  5. #
  6. CWD=..
  7. include $(CWD)/Makefile.mk
  8. # ----------------------------------------------------------------------------------------------------------------------
  9. BINDIR := $(CWD)/../bin
  10. RESDIR := $(CWD)/../resources
  11. ifeq ($(DEBUG),true)
  12. OBJDIR := $(CWD)/../build/frontend/Debug
  13. MODULEDIR := $(CWD)/../build/modules/Debug
  14. else
  15. OBJDIR := $(CWD)/../build/frontend/Release
  16. MODULEDIR := $(CWD)/../build/modules/Release
  17. endif
  18. # ---------------------------------------------------------------------------------------------------------------------
  19. # UI code
  20. UIs = \
  21. ui_carla_about.py \
  22. ui_carla_add_jack.py \
  23. ui_carla_database.py \
  24. ui_carla_edit.py \
  25. ui_carla_host.py \
  26. ui_carla_parameter.py \
  27. ui_carla_plugin_calf.py \
  28. ui_carla_plugin_classic.py \
  29. ui_carla_plugin_compact.py \
  30. ui_carla_plugin_default.py \
  31. ui_carla_plugin_presets.py \
  32. ui_carla_refresh.py \
  33. ui_carla_settings.py \
  34. ui_carla_settings_driver.py \
  35. ui_inputdialog_value.py \
  36. ui_midipattern.py
  37. # ---------------------------------------------------------------------------------------------------------------------
  38. # Resources
  39. RES = \
  40. carla_config.py \
  41. resources_rc.py \
  42. $(BINDIR)/resources/widgets \
  43. $(BINDIR)/resources/carla_app.py \
  44. $(BINDIR)/resources/carla_backend.py \
  45. $(BINDIR)/resources/carla_backend_qt.py \
  46. $(BINDIR)/resources/carla_config.py \
  47. $(BINDIR)/resources/carla_control.py \
  48. $(BINDIR)/resources/carla_database.py \
  49. $(BINDIR)/resources/carla_host.py \
  50. $(BINDIR)/resources/carla_settings.py \
  51. $(BINDIR)/resources/carla_skin.py \
  52. $(BINDIR)/resources/carla_shared.py \
  53. $(BINDIR)/resources/carla_utils.py \
  54. $(BINDIR)/resources/carla_widgets.py \
  55. $(BINDIR)/resources/externalui.py \
  56. $(BINDIR)/resources/patchcanvas.py \
  57. $(BINDIR)/resources/patchcanvas_theme.py \
  58. $(BINDIR)/resources/resources_rc.py \
  59. $(BINDIR)/resources/ui_carla_about.py \
  60. $(BINDIR)/resources/ui_carla_add_jack.py \
  61. $(BINDIR)/resources/ui_carla_database.py \
  62. $(BINDIR)/resources/ui_carla_edit.py \
  63. $(BINDIR)/resources/ui_carla_host.py \
  64. $(BINDIR)/resources/ui_carla_parameter.py \
  65. $(BINDIR)/resources/ui_carla_plugin_calf.py \
  66. $(BINDIR)/resources/ui_carla_plugin_classic.py \
  67. $(BINDIR)/resources/ui_carla_plugin_compact.py \
  68. $(BINDIR)/resources/ui_carla_plugin_default.py \
  69. $(BINDIR)/resources/ui_carla_plugin_presets.py \
  70. $(BINDIR)/resources/ui_carla_refresh.py \
  71. $(BINDIR)/resources/ui_carla_settings.py \
  72. $(BINDIR)/resources/ui_carla_settings_driver.py \
  73. $(BINDIR)/resources/ui_inputdialog_value.py \
  74. $(BINDIR)/resources/ui_midipattern.py
  75. # ----------------------------------------------------------------------------------------------------------------------
  76. all: $(UIs) $(RES)
  77. # ----------------------------------------------------------------------------------------------------------------------
  78. ui_%.py: $(RESDIR)/ui/%.ui
  79. $(PYUIC) $< -o $@
  80. carla_config.py:
  81. @echo "#!/usr/bin/env python3" > $@
  82. @echo "# -*- coding: utf-8 -*-" >> $@
  83. ifeq ($(DEFAULT_QT),4)
  84. @echo "config_UseQt5 = False" >> $@
  85. else
  86. @echo "config_UseQt5 = True" >> $@
  87. endif
  88. resources_rc.py: $(RESDIR)/resources.qrc $(RESDIR)/*/*.png $(RESDIR)/*/*.svg
  89. $(PYRCC) $< -o $@
  90. $(BINDIR)/resources/%: %
  91. $(LINK) $(CURDIR)/$* $(BINDIR)/resources/
  92. # ----------------------------------------------------------------------------------------------------------------------
  93. clean:
  94. rm -rf $(UIs) $(RES) __pycache__ *.pyc
  95. debug:
  96. $(MAKE) DEBUG=true
  97. # ----------------------------------------------------------------------------------------------------------------------