Makefile.am 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. V8_FEATURES=--experimental-wasm-stringref
  2. SUBDIRS = module
  3. WASMOBJECTS = $(WATS:%.wat=%.wasm)
  4. CLEANFILES = $(WASMOBJECTS)
  5. nobase_noinst_DATA = $(WASMOBJECTS)
  6. WATS = \
  7. examples/basic-types.wat \
  8. js-runtime/reflect.wat \
  9. js-runtime/wtf8.wat
  10. SUFFIXES = .wat .wasm
  11. # The mkdir is necessary for 'make distcheck' since it's building in a
  12. # different directory than the project root.
  13. .wat.wasm:
  14. $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
  15. $(top_builddir)/pre-inst-env $(GUILD) assemble-wasm -o "$@" "$<"
  16. $(top_builddir)/js-runtime/reflect.wasm: js-runtime/reflect.wat module/hoot/stdlib.scm
  17. $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
  18. $(top_builddir)/pre-inst-env $(GUILD) assemble-wasm \
  19. --stdlib="((@ (hoot stdlib) compute-stdlib) #t)" -o "$@" "$<"
  20. TEST_EXTENSIONS = .js .scm
  21. SCM_LOG_COMPILER = $(top_builddir)/pre-inst-env $(GUILE)
  22. AM_SCM_LOG_FLAGS = --no-auto-compile -L $(top_srcdir)
  23. JS_LOG_COMPILER = $(top_builddir)/js-test
  24. AM_JS_LOG_FLAGS = $(V8_FEATURES)
  25. CLEANFILES += $(SCM_TESTS:test/%.scm=%.log)
  26. SCM_TESTS = \
  27. test/test-assignment.scm \
  28. test/test-atomics.scm \
  29. test/test-bitwise.scm \
  30. test/test-bytevectors.scm \
  31. test/test-char-prelude.scm \
  32. test/test-constants.scm \
  33. test/test-exceptions.scm \
  34. test/test-flonums.scm \
  35. test/test-complex.scm \
  36. test/test-fluids.scm \
  37. test/test-fractions.scm \
  38. test/test-hash-tables.scm \
  39. test/test-inline-wasm.scm \
  40. test/test-ints.scm \
  41. test/test-keywords.scm \
  42. test/test-lower.scm \
  43. test/test-lower-globals.scm \
  44. test/test-lower-stringrefs.scm \
  45. test/test-number-to-string.scm \
  46. test/test-string-to-number.scm \
  47. test/test-numeric.scm \
  48. test/test-pairs.scm \
  49. test/test-ports.scm \
  50. test/test-procedures.scm \
  51. test/test-promises.scm \
  52. test/test-prompts.scm \
  53. test/test-read.scm \
  54. test/test-records.scm \
  55. test/test-strings.scm \
  56. test/test-symbols.scm \
  57. test/test-vectors.scm \
  58. test/test-vm.scm \
  59. test/test-wasm-assembler.scm \
  60. test/test-disassemble.scm \
  61. test/test-write.scm \
  62. test/test-ffi.scm \
  63. test/test-round-trip.scm \
  64. #
  65. JS_TESTS = \
  66. examples/basic-types.js
  67. TESTS = \
  68. $(JS_TESTS) \
  69. $(SCM_TESTS)
  70. info_TEXINFOS = doc/hoot.texi
  71. doc_hoot_TEXINFOS = doc/hoot.texi \
  72. doc/apache-2.0.texi
  73. dvi: # Don't build dvi docs
  74. html-local:
  75. $(GUILE) --no-auto-compile doc/build-html.scm
  76. jsruntimedir = $(pkgdatadir)/js-runtime
  77. dist_jsruntime_DATA = \
  78. js-runtime/reflect.js \
  79. js-runtime/reflect.wasm \
  80. js-runtime/wtf8.wasm
  81. EXTRA_DIST = \
  82. $(WATS) \
  83. $(TESTS) \
  84. bin/eval.scm \
  85. bin/call.scm \
  86. bin/compile.scm \
  87. bootstrap.sh \
  88. guix.scm \
  89. COPYING \
  90. examples/hof.gwat \
  91. examples/README.md \
  92. examples/test-lib.js \
  93. hoot.png \
  94. README.md \
  95. test/basic-types.wasm \
  96. test/load-wasm-and-print.js \
  97. test/load-wasm-and-print-primitive.js \
  98. test/test-call.js \
  99. test/utils.scm \
  100. doc/build-html.scm \
  101. doc/hoot.css