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.
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, write to the Free Software
17 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
20 ## Process this file with automake to produce Makefile.in
22 bin_PROGRAMS = gpg-agent
23 libexec_PROGRAMS = gpg-protect-tool gpg-preset-passphrase
24 noinst_PROGRAMS = $(TESTS)
26 AM_CPPFLAGS = -I$(top_srcdir)/gl -I$(top_srcdir)/common -I$(top_srcdir)/intl
28 include $(top_srcdir)/am/cmacros.am
30 AM_CFLAGS = $(LIBGCRYPT_CFLAGS) $(GPG_ERROR_CFLAGS)
34 command.c command-ssh.c \
49 common_libs = ../jnlib/libjnlib.a ../common/libcommon.a ../gl/libgnu.a
50 commonpth_libs = ../jnlib/libjnlib.a ../common/libcommonpth.a ../gl/libgnu.a
51 pwquery_libs = ../common/libsimple-pwquery.a
53 gpg_agent_CFLAGS = $(AM_CFLAGS) $(LIBASSUAN_PTH_CFLAGS) $(PTH_CFLAGS)
54 gpg_agent_LDADD = $(commonpth_libs) \
55 $(LIBGCRYPT_LIBS) $(LIBASSUAN_PTH_LIBS) $(PTH_LIBS) \
56 $(GPG_ERROR_LIBS) $(LIBINTL) $(NETLIBS) $(LIBICONV)
58 gpg_protect_tool_SOURCES = \
63 # Needs $(NETLIBS) for libsimple-pwquery.la.
64 gpg_protect_tool_LDADD = $(pwquery_libs) $(common_libs) \
65 $(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS) $(LIBINTL) $(NETLIBS) $(LIBICONV)
67 gpg_preset_passphrase_SOURCES = \
70 # Needs $(NETLIBS) for libsimple-pwquery.la.
71 gpg_preset_passphrase_LDADD = $(pwquery_libs) $(common_libs) \
72 $(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS) $(LIBINTL) $(NETLIBS) $(LIBICONV)
75 # Make sure that all libs are build before we use them. This is
76 # important for things like make -j2.
77 $(PROGRAMS): $(common_libs) $(commonpth_libs) $(pwquery_libs)
85 t_common_ldadd = $(common_libs) \
86 $(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS) $(LIBINTL)
88 t_protect_SOURCES = t-protect.c protect.c
89 t_protect_LDADD = $(t_common_ldadd)