Makefile.am 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. GUILE_WARNINGS = -W2
  2. moddir=$(prefix)/share/guile/site/$(GUILE_EFFECTIVE_VERSION)
  3. godir=$(libdir)/guile/$(GUILE_EFFECTIVE_VERSION)/site-ccache
  4. SOURCES = \
  5. language/cps/hoot.scm \
  6. language/cps/hoot/tailify.scm \
  7. language/cps/hoot/lower-primcalls.scm \
  8. language/cps/hoot/unify-returns.scm \
  9. wasm/types.scm \
  10. wasm/resolve.scm \
  11. wasm/wat.scm \
  12. wasm/assemble.scm \
  13. wasm/dump.scm \
  14. wasm/link.scm \
  15. wasm/lower.scm \
  16. wasm/lower-globals.scm \
  17. wasm/lower-stringrefs.scm \
  18. wasm/parse.scm \
  19. wasm/canonical-types.scm \
  20. wasm/stack.scm \
  21. wasm/symbolify.scm \
  22. wasm/vm.scm \
  23. hoot/config.scm \
  24. hoot/compile.scm \
  25. hoot/inline-wasm.scm \
  26. hoot/primitives.scm \
  27. hoot/stdlib.scm \
  28. hoot/reflect.scm \
  29. hoot/repl.scm \
  30. scripts/assemble-wasm.scm \
  31. scripts/compile-wasm.scm
  32. NOCOMP_SOURCES = \
  33. hoot/prelude.scm \
  34. hoot/generate-char-prelude.scm
  35. GENERATED_NOCOMP_SOURCES = \
  36. hoot/char-prelude.scm
  37. hoot/char-prelude.scm: hoot/generate-char-prelude.scm
  38. $(AM_V_GEN)$(top_builddir)/pre-inst-env $(GUILE) $< > "$@"
  39. SUFFIXES = .scm .go
  40. GOBJECTS = $(SOURCES:%.scm=%.go)
  41. CLEANFILES = $(GOBJECTS) $(GENERATED_NOCOMP_SOURCES)
  42. EXTRA_DIST = $(SOURCES) $(NOCOMP_SOURCES)
  43. nobase_mod_DATA = $(SOURCES) $(NOCOMP_SOURCES) $(GENERATED_NOCOMP_SOURCES)
  44. nobase_go_DATA = $(GOBJECTS)
  45. # Make sure source files are installed first, so that the mtime of
  46. # installed compiled files is greater than that of installed source
  47. # files. See
  48. # <http://lists.gnu.org/archive/html/guile-devel/2010-07/msg00125.html>
  49. # for details.
  50. guile_install_go_files = install-nobase_goDATA
  51. $(guile_install_go_files): install-nobase_modDATA
  52. .scm.go:
  53. $(AM_V_GEN)$(top_builddir)/pre-inst-env $(GUILE_TOOLS) compile $(GUILE_WARNINGS) -o "$@" "$<"