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.

68 lines
2.0KB

  1. RACK_DIR ?= ../..
  2. FLAGS +=
  3. CFLAGS +=
  4. CXXFLAGS +=
  5. LDFLAGS +=
  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. # LuaJIT
  19. luajit := dep/lib/libluajit-5.1.a
  20. DEPS += $(luajit)
  21. OBJECTS += $(luajit)
  22. FLAGS += -Idep/include/luajit-2.0
  23. $(luajit):
  24. $(WGET) "http://luajit.org/download/LuaJIT-2.0.5.tar.gz"
  25. $(SHA256) LuaJIT-2.0.5.tar.gz 874b1f8297c697821f561f9b73b57ffd419ed8f4278c82e05b48806d30c1e979
  26. cd dep && $(UNTAR) ../LuaJIT-2.0.5.tar.gz
  27. cd dep/LuaJIT-2.0.5 && $(MAKE) PREFIX="$(DEP_PATH)" install
  28. # # Julia
  29. # julia := dep/lib/libjulia.a
  30. # DEPS += $(julia)
  31. # $(julia):
  32. # $(WGET) "https://github.com/JuliaLang/julia/releases/download/v1.2.0/julia-1.2.0-full.tar.gz"
  33. # $(SHA256) julia-1.2.0-full.tar.gz 2419b268fc5c3666dd9aeb554815fe7cf9e0e7265bc9b94a43957c31a68d9184
  34. # cd dep && $(UNTAR) ../julia-1.2.0-full.tar.gz
  35. # # Python
  36. # python := dep/lib/libpython3.7m.a
  37. # DEPS += $(python)
  38. # OBJECTS += $(python)
  39. # FLAGS += -Idep/include/python3.7m
  40. # LDFLAGS += -lcrypt -lpthread -ldl -lutil -lm
  41. # $(python):
  42. # $(WGET) "https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tar.xz"
  43. # $(SHA256) Python-3.7.4.tar.xz fb799134b868199930b75f26678f18932214042639cd52b16da7fd134cd9b13f
  44. # cd dep && $(UNTAR) ../Python-3.7.4.tar.xz
  45. # cd dep/Python-3.7.4 && $(CONFIGURE) --build=$(MACHINE) --enable-optimizations
  46. # cd dep/Python-3.7.4 && $(MAKE) build_all
  47. # cd dep/Python-3.7.4 && $(MAKE) install
  48. # # Csound
  49. # csound := dep/lib/libcsound.a
  50. # DEPS += $(csound)
  51. # $(csound):
  52. # $(WGET) "https://github.com/csound/csound/archive/6.13.0.tar.gz"
  53. # $(SHA256) 6.13.0.tar.gz 183beeb3b720bfeab6cc8af12fbec0bf9fef2727684ac79289fd12d0dfee728b
  54. # cd dep && $(UNTAR) ../6.13.0.tar.gz
  55. include $(RACK_DIR)/plugin.mk