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 3 of the License, or
8 # (at your option) any later version.
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.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, see <https://www.gnu.org/licenses/>.
18 ## Process this file with automake to produce Makefile.in
20 bin_PROGRAMS = gpg-agent
21 libexec_PROGRAMS = gpg-protect-tool
23 # fixme: Do no use simple-pwquery for preset-passphrase.
24 libexec_PROGRAMS += gpg-preset-passphrase
26 noinst_PROGRAMS = $(TESTS)
28 EXTRA_DIST = ChangeLog-2011 gpg-agent-w32info.rc
31 AM_CPPFLAGS = -I$(top_srcdir)/common
33 include $(top_srcdir)/am/cmacros.am
36 resource_objs += gpg-agent-w32info.o
39 AM_CFLAGS = $(LIBGCRYPT_CFLAGS) $(GPG_ERROR_CFLAGS)
43 command.c command-ssh.c \
54 cvt-openpgp.c cvt-openpgp.h \
58 common_libs = $(libcommon)
59 commonpth_libs = $(libcommonpth)
63 pwquery_libs = ../common/libsimple-pwquery.a
67 gpg_agent_CFLAGS = $(AM_CFLAGS) $(LIBASSUAN_CFLAGS) $(NPTH_CFLAGS) \
69 gpg_agent_LDADD = $(commonpth_libs) \
70 $(LIBGCRYPT_LIBS) $(LIBASSUAN_LIBS) $(NPTH_LIBS) \
71 $(GPG_ERROR_LIBS) $(LIBINTL) $(NETLIBS) $(LIBICONV) \
73 gpg_agent_LDFLAGS = $(extra_bin_ldflags)
74 gpg_agent_DEPENDENCIES = $(resource_objs)
76 gpg_protect_tool_SOURCES = \
78 protect.c cvt-openpgp.c
80 gpg_protect_tool_CFLAGS = $(AM_CFLAGS) $(LIBASSUAN_CFLAGS) \
82 gpg_protect_tool_LDADD = $(common_libs) $(LIBGCRYPT_LIBS) $(LIBASSUAN_LIBS) \
83 $(GPG_ERROR_LIBS) $(LIBINTL) $(NETLIBS) $(LIBICONV)
85 gpg_preset_passphrase_SOURCES = \
88 # Needs $(NETLIBS) for libsimple-pwquery.la.
89 gpg_preset_passphrase_LDADD = \
90 $(pwquery_libs) $(common_libs) $(LIBASSUAN_LIBS) \
91 $(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS) $(LIBINTL) $(NETLIBS) $(LIBICONV)
94 # Make sure that all libs are build before we use them. This is
95 # important for things like make -j2.
96 $(PROGRAMS): $(common_libs) $(commonpth_libs) $(pwquery_libs)
105 t_common_ldadd = $(common_libs) $(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS) \
106 $(LIBINTL) $(LIBICONV) $(NETLIBS)
108 t_protect_SOURCES = t-protect.c protect.c
109 t_protect_LDADD = $(t_common_ldadd)