1 # TinyScheme-based test driver.
3 # Copyright (C) 2016 g10 Code GmbH
5 # This file is part of GnuPG.
7 # GnuPG is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 3 of the License, or
10 # (at your option) any later version.
12 # GnuPG is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, see <https://www.gnu.org/licenses/>.
30 AM_CPPFLAGS = -I$(top_srcdir)/common
31 include $(top_srcdir)/am/cmacros.am
38 noinst_PROGRAMS = t-child
40 common_libs = ../$(libcommon)
41 commonpth_libs = ../$(libcommonpth)
43 gpgscm_CFLAGS = -imacros scheme-config.h \
44 $(LIBGCRYPT_CFLAGS) $(LIBASSUAN_CFLAGS) $(GPG_ERROR_CFLAGS)
45 gpgscm_SOURCES = main.c private.h ffi.c ffi.h ffi-private.h \
46 scheme-config.h opdefines.h scheme.c scheme.h scheme-private.h
47 gpgscm_LDADD = $(LDADD) $(common_libs) \
48 $(NETLIBS) $(LIBICONV) $(LIBREADLINE) $(LIBINTL) \
49 $(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS)
51 t_child_SOURCES = t-child.c
53 # Make sure that all libs are build before we use them. This is
54 # important for things like make -j2.
55 $(PROGRAMS): $(common_libs)
57 check-local: gpgscm$(EXEEXT) t-child$(EXEEXT)
58 EXEEXT=$(EXEEXT) GPGSCM_PATH=$(srcdir) \
59 ./gpgscm$(EXEEXT) $(srcdir)/t-child.scm