Blame guile/Makefile.am

Packit Service 4684c1
#  GnuTLS --- Guile bindings for GnuTLS.
Packit Service 4684c1
#  Copyright (C) 2007-2012, 2016, 2019 Free Software Foundation, Inc.
Packit Service 4684c1
#
Packit Service 4684c1
#  GnuTLS is free software; you can redistribute it and/or
Packit Service 4684c1
#  modify it under the terms of the GNU Lesser General Public
Packit Service 4684c1
#  License as published by the Free Software Foundation; either
Packit Service 4684c1
#  version 2.1 of the License, or (at your option) any later version.
Packit Service 4684c1
#
Packit Service 4684c1
#  GnuTLS is distributed in the hope that it will be useful,
Packit Service 4684c1
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 4684c1
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service 4684c1
#  Lesser General Public License for more details.
Packit Service 4684c1
#
Packit Service 4684c1
#  You should have received a copy of the GNU Lesser General Public
Packit Service 4684c1
#  License along with GnuTLS; if not, write to the Free Software
Packit Service 4684c1
#  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
Packit Service 4684c1
Packit Service 4684c1
# First of all, built the DSO.  We cannot compile the Scheme code until this
Packit Service 4684c1
# is done.
Packit Service 4684c1
SUBDIRS = src
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
EXTRA_DIST = .dir-locals.el
Packit Service 4684c1
Packit Service 4684c1
guilesitesubdir = $(guilesitedir)/gnutls
Packit Service 4684c1
Packit Service 4684c1
nodist_guilesite_DATA = modules/gnutls.scm
Packit Service 4684c1
dist_guilesitesub_DATA = modules/gnutls/extra.scm
Packit Service 4684c1
Packit Service 4684c1
documentation_modules =				\
Packit Service 4684c1
  modules/system/documentation/README		\
Packit Service 4684c1
  modules/system/documentation/c-snarf.scm	\
Packit Service 4684c1
  modules/system/documentation/output.scm
Packit Service 4684c1
Packit Service 4684c1
helper_modules =				\
Packit Service 4684c1
  modules/gnutls/build/enums.scm		\
Packit Service 4684c1
  modules/gnutls/build/smobs.scm		\
Packit Service 4684c1
  modules/gnutls/build/utils.scm		\
Packit Service 4684c1
  modules/gnutls/build/tests.scm
Packit Service 4684c1
Packit Service 4684c1
EXTRA_DIST += modules/gnutls.in $(helper_modules) $(documentation_modules)
Packit Service 4684c1
Packit Service 4684c1
CLEANFILES = modules/gnutls.scm
Packit Service 4684c1
Packit Service 4684c1
.in.scm:
Packit Service 4684c1
	$(AM_V_GEN)$(MKDIR_P) "`dirname "$@"`" ; cat "$^" |		\
Packit Service 4684c1
	  $(SED) -e's|[@]maybe_guileextensiondir[@]|$(maybe_guileextensiondir)|g' \
Packit Service 4684c1
	  > "$@.tmp"
Packit Service 4684c1
	$(AM_V_at)mv "$@.tmp" "$@"
Packit Service 4684c1
Packit Service 4684c1

Packit Service 4684c1
#
Packit Service 4684c1
# Scheme code compilation.
Packit Service 4684c1
#
Packit Service 4684c1
Packit Service 4684c1
if HAVE_GUILD
Packit Service 4684c1
Packit Service 4684c1
guilesiteccachesubdir = $(guilesiteccachedir)/gnutls
Packit Service 4684c1
nodist_guilesiteccache_DATA = modules/gnutls.go
Packit Service 4684c1
nodist_guilesiteccachesub_DATA = modules/gnutls/extra.go
Packit Service 4684c1
Packit Service 4684c1
GOBJECTS =					\
Packit Service 4684c1
  $(nodist_guilesiteccache_DATA)		\
Packit Service 4684c1
  $(nodist_guilesiteccachesub_DATA)
Packit Service 4684c1
Packit Service 4684c1
CLEANFILES += $(GOBJECTS)
Packit Service 4684c1
Packit Service 4684c1
AM_V_GUILEC = $(AM_V_GUILEC_$(V))
Packit Service 4684c1
AM_V_GUILEC_ = $(AM_V_GUILEC_$(AM_DEFAULT_VERBOSITY))
Packit Service 4684c1
AM_V_GUILEC_0 = @echo "  GUILEC  " $@;
Packit Service 4684c1
Packit Service 4684c1
if CROSS_COMPILING
Packit Service 4684c1
CROSS_COMPILING_VARIABLE = GNUTLS_GUILE_CROSS_COMPILING=yes
Packit Service 4684c1
else
Packit Service 4684c1
CROSS_COMPILING_VARIABLE =
Packit Service 4684c1
endif
Packit Service 4684c1
Packit Service 4684c1
# Make sure 'gnutls.scm' is built first.
Packit Service 4684c1
# Unset 'GUILE_LOAD_COMPILED_PATH' so we can be sure that any .go file that we
Packit Service 4684c1
# load comes from the build directory.
Packit Service 4684c1
# XXX: Use the C locale for when Guile lacks
Packit Service 4684c1
# <https://git.sv.gnu.org/cgit/guile.git/commit/?h=stable-2.0&id=e2c6bf3866d1186c60bacfbd4fe5037087ee5e3f>.
Packit Service 4684c1
%.go: %.scm modules/gnutls.scm
Packit Service 4684c1
	$(AM_V_GUILEC)$(MKDIR_P) "`dirname "$@"`" ;			\
Packit Service 4684c1
	$(AM_V_P) && out=1 || out=- ;					\
Packit Service 4684c1
	unset GUILE_LOAD_COMPILED_PATH ; LC_ALL=C			\
Packit Service 4684c1
	GUILE_AUTO_COMPILE=0 $(CROSS_COMPILING_VARIABLE)		\
Packit Service 4684c1
	GNUTLS_GUILE_EXTENSION_DIR="$(abs_top_builddir)/guile/src"	\
Packit Service 4684c1
	$(GUILD) compile --target="$(host)"				\
Packit Service 4684c1
	  -L "$(top_builddir)/guile/modules"				\
Packit Service 4684c1
	  -L "$(top_srcdir)/guile/modules"				\
Packit Service 4684c1
	  -Wformat -Wunbound-variable -Warity-mismatch			\
Packit Service 4684c1
	  -o "$@" "$<" >&$$out
Packit Service 4684c1
Packit Service 4684c1
SUFFIXES = .go
Packit Service 4684c1
Packit Service 4684c1
endif HAVE_GUILD
Packit Service 4684c1
Packit Service 4684c1

Packit Service 4684c1
#
Packit Service 4684c1
# Tests.
Packit Service 4684c1
#
Packit Service 4684c1
Packit Service 4684c1
TESTS =						\
Packit Service 4684c1
  tests/anonymous-auth.scm			\
Packit Service 4684c1
  tests/session-record-port.scm			\
Packit Service 4684c1
  tests/pkcs-import-export.scm			\
Packit Service 4684c1
  tests/errors.scm				\
Packit Service 4684c1
  tests/x509-certificates.scm			\
Packit Service 4684c1
  tests/x509-auth.scm				\
Packit Service 4684c1
  tests/reauth.scm				\
Packit Service 4684c1
  tests/priorities.scm
Packit Service 4684c1
Packit Service 4684c1
if ENABLE_SRP
Packit Service 4684c1
TESTS +=					\
Packit Service 4684c1
  tests/srp-base64.scm
Packit Service 4684c1
endif
Packit Service 4684c1
Packit Service 4684c1
TESTS_ENVIRONMENT =				\
Packit Service 4684c1
  GUILE_AUTO_COMPILE=0				\
Packit Service 4684c1
  GUILE_WARN_DEPRECATED=detailed
Packit Service 4684c1
Packit Service 4684c1
LOG_COMPILER = $(top_builddir)/guile/pre-inst-guile -L $(srcdir)/tests
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
EXTRA_DIST +=					\
Packit Service 4684c1
  $(TESTS)					\
Packit Service 4684c1
  tests/rsa-parameters.pem			\
Packit Service 4684c1
  tests/dh-parameters.pem			\
Packit Service 4684c1
  tests/x509-certificate.pem			\
Packit Service 4684c1
  tests/x509-key.pem