Included LIBICONV in all Makefiles.
[gnupg.git] / agent / Makefile.am
1 # Copyright (C) 2001, 2003, 2004, 2005 Free Software Foundation, Inc.
2 #
3 # This file is part of GnuPG.
4 #
5 # GnuPG is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
9
10 # GnuPG is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
18 # USA.
19
20 ## Process this file with automake to produce Makefile.in
21
22 bin_PROGRAMS = gpg-agent
23 libexec_PROGRAMS = gpg-protect-tool gpg-preset-passphrase
24 noinst_PROGRAMS = $(TESTS)
25
26 AM_CPPFLAGS = -I$(top_srcdir)/gl -I$(top_srcdir)/common -I$(top_srcdir)/intl
27
28 include $(top_srcdir)/am/cmacros.am
29
30 AM_CFLAGS = $(LIBGCRYPT_CFLAGS) $(GPG_ERROR_CFLAGS)
31
32 gpg_agent_SOURCES = \
33         gpg-agent.c agent.h \
34         command.c command-ssh.c \
35         call-pinentry.c \
36         cache.c \
37         trans.c \
38         findkey.c \
39         pksign.c \
40         pkdecrypt.c \
41         genkey.c \
42         protect.c \
43         trustlist.c \
44         divert-scd.c \
45         call-scd.c \
46         learncard.c
47
48
49 common_libs = ../jnlib/libjnlib.a ../common/libcommon.a ../gl/libgnu.a
50 commonpth_libs = ../jnlib/libjnlib.a ../common/libcommonpth.a ../gl/libgnu.a
51 pwquery_libs = ../common/libsimple-pwquery.a
52
53 gpg_agent_CFLAGS = $(AM_CFLAGS) $(LIBASSUAN_PTH_CFLAGS) $(PTH_CFLAGS)
54 gpg_agent_LDADD = $(commonpth_libs) \
55                 $(LIBGCRYPT_LIBS) $(LIBASSUAN_PTH_LIBS) $(PTH_LIBS) \
56                 $(GPG_ERROR_LIBS) $(LIBINTL) $(NETLIBS) $(LIBICONV)
57
58 gpg_protect_tool_SOURCES = \
59         protect-tool.c \
60         protect.c \
61         minip12.c minip12.h 
62
63 # Needs $(NETLIBS) for libsimple-pwquery.la.
64 gpg_protect_tool_LDADD =  $(pwquery_libs) $(common_libs) \
65          $(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS) $(LIBINTL) $(NETLIBS) $(LIBICONV)
66
67 gpg_preset_passphrase_SOURCES = \
68         preset-passphrase.c
69
70 # Needs $(NETLIBS) for libsimple-pwquery.la.
71 gpg_preset_passphrase_LDADD =  $(pwquery_libs) $(common_libs) \
72          $(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS) $(LIBINTL) $(NETLIBS) $(LIBICONV)
73
74
75 # Make sure that all libs are build before we use them.  This is
76 # important for things like make -j2.
77 $(PROGRAMS): $(common_libs) $(commonpth_libs) $(pwquery_libs)
78
79
80 #
81 # Module tests
82 #
83 TESTS = t-protect
84
85 t_common_ldadd = $(common_libs) \
86                  $(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS) $(LIBINTL) $(LIBICONV)
87
88 t_protect_SOURCES = t-protect.c protect.c 
89 t_protect_LDADD = $(t_common_ldadd)
90
91
92
93