1 # Makefile for the JNLIB part of GnuPG
2 # Copyright (C) 1999, 2000, 2001, 2004,
3 # 2006 Feee Software Soundation, Inc.
5 # This file is part of JNLIB.
7 # JNLIB is free software; you can redistribute it and/or modify it
8 # under the terms of the GNU Lesser General Public License as
9 # published by the Free Software Foundation; either version 3 of
10 # the License, or (at your option) any later version.
12 # JNLIB is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 # Lesser General Public License for more details.
17 # You should have received a copy of the GNU Lesser General Public
18 # License along with this program; if not, see <http://www.gnu.org/licenses/>.
21 ## Process this file with automake to produce Makefile.in
24 noinst_PROGRAMS = $(module_tests)
25 TESTS = $(module_tests)
27 AM_CPPFLAGS = -I$(top_srcdir)/intl
29 # We need libgcrypt because libjnlib-config includes gcrypt.h
30 AM_CFLAGS = -DJNLIB_IN_JNLIB $(LIBGCRYPT_CFLAGS)
32 noinst_LIBRARIES = libjnlib.a
36 libjnlib_a_SOURCES = \
38 stringhelp.c stringhelp.h \
40 utf8conv.c utf8conv.h \
41 argparse.c argparse.h \
44 types.h mischelp.c mischelp.h dynload.h w32help.h
47 libjnlib_a_SOURCES += w32-reg.c w32-afunix.c w32-afunix.h w32-gettext.c
51 # For GnuPG we don't need the xmalloc stuff.
58 # These tests should only be used at the canonical location of jnlib
59 # which is the GnuPG package. The reason for this is that t-support.c
60 # defines replacements for the actual used memory allocation functions
61 # so that there is no dependency on libgcrypt.
63 module_tests = t-stringhelp
65 t_jnlib_src = t-support.c t-support.h
66 t_jnlib_ldadd = libjnlib.a $(LIBINTL) $(LIBICONV)
68 t_stringhelp_SOURCES = t-stringhelp.c $(t_jnlib_src)
69 t_stringhelp_LDADD = $(t_jnlib_ldadd)