Makefile.am 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. ## Config file for GNU Automake.
  2. ##
  3. ## Copyright (C) 2014, 2015, 2016 Artyom V. Poptsov <poptsov.artyom@gmail.com>
  4. ##
  5. ## This file is part of Guile-SSH.
  6. ##
  7. ## Guile-SSH is free software: you can redistribute it and/or
  8. ## modify it under the terms of the GNU General Public License as
  9. ## published by the Free Software Foundation, either version 3 of the
  10. ## License, or (at your option) any later version.
  11. ##
  12. ## Guile-SSH is distributed in the hope that it will be useful, but
  13. ## WITHOUT ANY WARRANTY; without even the implied warranty of
  14. ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. ## General Public License for more details.
  16. ##
  17. ## You should have received a copy of the GNU General Public License
  18. ## along with Guile-SSH. If not, see <http://www.gnu.org/licenses/>.
  19. include $(top_srcdir)/am/guilec
  20. SCM_TESTS = \
  21. log.scm \
  22. server.scm \
  23. session.scm \
  24. client-server.scm \
  25. popen.scm \
  26. shell.scm \
  27. server-client.scm \
  28. sssh-ssshd.scm \
  29. key.scm \
  30. tunnel.scm \
  31. dist.scm
  32. TESTS = ${SCM_TESTS}
  33. TEST_EXTENSIONS = .scm
  34. AM_TESTS_ENVIRONMENT = \
  35. abs_top_srcdir="$(abs_top_srcdir)"; export abs_top_srcdir; \
  36. abs_top_builddir="$(abs_top_builddir)"; export abs_top_builddir; \
  37. ORIGTERM=${TERM}; export ORIGTERM; \
  38. TERM=xterm; export TERM; \
  39. GUILE_AUTO_COMPILE=0; export GUILE_AUTO_COMPILE;
  40. # LOG_COMPILER was introduced in Automake 1.12; don't expect "make
  41. # check" or "make distcheck" to work with earlier versions.
  42. SCM_LOG_COMPILER = \
  43. ${top_builddir}/libtool \
  44. -dlopen ${top_builddir}/libguile-ssh/libguile-ssh.la \
  45. --mode=execute $(GUILE)
  46. AM_SCM_LOG_FLAGS = \
  47. -L "$(top_srcdir)" \
  48. -L "$(top_srcdir)/modules" \
  49. -s
  50. EXTRA_DIST = \
  51. ${SCM_TESTS} \
  52. common.scm \
  53. keys/dsakey \
  54. keys/dsakey.pub \
  55. keys/ecdsakey \
  56. keys/ecdsakey.pub \
  57. keys/rsakey \
  58. keys/rsakey.pub \
  59. config
  60. ### Compile modules
  61. GOBJECTS = common.go
  62. ccachedir=$(libdir)/guile/$(GUILE_EFFECTIVE_VERSION)/site-ccache/ssh
  63. nobase_dist_ccache_DATA = $(GOBJECTS)
  64. guilec_warnings = \
  65. -Wunbound-variable -Warity-mismatch \
  66. -Wunused-variable -Wunused-toplevel
  67. guilec_opts = \
  68. $(guilec_warnings)
  69. # TODO: Move environment setup to a separate file.
  70. guilec_env = \
  71. GUILE_AUTO_COMPILE=0 \
  72. LD_LIBRARY_PATH="$(abs_top_builddir)/libguile-ssh/.libs/:${LD_LIBRARY_PATH}" \
  73. GUILE_LOAD_PATH="$(abs_top_srcdir)/modules" \
  74. GUILE_LOAD_COMPILED_PATH="$(builddir)/ssh:$$GUILE_LOAD_COMPILED_PATH"
  75. .scm.go:
  76. $(AM_V_GUILEC)$(guilec_env) $(GUILEC) $(guilec_opts) \
  77. --output=$@ $<
  78. ###
  79. CLEANFILES = \
  80. client-server-errors.log \
  81. client-server-libssh.log \
  82. dist-errors.log \
  83. dist-libssh.log \
  84. key-errors.log \
  85. key-libssh.log \
  86. popen-errors.log \
  87. popen-libssh.log \
  88. server-client-errors.log \
  89. server-client-libssh.log \
  90. server-errors.log \
  91. server-libssh.log \
  92. session-errors.log \
  93. session-libssh.log \
  94. tunnel-errors.log \
  95. tunnel-libssh.log \
  96. $(GOBJECTS)