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.

104 lines
3.0KB

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