Moved 1.9 branch to trunk
[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) $(LIBASSUAN_CFLAGS) $(PTH_CFLAGS)
31
32 gpg_agent_SOURCES = \
33         gpg-agent.c agent.h \
34         command.c command-ssh.c \
35         query.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 gpg_agent_LDADD = ../jnlib/libjnlib.a ../common/libcommon.a ../gl/libgnu.a \
50                 $(LIBGCRYPT_LIBS) $(PTH_LIBS) $(LIBASSUAN_LIBS) \
51                  -lgpg-error @LIBINTL@ $(NETLIBS)
52
53 gpg_protect_tool_SOURCES = \
54         protect-tool.c \
55         protect.c \
56         minip12.c minip12.h 
57
58 # Needs $(NETLIBS) for libsimple-pwquery.la.
59 gpg_protect_tool_LDADD = ../common/libsimple-pwquery.a \
60         ../jnlib/libjnlib.a  ../common/libcommon.a ../gl/libgnu.a \
61          $(LIBGCRYPT_LIBS) -lgpg-error @LIBINTL@ $(NETLIBS)
62 if HAVE_W32_SYSTEM
63 gpg_protect_tool_LDADD += -lwsock32
64 endif
65
66 gpg_preset_passphrase_SOURCES = \
67         preset-passphrase.c
68
69 # Needs $(NETLIBS) for libsimple-pwquery.la.
70 gpg_preset_passphrase_LDADD = ../common/libsimple-pwquery.a \
71         ../jnlib/libjnlib.a ../common/libcommon.a ../gl/libgnu.a \
72          $(LIBGCRYPT_LIBS) -lgpg-error @LIBINTL@ $(NETLIBS)
73 if HAVE_W32_SYSTEM
74 gpg_preset_passphrase_LDADD += -lwsock32
75 endif
76
77 #
78 # Module tests
79 #
80 TESTS = t-protect
81
82 t_common_ldadd = ../jnlib/libjnlib.a ../common/libcommon.a ../gl/libgnu.a \
83                  $(LIBGCRYPT_LIBS) -lgpg-error @LIBINTL@
84
85 t_protect_SOURCES = t-protect.c protect.c 
86 t_protect_LDADD = $(t_common_ldadd)
87
88
89
90