Debian Codegraph @

tests/Makefile.am

raw
1 # Makefile.am for libgpg-error/tests.
2 # Copyright (C) 2003 g10 Code GmbH
3 #
4 # This file is part of libgpg-error.
5 #
6 # libgpg-error is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU Lesser General Public License as
8 # published by the Free Software Foundation; either version 2.1 of the
9 # License, or (at your option) any later version.
10 #
11 # libgpg-error is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU Lesser General Public License for more details.
15 #
16 # You should have received a copy of the GNU Lesser General Public
17 # License along with this program; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
19
20 ## Process this file with automake to produce Makefile.in
21
22 EXTRA_DIST = t-argparse.conf etc/t-argparse.conf etc/Registry
23
24 gpg_error_lib = ../src/libgpg-error.la
25
26 TESTS = t-version t-strerror t-syserror t-lock t-printf t-poll t-b64 \
27 t-argparse t-logging t-stringutils t-malloc t-spawn t-strlist \
28 t-name-value
29
30 if HAVE_LOCK_OPTIMIZATION
31 TESTS += t-lock-single-posix
32 endif
33
34 AM_CPPFLAGS = -I$(top_builddir)/src
35
36 if HAVE_W32_SYSTEM
37 AM_LDFLAGS = -no-fast-install
38 else
39 AM_LDFLAGS = -no-install
40 endif
41 LDADD = $(gpg_error_lib) @LDADD_FOR_TESTS_KLUDGE@
42
43 noinst_PROGRAMS = $(TESTS)
44 noinst_HEADERS = t-common.h
45
46 t_lock_LDADD = $(LDADD) $(LIBMULTITHREAD)
47 t_poll_LDADD = $(LDADD) $(LIBMULTITHREAD)