DISTRHO Plugin Framework
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.

84 lines
2.0KB

  1. #!/usr/bin/make -f
  2. # Makefile for DPF #
  3. # ---------------- #
  4. # Created by falkTX
  5. #
  6. include Makefile.base.mk
  7. all: dgl examples gen
  8. # --------------------------------------------------------------
  9. ifneq ($(CROSS_COMPILING),true)
  10. CAN_GENERATE_TTL = true
  11. else ifneq ($(EXE_WRAPPER),)
  12. CAN_GENERATE_TTL = true
  13. endif
  14. dgl:
  15. $(MAKE) -C dgl
  16. examples: dgl
  17. $(MAKE) all -C examples/CVPort
  18. $(MAKE) all -C examples/Info
  19. $(MAKE) all -C examples/Latency
  20. $(MAKE) all -C examples/Meters
  21. $(MAKE) all -C examples/Metronome
  22. $(MAKE) all -C examples/MidiThrough
  23. $(MAKE) all -C examples/Parameters
  24. $(MAKE) all -C examples/SendNote
  25. $(MAKE) all -C examples/States
  26. ifeq ($(HAVE_CAIRO),true)
  27. $(MAKE) all -C examples/CairoUI
  28. endif
  29. ifneq ($(MACOS_OR_WINDOWS),true)
  30. # ExternalUI is WIP
  31. $(MAKE) all -C examples/ExternalUI
  32. install -d bin/d_extui-dssi
  33. install -d bin/d_extui.lv2
  34. install -m 755 examples/ExternalUI/ExternalLauncher.sh bin/d_extui.sh
  35. install -m 755 examples/ExternalUI/ExternalLauncher.sh bin/d_extui-dssi/d_extui.sh
  36. install -m 755 examples/ExternalUI/ExternalLauncher.sh bin/d_extui.lv2/d_extui.sh
  37. endif
  38. ifeq ($(CAN_GENERATE_TTL),true)
  39. gen: examples utils/lv2_ttl_generator
  40. @$(CURDIR)/utils/generate-ttl.sh
  41. ifeq ($(MACOS),true)
  42. @$(CURDIR)/utils/generate-vst-bundles.sh
  43. endif
  44. utils/lv2_ttl_generator:
  45. $(MAKE) -C utils/lv2-ttl-generator
  46. else
  47. gen:
  48. endif
  49. tests: dgl
  50. $(MAKE) -C tests
  51. # --------------------------------------------------------------
  52. clean:
  53. $(MAKE) clean -C dgl
  54. $(MAKE) clean -C examples/CVPort
  55. $(MAKE) clean -C examples/CairoUI
  56. $(MAKE) clean -C examples/Info
  57. $(MAKE) clean -C examples/Latency
  58. $(MAKE) clean -C examples/Meters
  59. $(MAKE) clean -C examples/Metronome
  60. $(MAKE) clean -C examples/MidiThrough
  61. $(MAKE) clean -C examples/Parameters
  62. $(MAKE) clean -C examples/SendNote
  63. $(MAKE) clean -C examples/States
  64. $(MAKE) clean -C utils/lv2-ttl-generator
  65. ifneq ($(MACOS_OR_WINDOWS),true)
  66. $(MAKE) clean -C examples/ExternalUI
  67. endif
  68. rm -rf bin build
  69. # --------------------------------------------------------------
  70. .PHONY: dgl examples tests