diff options
| -rw-r--r-- | configure.ac | 1 | ||||
| -rw-r--r-- | modules/Makefile.am | 2 | ||||
| -rw-r--r-- | modules/srfi/Makefile.am | 46 |
3 files changed, 48 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index ff767e4..9faeab6 100644 --- a/configure.ac +++ b/configure.ac @@ -79,6 +79,7 @@ AC_SUBST(GUILE_EFFECTIVE_VERSION) AC_CONFIG_FILES([Makefile libguile-ssh/Makefile examples/Makefile build-aux/Makefile]) AC_CONFIG_FILES([m4/Makefile doc/Makefile tests/Makefile am/Makefile]) AC_CONFIG_FILES([modules/Makefile modules/ssh/Makefile modules/ssh/dist/Makefile]) +AC_CONFIG_FILES([modules/srfi/Makefile]) # Generate a Makefile, based on the results. AC_OUTPUT diff --git a/modules/Makefile.am b/modules/Makefile.am index e8f42ba..5865907 100644 --- a/modules/Makefile.am +++ b/modules/Makefile.am @@ -15,7 +15,7 @@ ## You should have received a copy of the GNU General Public License ## along with Guile-SSH. If not, see <http://www.gnu.org/licenses/>. -SUBDIRS = ssh +SUBDIRS = ssh srfi EXTRA_DIST = \ srfi/srfi-64.scm \ diff --git a/modules/srfi/Makefile.am b/modules/srfi/Makefile.am new file mode 100644 index 0000000..a7038be --- /dev/null +++ b/modules/srfi/Makefile.am @@ -0,0 +1,46 @@ +## Config file for GNU Automake. +## +## Copyright (C) 2016 Artyom V. Poptsov <poptsov.artyom@gmail.com> +## +## This file is part of Guile-SSH. +## +## Guile-SSH is free software: you can redistribute it and/or +## modify it under the terms of the GNU General Public License as +## published by the Free Software Foundation, either version 3 of the +## License, or (at your option) any later version. +## +## Guile-SSH is distributed in the hope that it will be useful, but +## WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +## General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with Guile-SSH. If not, see <http://www.gnu.org/licenses/>. + +include $(top_srcdir)/am/guilec + +GOBJECTS = srfi-64.upstream.go srfi-64.go + +ccachedir=$(libdir)/guile/$(GUILE_EFFECTIVE_VERSION)/site-ccache/ssh +nobase_dist_ccache_DATA = $(GOBJECTS) + +guilec_warnings = \ + -Wunbound-variable -Warity-mismatch \ + -Wunused-variable -Wunused-toplevel + +guilec_opts = \ + $(guilec_warnings) + +# TODO: Move environment setup to a separate file. +guilec_env = \ + GUILE_AUTO_COMPILE=0 \ + LD_LIBRARY_PATH="$(abs_top_builddir)/libguile-ssh/.libs/:${LD_LIBRARY_PATH}" \ + GUILE_LOAD_PATH="$(abs_top_srcdir)/modules" \ + GUILE_LOAD_COMPILED_PATH="$(builddir)/ssh:$$GUILE_LOAD_COMPILED_PATH" + +.scm.go: + $(AM_V_GUILEC)$(guilec_env) $(GUILEC) $(guilec_opts) \ + --output=$@ $< + +CLEANFILES = \ + $(GOBJECTS) |
