2006-06-09 Marcus Brinkmann <marcus@g10code.de>
[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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
18
19 ## Process this file with automake to produce Makefile.in
20
21 bin_PROGRAMS = gpg-agent
22 libexec_PROGRAMS = gpg-protect-tool gpg-preset-passphrase
23 noinst_PROGRAMS = $(TESTS)
24
25 AM_CPPFLAGS = -I$(top_srcdir)/gl -I$(top_srcdir)/common -I$(top_srcdir)/intl
26
27 include $(top_srcdir)/am/cmacros.am
28
29 AM_CFLAGS = $(LIBGCRYPT_CFLAGS) $(LIBASSUAN_CFLAGS) $(PTH_CFLAGS)
30
31 gpg_agent_SOURCES = \
32         gpg-agent.c agent.h \
33         command.c command-ssh.c \
34         query.c \
35         cache.c \
36         trans.c \
37         findkey.c \
38         pksign.c \
39         pkdecrypt.c \
40         genkey.c \
41         protect.c \
42         trustlist.c \
43         divert-scd.c \
44         call-scd.c \
45         learncard.c
46
47
48 gpg_agent_LDADD = ../jnlib/libjnlib.a ../common/libcommon.a ../gl/libgnu.a \
49                 $(LIBGCRYPT_LIBS) $(PTH_LIBS) $(LIBASSUAN_LIBS) \
50                  -lgpg-error @LIBINTL@ $(NETLIBS)
51
52 gpg_protect_tool_SOURCES = \
53         protect-tool.c \
54         protect.c \
55         minip12.c minip12.h 
56
57 # Needs $(NETLIBS) for libsimple-pwquery.la.
58 gpg_protect_tool_LDADD = ../common/libsimple-pwquery.a \
59         ../jnlib/libjnlib.a  ../common/libcommon.a ../gl/libgnu.a \
60          $(LIBGCRYPT_LIBS) -lgpg-error @LIBINTL@ $(NETLIBS)
61 if HAVE_W32_SYSTEM
62 gpg_protect_tool_LDADD += -lwsock32
63 endif
64
65 gpg_preset_passphrase_SOURCES = \
66         preset-passphrase.c
67
68 # Needs $(NETLIBS) for libsimple-pwquery.la.
69 gpg_preset_passphrase_LDADD = ../common/libsimple-pwquery.a \
70         ../jnlib/libjnlib.a ../common/libcommon.a ../gl/libgnu.a \
71          $(LIBGCRYPT_LIBS) -lgpg-error @LIBINTL@ $(NETLIBS)
72 if HAVE_W32_SYSTEM
73 gpg_preset_passphrase_LDADD += -lwsock32
74 endif
75
76 #
77 # Module tests
78 #
79 TESTS = t-protect
80
81 t_common_ldadd = ../jnlib/libjnlib.a ../common/libcommon.a ../gl/libgnu.a \
82                  $(LIBGCRYPT_LIBS) -lgpg-error @LIBINTL@
83
84 t_protect_SOURCES = t-protect.c protect.c 
85 t_protect_LDADD = $(t_common_ldadd)
86
87
88
89