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.

83 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. # needed for some example plugins
  10. export USE_FILE_BROWSER = true
  11. export USE_WEB_VIEW = true
  12. ifneq ($(CROSS_COMPILING),true)
  13. CAN_GENERATE_TTL = true
  14. else ifneq ($(EXE_WRAPPER),)
  15. CAN_GENERATE_TTL = true
  16. endif
  17. dgl:
  18. ifeq ($(HAVE_DGL),true)
  19. $(MAKE) -C dgl
  20. endif
  21. examples: dgl
  22. $(MAKE) all -C examples/CVPort
  23. $(MAKE) all -C examples/FileHandling
  24. $(MAKE) all -C examples/Info
  25. $(MAKE) all -C examples/Latency
  26. $(MAKE) all -C examples/Meters
  27. $(MAKE) all -C examples/Metronome
  28. $(MAKE) all -C examples/MidiThrough
  29. $(MAKE) all -C examples/Parameters
  30. $(MAKE) all -C examples/SendNote
  31. $(MAKE) all -C examples/States
  32. ifeq ($(HAVE_CAIRO),true)
  33. $(MAKE) all -C examples/CairoUI
  34. endif
  35. ifeq ($(HAVE_DGL),true)
  36. $(MAKE) all -C examples/EmbedExternalUI
  37. $(MAKE) all -C examples/WebMeters
  38. endif
  39. ifeq ($(CAN_GENERATE_TTL),true)
  40. gen: examples utils/lv2_ttl_generator
  41. @$(CURDIR)/utils/generate-ttl.sh
  42. utils/lv2_ttl_generator:
  43. $(MAKE) -C utils/lv2-ttl-generator
  44. else
  45. gen:
  46. endif
  47. tests: dgl
  48. $(MAKE) -C tests
  49. # ---------------------------------------------------------------------------------------------------------------------
  50. clean:
  51. $(MAKE) clean -C dgl
  52. $(MAKE) clean -C examples/CVPort
  53. $(MAKE) clean -C examples/CairoUI
  54. $(MAKE) clean -C examples/EmbedExternalUI
  55. $(MAKE) clean -C examples/FileHandling
  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 examples/WebMeters
  65. $(MAKE) clean -C utils/lv2-ttl-generator
  66. rm -rf bin build
  67. # ---------------------------------------------------------------------------------------------------------------------
  68. .PHONY: dgl examples tests