## Copyright (C) 2013, 2014, 2015 Artyom V. Poptsov ## ## 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 . include $(top_srcdir)/am/guilec SUBDIRS = dist SCM_SOURCES = \ auth.scm channel.scm key.scm session.scm \ server.scm message.scm version.scm log.scm \ tunnel.scm dist.scm sftp.scm popen.scm \ shell.scm pkgguilesitedir = $(guilesitedir)/ssh nobase_dist_pkgguilesite_DATA = $(SCM_SOURCES) ETAGS_ARGS = auth.scm channel.scm key.scm session.scm server.scm \ message.scm version.scm popen.scm GOBJECTS = $(SCM_SOURCES:%.scm=%.go) $(GOBJECTS): $(lib_LTLIBRARIES) # Build the library first ccachedir=$(libdir)/guile/$(GUILE_EFFECTIVE_VERSION)/site-ccache/ssh nobase_dist_ccache_DATA = $(GOBJECTS) # Make sure source files are installed first, so that the mtime of # installed compiled files is greater than that of installed source # files. See # # for details. guile_ssh_install_go_files = install-nobase_dist_ccacheDATA $(guile_ssh_install_go_files): install-nobase_dist_pkgguilesiteDATA guilec_warnings = \ -Wunbound-variable -Warity-mismatch \ -Wunused-variable -Wunused-toplevel guilec_opts = \ --load-path=$(abs_srcdir)/modules \ --load-path=$(abs_builddir)/modules \ --target=$(host) \ $(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) # Handy way to remove the .go files without removing all the rest. clean-go: @cd dist; make clean-go -$(RM) -f $(GOBJECTS) .PHONY: clean-go ## Makefile.am ends here.