DISTRHO ProM
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.

88 lines
2.8KB

  1. #!/usr/bin/make -f
  2. # Makefile for DISTRHO Plugins #
  3. # ---------------------------- #
  4. # Created by falkTX
  5. #
  6. include dpf/Makefile.base.mk
  7. all: dgl plugins resources gen
  8. # --------------------------------------------------------------
  9. # Check for system-wide projectM
  10. HAVE_PROJECTM = $(shell pkg-config --exists libprojectM && echo true)
  11. # --------------------------------------------------------------
  12. dgl:
  13. $(MAKE) -C dpf/dgl opengl3 FILE_BROWSER_DISABLED=true
  14. plugins: dgl
  15. $(MAKE) all -C plugins/ProM
  16. ifneq ($(HAVE_PROJECTM),true)
  17. resources: gen
  18. # LV2 fonts
  19. install -d bin/ProM.lv2/resources/fonts
  20. ln -sf $(CURDIR)/plugins/ProM/projectM/fonts/*.ttf bin/ProM.lv2/resources/fonts/
  21. # LV2 presets
  22. install -d bin/ProM.lv2/resources/presets
  23. ln -sf $(CURDIR)/plugins/ProM/projectM/presets/presets_* bin/ProM.lv2/resources/presets/
  24. ifeq ($(MACOS),true)
  25. # CLAP + VST2 fonts
  26. install -d bin/ProM.clap/Contents/Resources/fonts
  27. install -d bin/ProM.vst/Contents/Resources/fonts
  28. ln -sf $(CURDIR)/plugins/ProM/projectM/fonts/*.ttf bin/ProM.clap/Contents/Resources/fonts/
  29. ln -sf $(CURDIR)/plugins/ProM/projectM/fonts/*.ttf bin/ProM.vst/Contents/Resources/fonts/
  30. # CLAP + VST2 presets
  31. install -d bin/ProM.clap/Contents/Resources/presets
  32. install -d bin/ProM.vst/Contents/Resources/presets
  33. ln -sf $(CURDIR)/plugins/ProM/projectM/presets/presets_* bin/ProM.clap/Contents/Resources/presets/
  34. ln -sf $(CURDIR)/plugins/ProM/projectM/presets/presets_* bin/ProM.vst/Contents/Resources/presets/
  35. else
  36. # CLAP + VST2 fonts
  37. install -d bin/ProM.clap/resources/fonts
  38. install -d bin/ProM.vst/resources/fonts
  39. ln -sf $(CURDIR)/plugins/ProM/projectM/fonts/*.ttf bin/ProM.clap/resources/fonts/
  40. ln -sf $(CURDIR)/plugins/ProM/projectM/fonts/*.ttf bin/ProM.vst/resources/fonts/
  41. # CLAP + VST2 presets
  42. install -d bin/ProM.clap/resources/presets
  43. install -d bin/ProM.vst/resources/presets
  44. ln -sf $(CURDIR)/plugins/ProM/projectM/presets/presets_* bin/ProM.clap/resources/presets/
  45. ln -sf $(CURDIR)/plugins/ProM/projectM/presets/presets_* bin/ProM.vst/resources/presets/
  46. endif
  47. # VST3 fonts
  48. install -d bin/ProM.vst3/Contents/Resources/fonts
  49. ln -sf $(CURDIR)/plugins/ProM/projectM/fonts/*.ttf bin/ProM.vst3/Contents/Resources/fonts/
  50. # VST3 presets
  51. install -d bin/ProM.vst3/Contents/Resources/presets
  52. ln -sf $(CURDIR)/plugins/ProM/projectM/presets/presets_* bin/ProM.vst3/Contents/Resources/presets/
  53. else
  54. resources:
  55. endif
  56. ifneq ($(CROSS_COMPILING),true)
  57. gen: plugins dpf/utils/lv2_ttl_generator
  58. @$(CURDIR)/dpf/utils/generate-ttl.sh
  59. dpf/utils/lv2_ttl_generator:
  60. $(MAKE) -C dpf/utils/lv2-ttl-generator
  61. else
  62. gen:
  63. endif
  64. # --------------------------------------------------------------
  65. clean:
  66. $(MAKE) clean -C dpf/dgl
  67. $(MAKE) clean -C dpf/utils/lv2-ttl-generator
  68. $(MAKE) clean -C plugins/ProM
  69. rm -rf bin build
  70. # --------------------------------------------------------------
  71. .PHONY: plugins