agent/
[gnupg.git] / agent / Makefile.am
blobec930fe3ff4a31309618e0742766fa4b1d91c242
1 # Copyright (C) 2001, 2003, 2004, 2005 Free Software Foundation, Inc.
3 # This file is part of GnuPG.
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
19 ## Process this file with automake to produce Makefile.in
21 bin_PROGRAMS = gpg-agent
22 libexec_PROGRAMS = gpg-protect-tool gpg-preset-passphrase
23 noinst_PROGRAMS = $(TESTS)
25 AM_CPPFLAGS = -I$(top_srcdir)/gl -I$(top_srcdir)/common -I$(top_srcdir)/intl
27 include $(top_srcdir)/am/cmacros.am
29 AM_CFLAGS = $(LIBGCRYPT_CFLAGS) $(LIBASSUAN_CFLAGS) $(PTH_CFLAGS)
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
48 gpg_agent_LDADD = ../jnlib/libjnlib.a ../common/libcommon.a ../gl/libgnu.a \
49                 $(LIBGCRYPT_LIBS) $(PTH_LIBS) $(LIBASSUAN_LIBS) \
50                  -lgpg-error @LIBINTL@
52 gpg_protect_tool_SOURCES = \
53         protect-tool.c \
54         protect.c \
55         minip12.c minip12.h 
57 gpg_protect_tool_LDADD = ../common/libsimple-pwquery.a \
58         ../jnlib/libjnlib.a  ../common/libcommon.a ../gl/libgnu.a \
59          $(LIBGCRYPT_LIBS) -lgpg-error @LIBINTL@
60 if HAVE_W32_SYSTEM
61 gpg_protect_tool_LDADD += -lwsock32
62 endif
64 gpg_preset_passphrase_SOURCES = \
65         preset-passphrase.c
67 gpg_preset_passphrase_LDADD = ../common/libsimple-pwquery.a \
68         ../jnlib/libjnlib.a ../common/libcommon.a ../gl/libgnu.a \
69          $(LIBGCRYPT_LIBS) -lgpg-error @LIBINTL@
70 if HAVE_W32_SYSTEM
71 gpg_preset_passphrase_LDADD += -lwsock32
72 endif
75 # Module tests
77 TESTS = t-protect
79 t_common_ldadd = ../jnlib/libjnlib.a ../common/libcommon.a ../gl/libgnu.a \
80                  $(LIBGCRYPT_LIBS) -lgpg-error @LIBINTL@
82 t_protect_SOURCES = t-protect.c protect.c 
83 t_protect_LDADD = $(t_common_ldadd)