2006-09-06 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., 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) $(GPG_ERROR_CFLAGS) \
31         $(PTH_CFLAGS)
32
33 gpg_agent_SOURCES = \
34         gpg-agent.c agent.h \
35         command.c command-ssh.c \
36         call-pinentry.c \
37         cache.c \
38         trans.c \
39         findkey.c \
40         pksign.c \
41         pkdecrypt.c \
42         genkey.c \
43         protect.c \
44         trustlist.c \
45         divert-scd.c \
46         call-scd.c \
47         learncard.c
48
49
50 gpg_agent_LDADD = ../jnlib/libjnlib.a ../common/libcommon.a ../gl/libgnu.a \
51                 $(LIBGCRYPT_LIBS) $(PTH_LIBS) $(LIBASSUAN_LIBS) \
52                 $(GPG_ERROR_LIBS) @LIBINTL@ $(NETLIBS)
53
54 gpg_protect_tool_SOURCES = \
55         protect-tool.c \
56         protect.c \
57         minip12.c minip12.h 
58
59 # Needs $(NETLIBS) for libsimple-pwquery.la.
60 gpg_protect_tool_LDADD = ../common/libsimple-pwquery.a \
61         ../jnlib/libjnlib.a  ../common/libcommon.a ../gl/libgnu.a \
62          $(LIBGCRYPT_LIBS) -lgpg-error @LIBINTL@ $(NETLIBS)
63 if HAVE_W32_SYSTEM
64 gpg_protect_tool_LDADD += -lwsock32
65 endif
66
67 gpg_preset_passphrase_SOURCES = \
68         preset-passphrase.c
69
70 # Needs $(NETLIBS) for libsimple-pwquery.la.
71 gpg_preset_passphrase_LDADD = ../common/libsimple-pwquery.a \
72         ../jnlib/libjnlib.a ../common/libcommon.a ../gl/libgnu.a \
73          $(LIBGCRYPT_LIBS) -lgpg-error @LIBINTL@ $(NETLIBS)
74 if HAVE_W32_SYSTEM
75 gpg_preset_passphrase_LDADD += -lwsock32
76 endif
77
78 #
79 # Module tests
80 #
81 TESTS = t-protect
82
83 t_common_ldadd = ../jnlib/libjnlib.a ../common/libcommon.a ../gl/libgnu.a \
84                  $(LIBGCRYPT_LIBS) -lgpg-error @LIBINTL@
85
86 t_protect_SOURCES = t-protect.c protect.c 
87 t_protect_LDADD = $(t_common_ldadd)
88
89
90
91