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.

119 lines
3.1KB

  1. # -----------------------------------------
  2. # Compile all the Plugins and Ports
  3. PREFIX = /usr/local
  4. # -----------------------------------------
  5. # all
  6. all:
  7. $(MAKE) -C libs/dgl
  8. $(MAKE) -C libs/drowaudio
  9. $(MAKE) -C libs/juce
  10. $(MAKE) -C libs/juced
  11. $(MAKE) -C libs/lv2-ttl-generator
  12. $(MAKE) -C plugins plugins
  13. $(MAKE) -C ports plugins
  14. $(MAKE) gen
  15. # -----------------------------------------
  16. # install
  17. install:
  18. # make dirs
  19. install -d $(DESTDIR)$(PREFIX)/lib/ladspa/
  20. install -d $(DESTDIR)$(PREFIX)/lib/dssi/
  21. install -d $(DESTDIR)$(PREFIX)/lib/lv2/
  22. install -d $(DESTDIR)$(PREFIX)/lib/vst/
  23. install -d $(DESTDIR)/src/distrho/libs/juce/build-juce/
  24. install -d $(DESTDIR)/src/distrho/libs/juce/source/
  25. install -d $(DESTDIR)/src/distrho/libs/juce-plugin/
  26. install -d $(DESTDIR)/src/distrho/scripts/
  27. # install plugins
  28. cp -r bin/ladspa/* $(DESTDIR)$(PREFIX)/lib/ladspa/
  29. cp -r bin/dssi/* $(DESTDIR)$(PREFIX)/lib/dssi/
  30. cp -r bin/lv2/*.lv2/ $(DESTDIR)$(PREFIX)/lib/lv2/
  31. cp -r bin/vst/* $(DESTDIR)$(PREFIX)/lib/vst/
  32. cp -r static-lv2-ttl/*.lv2/ $(DESTDIR)$(PREFIX)/lib/lv2/
  33. # install source needed for extra builds
  34. install -m 644 libs/libjuce.a $(DESTDIR)/src/distrho/libs/
  35. install -m 644 libs/lv2_ttl_generator $(DESTDIR)/src/distrho/libs/
  36. install -m 644 libs/juce/build-juce/*.h $(DESTDIR)/src/distrho/libs/juce/build-juce/
  37. install -m 644 libs/juce-plugin/*.cpp $(DESTDIR)/src/distrho/libs/juce-plugin/
  38. install -m 644 libs/juce-plugin/*.h $(DESTDIR)/src/distrho/libs/juce-plugin/
  39. install -m 644 scripts/*.lua $(DESTDIR)/src/distrho/scripts/
  40. install -m 644 scripts/*.sh $(DESTDIR)/src/distrho/scripts/
  41. find libs/juce/source/ -type f -name "*.h" -exec cp --parents {} $(DESTDIR)/src/distrho/ \;
  42. # -----------------------------------------
  43. # gen
  44. gen: gen_lv2 gen_vst
  45. gen_lv2:
  46. $(MAKE) -C libs/lv2-ttl-generator
  47. @./scripts/generate-cabbage-lv2.sh
  48. @./scripts/generate-ttl.sh
  49. gen_vst:
  50. @./scripts/generate-cabbage-vst.sh
  51. # -----------------------------------------
  52. # clean
  53. clean:
  54. $(MAKE) clean -C libs/dgl
  55. $(MAKE) clean -C libs/drowaudio
  56. $(MAKE) clean -C libs/juce
  57. $(MAKE) clean -C libs/juced
  58. $(MAKE) clean -C libs/lv2-ttl-generator
  59. $(MAKE) clean -C plugins
  60. $(MAKE) clean -C ports
  61. rm -rf bin/lv2/*.lv2/
  62. distclean: clean
  63. $(MAKE) distclean -C libs/dgl
  64. $(MAKE) distclean -C libs/drowaudio
  65. $(MAKE) distclean -C libs/juce
  66. $(MAKE) distclean -C libs/juced
  67. $(MAKE) distclean -C plugins
  68. $(MAKE) distclean -C ports
  69. # -----------------------------------------
  70. # mingw
  71. mingw:
  72. $(MAKE) -C libs/lv2-ttl-generator mingw
  73. # -----------------------------------------
  74. # Custom build types
  75. ladspa:
  76. $(MAKE) -C plugins ladspa
  77. dssi:
  78. $(MAKE) -C libs/dgl
  79. $(MAKE) -C plugins dssi
  80. lv2:
  81. $(MAKE) -C libs/dgl
  82. $(MAKE) -C libs/drowaudio
  83. $(MAKE) -C libs/juce
  84. $(MAKE) -C libs/juced
  85. $(MAKE) -C libs/lv2-ttl-generator
  86. $(MAKE) -C plugins lv2
  87. $(MAKE) -C ports lv2
  88. $(MAKE) gen_lv2
  89. vst:
  90. $(MAKE) -C libs/dgl
  91. $(MAKE) -C libs/drowaudio
  92. $(MAKE) -C libs/juce
  93. $(MAKE) -C libs/juced
  94. $(MAKE) -C plugins vst
  95. $(MAKE) -C ports vst
  96. $(MAKE) gen_vst