chiark / gitweb /
gnupg2 (2.1.17-3) unstable; urgency=medium
[gnupg2.git] / tests / gpgscm / Makefile.am
1 # TinyScheme-based test driver.
2 #
3 # Copyright (C) 2016 g10 Code GmbH
4 #
5 # This file is part of GnuPG.
6 #
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.
11 #
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.
16 #
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/>.
19
20 EXTRA_DIST = \
21         LICENSE.TinySCHEME \
22         Manual.txt \
23         ffi.scm \
24         init.scm \
25         lib.scm \
26         repl.scm \
27         t-child.scm \
28         tests.scm
29
30 AM_CPPFLAGS = -I$(top_srcdir)/common
31 include $(top_srcdir)/am/cmacros.am
32
33 AM_CFLAGS =
34
35 CLEANFILES =
36
37 bin_PROGRAMS = gpgscm
38 noinst_PROGRAMS = t-child
39
40 common_libs = ../$(libcommon)
41 commonpth_libs = ../$(libcommonpth)
42
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)
50
51 t_child_SOURCES = t-child.c
52
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)
56
57 check-local: gpgscm$(EXEEXT) t-child$(EXEEXT)
58         EXEEXT=$(EXEEXT) GPGSCM_PATH=$(srcdir) \
59                 ./gpgscm$(EXEEXT) $(srcdir)/t-child.scm