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.

89 lines
2.7KB

  1. RACK_DIR ?= ../..
  2. FLAGS +=
  3. CFLAGS +=
  4. CXXFLAGS += -g
  5. LDFLAGS += -g
  6. SOURCES += $(wildcard src/*.cpp)
  7. DISTRIBUTABLES += res examples
  8. DISTRIBUTABLES += $(wildcard LICENSE*)
  9. # Duktape
  10. duktape := dep/duktape-2.4.0/src/duktape.c
  11. DEPS += $(duktape)
  12. SOURCES += $(duktape)
  13. FLAGS += -Idep/duktape-2.4.0/src
  14. $(duktape):
  15. $(WGET) "https://duktape.org/duktape-2.4.0.tar.xz"
  16. $(SHA256) duktape-2.4.0.tar.xz 86a89307d1633b5cedb2c6e56dc86e92679fc34b05be551722d8cc69ab0771fc
  17. cd dep && $(UNTAR) ../duktape-2.4.0.tar.xz
  18. # QuickJS
  19. quickjs := dep/QuickJS/libquickjs.a
  20. DEPS += $(quickjs)
  21. OBJECTS += $(quickjs)
  22. FLAGS += -Idep/QuickJS
  23. LDFLAGS += -Ldep/QuickJS -lquickjs
  24. $(quickjs):
  25. cd dep && git clone "https://github.com/JerrySievert/QuickJS"
  26. cd dep/QuickJS && $(MAKE)
  27. # # LuaJIT
  28. # luajit := dep/lib/luajit.a
  29. # DEPS += $(luajit)
  30. # $(luajit):
  31. # cd dep && $(WGET) "http://luajit.org/download/LuaJIT-2.0.5.tar.gz"
  32. # cd dep && $(SHA256) LuaJIT-2.0.5.tar.gz 874b1f8297c697821f561f9b73b57ffd419ed8f4278c82e05b48806d30c1e979
  33. # cd dep && $(UNTAR) LuaJIT-2.0.5.tar.gz
  34. # cd dep/LuaJIT-2.0.5 && $(MAKE)
  35. # # Julia
  36. # julia := dep/lib/libjulia.a
  37. # DEPS += $(julia)
  38. # $(julia):
  39. # $(WGET) "https://github.com/JuliaLang/julia/releases/download/v1.2.0/julia-1.2.0-full.tar.gz"
  40. # $(SHA256) julia-1.2.0-full.tar.gz 2419b268fc5c3666dd9aeb554815fe7cf9e0e7265bc9b94a43957c31a68d9184
  41. # cd dep && $(UNTAR) ../julia-1.2.0-full.tar.gz
  42. # # Python
  43. # python := dep/lib/libpython3.7m.a
  44. # DEPS += $(python)
  45. # OBJECTS += $(python)
  46. # FLAGS += -Idep/include/python3.7m
  47. # LDFLAGS += -lcrypt -lpthread -ldl -lutil -lm
  48. # $(python):
  49. # $(WGET) "https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tar.xz"
  50. # $(SHA256) Python-3.7.4.tar.xz fb799134b868199930b75f26678f18932214042639cd52b16da7fd134cd9b13f
  51. # cd dep && $(UNTAR) ../Python-3.7.4.tar.xz
  52. # cd dep/Python-3.7.4 && $(CONFIGURE) --build=$(MACHINE) --enable-optimizations
  53. # cd dep/Python-3.7.4 && $(MAKE) build_all
  54. # cd dep/Python-3.7.4 && $(MAKE) install
  55. # # Csound
  56. # csound := dep/lib/libcsound.a
  57. # DEPS += $(csound)
  58. # $(csound):
  59. # $(WGET) "https://github.com/csound/csound/archive/6.13.0.tar.gz"
  60. # $(SHA256) 6.13.0.tar.gz 183beeb3b720bfeab6cc8af12fbec0bf9fef2727684ac79289fd12d0dfee728b
  61. # cd dep && $(UNTAR) ../6.13.0.tar.gz
  62. # # LLVM
  63. # llvm := dep/lib/libllvm.a
  64. # DEPS += $(llvm)
  65. # $(llvm):
  66. # $(WGET) "https://github.com/llvm/llvm-project/releases/download/llvmorg-8.0.1/llvm-8.0.1.src.tar.xz"
  67. # $(SHA256) llvm-8.0.1.src.tar.xz 44787a6d02f7140f145e2250d56c9f849334e11f9ae379827510ed72f12b75e7
  68. # cd dep && $(UNTAR) ../llvm-8.0.1.src.tar.xz
  69. # cd dep/llvm-8.0.1.src && mkdir -p build
  70. # cd dep/llvm-8.0.1.src/build && $(CMAKE) ..
  71. # cd dep/llvm-8.0.1.src/build && $(MAKE)
  72. # cd dep/llvm-8.0.1.src/build && $(MAKE) install
  73. include $(RACK_DIR)/plugin.mk