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.

82 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/MidiThrough
  22. $(MAKE) all -C examples/Parameters
  23. $(MAKE) all -C examples/SendNote
  24. $(MAKE) all -C examples/States
  25. ifeq ($(HAVE_CAIRO),true)
  26. $(MAKE) all -C examples/CairoUI
  27. endif
  28. ifneq ($(MACOS_OR_WINDOWS),true)
  29. # ExternalUI is WIP
  30. $(MAKE) all -C examples/ExternalUI
  31. install -d bin/d_extui-dssi
  32. install -d bin/d_extui.lv2
  33. install -m 755 examples/ExternalUI/ExternalLauncher.sh bin/d_extui.sh
  34. install -m 755 examples/ExternalUI/ExternalLauncher.sh bin/d_extui-dssi/d_extui.sh
  35. install -m 755 examples/ExternalUI/ExternalLauncher.sh bin/d_extui.lv2/d_extui.sh
  36. endif
  37. ifeq ($(CAN_GENERATE_TTL),true)
  38. gen: examples utils/lv2_ttl_generator
  39. @$(CURDIR)/utils/generate-ttl.sh
  40. ifeq ($(MACOS),true)
  41. @$(CURDIR)/utils/generate-vst-bundles.sh
  42. endif
  43. utils/lv2_ttl_generator:
  44. $(MAKE) -C utils/lv2-ttl-generator
  45. else
  46. gen:
  47. endif
  48. tests: dgl
  49. $(MAKE) -C tests
  50. # --------------------------------------------------------------
  51. clean:
  52. $(MAKE) clean -C dgl
  53. $(MAKE) clean -C examples/CVPort
  54. $(MAKE) clean -C examples/CairoUI
  55. $(MAKE) clean -C examples/Info
  56. $(MAKE) clean -C examples/Latency
  57. $(MAKE) clean -C examples/Meters
  58. $(MAKE) clean -C examples/MidiThrough
  59. $(MAKE) clean -C examples/Parameters
  60. $(MAKE) clean -C examples/SendNote
  61. $(MAKE) clean -C examples/States
  62. $(MAKE) clean -C utils/lv2-ttl-generator
  63. ifneq ($(MACOS_OR_WINDOWS),true)
  64. $(MAKE) clean -C examples/ExternalUI
  65. endif
  66. rm -rf bin build
  67. # --------------------------------------------------------------
  68. .PHONY: dgl examples tests