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.

80 lines
2.2KB

  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 opengl
  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. # VST2 fonts
  26. install -d bin/ProM.vst/Contents/Resources/fonts
  27. ln -sf $(CURDIR)/plugins/ProM/projectM/fonts/*.ttf bin/ProM.vst/Contents/Resources/fonts/
  28. # VST2 presets
  29. install -d bin/ProM.vst/Contents/Resources/presets
  30. ln -sf $(CURDIR)/plugins/ProM/projectM/presets/presets_* bin/ProM.vst/Contents/Resources/presets/
  31. else
  32. # VST2 fonts
  33. install -d bin/ProM.vst/resources/fonts
  34. ln -sf $(CURDIR)/plugins/ProM/projectM/fonts/*.ttf bin/ProM.vst/resources/fonts/
  35. # VST2 presets
  36. install -d bin/ProM.vst/resources/presets
  37. ln -sf $(CURDIR)/plugins/ProM/projectM/presets/presets_* bin/ProM.vst/resources/presets/
  38. endif
  39. # VST3 fonts
  40. install -d bin/ProM.vst3/Contents/Resources/fonts
  41. ln -sf $(CURDIR)/plugins/ProM/projectM/fonts/*.ttf bin/ProM.vst3/Contents/Resources/fonts/
  42. # VST3 presets
  43. install -d bin/ProM.vst3/Contents/Resources/presets
  44. ln -sf $(CURDIR)/plugins/ProM/projectM/presets/presets_* bin/ProM.vst3/Contents/Resources/presets/
  45. else
  46. resources:
  47. endif
  48. ifneq ($(CROSS_COMPILING),true)
  49. gen: plugins dpf/utils/lv2_ttl_generator
  50. @$(CURDIR)/dpf/utils/generate-ttl.sh
  51. dpf/utils/lv2_ttl_generator:
  52. $(MAKE) -C dpf/utils/lv2-ttl-generator
  53. else
  54. gen:
  55. endif
  56. # --------------------------------------------------------------
  57. clean:
  58. $(MAKE) clean -C dpf/dgl
  59. $(MAKE) clean -C dpf/utils/lv2-ttl-generator
  60. $(MAKE) clean -C plugins/ProM
  61. rm -rf bin build
  62. # --------------------------------------------------------------
  63. .PHONY: plugins