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.

78 lines
2.1KB

  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. # VST 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. # VST 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. # VST directory
  33. install -d bin/ProM.vst
  34. mv bin/ProM-vst$(LIB_EXT) bin/ProM.vst/ProM$(LIB_EXT)
  35. # VST fonts
  36. install -d bin/ProM.vst/resources/fonts
  37. ln -sf $(CURDIR)/plugins/ProM/projectM/fonts/*.ttf bin/ProM.vst/resources/fonts/
  38. # VST presets
  39. install -d bin/ProM.vst/resources/presets
  40. ln -sf $(CURDIR)/plugins/ProM/projectM/presets/presets_* bin/ProM.vst/resources/presets/
  41. endif
  42. else
  43. resources:
  44. endif
  45. ifneq ($(CROSS_COMPILING),true)
  46. gen: plugins dpf/utils/lv2_ttl_generator
  47. @$(CURDIR)/dpf/utils/generate-ttl.sh
  48. ifeq ($(MACOS),true)
  49. @$(CURDIR)/dpf/utils/generate-vst-bundles.sh
  50. endif
  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