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.

72 lines
1.5KB

  1. #!/usr/bin/make -f
  2. # Makefile for DISTRHO Plugins #
  3. # ---------------------------- #
  4. # Created by falkTX
  5. #
  6. include dpf/Makefile.base.mk
  7. all: cardinal deps dgl plugins gen resources
  8. # --------------------------------------------------------------
  9. # Build config
  10. PREFIX ?= /usr/local
  11. DESTDIR ?=
  12. SYSDEPS ?= false
  13. # --------------------------------------------------------------
  14. # Check for system-wide dependencies
  15. # HAVE_LIBARCHIVE = $(shell pkg-config --exists libarchive && echo true)
  16. #
  17. # libjansson.a
  18. # libsamplerate.a
  19. # libspeexdsp.a
  20. # libzstd.a
  21. # --------------------------------------------------------------
  22. cardinal: deps dgl plugins
  23. $(MAKE) all -C src
  24. deps:
  25. $(MAKE) all -C deps
  26. dgl:
  27. $(MAKE) USE_NANOVG_FBO=true USE_RGBA=true -C dpf/dgl opengl
  28. # $(MAKE) opengl -C dpf/dgl USE_NANOVG_FBO=true USE_RGBA=true
  29. plugins: deps
  30. $(MAKE) all -C plugins
  31. resources: cardinal gen
  32. $(MAKE) resources -C plugins
  33. ifneq ($(CROSS_COMPILING),true)
  34. gen: cardinal dpf/utils/lv2_ttl_generator
  35. @$(CURDIR)/dpf/utils/generate-ttl.sh
  36. ifeq ($(MACOS),true)
  37. @$(CURDIR)/dpf/utils/generate-vst-bundles.sh
  38. endif
  39. dpf/utils/lv2_ttl_generator:
  40. $(MAKE) -C dpf/utils/lv2-ttl-generator
  41. else
  42. gen:
  43. endif
  44. # --------------------------------------------------------------
  45. clean:
  46. $(MAKE) clean -C deps
  47. $(MAKE) clean -C dpf/dgl
  48. $(MAKE) clean -C dpf/utils/lv2-ttl-generator
  49. $(MAKE) clean -C plugins
  50. $(MAKE) clean -C src
  51. rm -rf bin build
  52. # --------------------------------------------------------------
  53. .PHONY: deps plugins