2006-10-24 Marcus Brinkmann <marcus@g10code.de>
[gnupg.git] / common / Makefile.am
blob14019b69322e8ac90684dd3ec9a6e67a1ceecb7f
1 # Makefile for common gnupg modules
2 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
4 # This file is part of GnuPG.
6 # GnuPG is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
10
11 # GnuPG 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 General Public License for more details.
15
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
19 # USA.
21 ## Process this file with automake to produce Makefile.in
23 noinst_LIBRARIES = libcommon.a libcommonpth.a libsimple-pwquery.a libgpgrl.a
24 noinst_PROGRAMS = $(module_tests)
25 TESTS = $(module_tests)
27 AM_CPPFLAGS = -I$(top_srcdir)/gl
29 AM_CFLAGS = $(LIBGCRYPT_CFLAGS) $(KSBA_CFLAGS)
31 common_sources = \
32         common-defs.h \
33         util.h i18n.h \
34         errors.h \
35         openpgpdefs.h \
36         keyserver.h \
37         sexp-parse.h \
38         sexputil.c \
39         sysutils.c sysutils.h \
40         homedir.c \
41         gettime.c \
42         yesno.c \
43         b64enc.c \
44         convert.c \
45         miscellaneous.c \
46         xasprintf.c \
47         xreadline.c \
48         membuf.c membuf.h \
49         iobuf.c iobuf.h \
50         ttyio.c ttyio.h \
51         asshelp.c asshelp.h \
52         exechelp.c exechelp.h \
53         simple-gettext.c \
54         w32reg.c \
55         signal.c \
56         dynload.h \
57         estream.c estream.h \
58         srv.c srv.h \
59         dns-cert.c dns-cert.h \
60         pka.c pka.h \
61         http.c http.h 
63 libcommon_a_SOURCES = $(common_sources)
64 libcommon_a_CFLAGS = $(AM_CFLAGS) $(LIBASSUAN_CFLAGS) -DWITHOUT_GNU_PTH=1
66 libcommonpth_a_SOURCES = $(common_sources)
67 libcommonpth_a_CFLAGS = $(AM_CFLAGS) $(LIBASSUAN_PTH_CFLAGS) $(PTH_CFLAGS)
69 libsimple_pwquery_a_SOURCES = \
70         simple-pwquery.c simple-pwquery.h asshelp.c asshelp.h
71 libsimple_pwquery_a_CFLAGS = $(AM_CFLAGS) $(LIBASSUAN_CFLAGS)
73 libgpgrl_a_SOURCES = \
74         gpgrlhelp.c
77 # Module tests
79 module_tests = t-convert
81 t_common_ldadd = ../jnlib/libjnlib.a ../common/libcommon.a ../gl/libgnu.a \
82                  $(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS)
84 t_convert_DEPENDENCIES = convert.c
85 t_convert_LDADD = $(t_common_ldadd)