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.

Makefile 1.8KB

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