Makefile.am 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. V8_FEATURES=--experimental-wasm-stringref
  2. SUBDIRS = module
  3. SOURCES = \
  4. js-runtime/reflect.wat \
  5. js-runtime/wtf8.wat
  6. WASMOBJECTS = $(SOURCES:%.wat=%.wasm)
  7. EXTRA_WAT = examples/basic-types.wat
  8. EXTRA_WASMOBJECTS = $(EXTRA_WAT:%.wat=%.wasm)
  9. CLEANFILES = $(WASMOBJECTS) $(EXTRA_WASMOBJECTS)
  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. check_DATA = examples/basic-types.wasm
  21. TEST_EXTENSIONS = .js .scm
  22. SCM_LOG_COMPILER = $(top_builddir)/pre-inst-env $(GUILE)
  23. AM_SCM_LOG_FLAGS = --no-auto-compile -L $(top_srcdir)
  24. JS_LOG_COMPILER = $(top_builddir)/js-test
  25. AM_JS_LOG_FLAGS = $(V8_FEATURES)
  26. CLEANFILES += $(SCM_TESTS:test/%.scm=%.log)
  27. SCM_TESTS = \
  28. test/test-assignment.scm \
  29. test/test-atomics.scm \
  30. test/test-bitwise.scm \
  31. test/test-bytevectors.scm \
  32. test/test-char-prelude.scm \
  33. test/test-constants.scm \
  34. test/test-exceptions.scm \
  35. test/test-flonums.scm \
  36. test/test-complex.scm \
  37. test/test-fluids.scm \
  38. test/test-fractions.scm \
  39. test/test-hash-tables.scm \
  40. test/test-inline-wasm.scm \
  41. test/test-ints.scm \
  42. test/test-keywords.scm \
  43. test/test-library-group.scm \
  44. test/test-lower.scm \
  45. test/test-lower-globals.scm \
  46. test/test-lower-stringrefs.scm \
  47. test/test-number-to-string.scm \
  48. test/test-string-to-number.scm \
  49. test/test-numeric.scm \
  50. test/test-pairs.scm \
  51. test/test-ports.scm \
  52. test/test-procedures.scm \
  53. test/test-promises.scm \
  54. test/test-prompts.scm \
  55. test/test-read.scm \
  56. test/test-records.scm \
  57. test/test-strings.scm \
  58. test/test-symbols.scm \
  59. test/test-vectors.scm \
  60. test/test-vm.scm \
  61. test/test-wasm-assembler.scm \
  62. test/test-disassemble.scm \
  63. test/test-write.scm \
  64. test/test-ffi.scm \
  65. #
  66. JS_TESTS = \
  67. examples/basic-types.js
  68. TESTS = \
  69. $(JS_TESTS) \
  70. $(SCM_TESTS)
  71. info_TEXINFOS = doc/hoot.texi
  72. doc_hoot_TEXINFOS = doc/hoot.texi \
  73. doc/apache-2.0.texi
  74. dvi: # Don't build dvi docs
  75. html-local:
  76. $(GUILE) --no-auto-compile doc/build-html.scm
  77. jsruntimedir = $(pkgdatadir)/js-runtime
  78. dist_jsruntime_DATA = \
  79. js-runtime/reflect.js
  80. jsruntime_DATA = $(WASMOBJECTS)
  81. EXTRA_DIST = \
  82. $(SOURCES) \
  83. $(TESTS) \
  84. $(EXTRA_WAT) \
  85. bin/eval.scm \
  86. bin/call.scm \
  87. bin/compile.scm \
  88. bootstrap.sh \
  89. guix.scm \
  90. COPYING \
  91. examples/hof.gwat \
  92. examples/README.md \
  93. examples/test-lib.js \
  94. hoot.png \
  95. README.md \
  96. test/basic-types.wasm \
  97. test/load-wasm-and-print.js \
  98. test/load-wasm-and-print-primitive.js \
  99. test/test-call.js \
  100. test/utils.scm \
  101. test/fixtures/hello \
  102. doc/build-html.scm \
  103. doc/hoot.css