2005-01-26 22:20:21 +00:00
|
|
|
# Copyright (C) 2001, 2003, 2004, 2005 Free Software Foundation, Inc.
|
2003-08-05 17:11:04 +00:00
|
|
|
#
|
|
|
|
# This file is part of GnuPG.
|
|
|
|
#
|
|
|
|
# GnuPG is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
2007-07-04 19:49:40 +00:00
|
|
|
# the Free Software Foundation; either version 3 of the License, or
|
2003-08-05 17:11:04 +00:00
|
|
|
# (at your option) any later version.
|
2011-02-04 12:57:53 +01:00
|
|
|
#
|
2003-08-05 17:11:04 +00:00
|
|
|
# GnuPG is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
2011-02-04 12:57:53 +01:00
|
|
|
#
|
2003-08-05 17:11:04 +00:00
|
|
|
# You should have received a copy of the GNU General Public License
|
2016-11-05 12:02:19 +01:00
|
|
|
# along with this program; if not, see <https://www.gnu.org/licenses/>.
|
2003-08-05 17:11:04 +00:00
|
|
|
|
|
|
|
## Process this file with automake to produce Makefile.in
|
|
|
|
|
|
|
|
bin_PROGRAMS = gpg-agent
|
2010-04-14 14:39:16 +00:00
|
|
|
libexec_PROGRAMS = gpg-protect-tool
|
|
|
|
# fixme: Do no use simple-pwquery for preset-passphrase.
|
|
|
|
libexec_PROGRAMS += gpg-preset-passphrase
|
2005-06-29 14:12:18 +00:00
|
|
|
noinst_PROGRAMS = $(TESTS)
|
2004-02-12 09:27:36 +00:00
|
|
|
|
2017-03-20 10:30:08 +01:00
|
|
|
EXTRA_DIST = ChangeLog-2011 gpg-agent-w32info.rc all-tests.scm
|
2011-12-01 10:51:36 +01:00
|
|
|
|
2007-06-14 17:05:07 +00:00
|
|
|
|
agent: Resolve conflict of util.h.
* agent/Makefile.am (AM_CPPFLAGS): Remove -I$(top_srcdir)/common.
* agent/call-pinentry.c, agent/call-scd.c: Follow the change.
* agent/command-ssh.c, agent/command.c, agent/cvt-openpgp.c: Ditto.
* agent/divert-scd.c, agent/findkey.c, agent/genkey.c: Ditto.
* agent/gpg-agent.c, agent/pksign.c, agent/preset-passphrase.c: Ditto.
* agent/protect-tool.c, agent/protect.c, agent/trustlist.c: Ditto.
* agent/w32main.c: Ditto.
--
For openpty function, we need to include util.h on some OS.
We also have util.h in common/, so this change is needed.
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
2017-03-07 19:22:48 +09:00
|
|
|
AM_CPPFLAGS =
|
2004-02-12 09:27:36 +00:00
|
|
|
|
|
|
|
include $(top_srcdir)/am/cmacros.am
|
2003-08-05 17:11:04 +00:00
|
|
|
|
2013-04-25 12:00:16 +01:00
|
|
|
if HAVE_W32_SYSTEM
|
|
|
|
resource_objs += gpg-agent-w32info.o
|
|
|
|
endif
|
|
|
|
|
2006-10-17 14:34:42 +00:00
|
|
|
AM_CFLAGS = $(LIBGCRYPT_CFLAGS) $(GPG_ERROR_CFLAGS)
|
2003-08-05 17:11:04 +00:00
|
|
|
|
2021-03-09 13:50:29 -08:00
|
|
|
if HAVE_LIBTSS
|
|
|
|
tpm2_sources = divert-tpm2.c call-tpm2d.c
|
|
|
|
else
|
|
|
|
tpm2_sources =
|
|
|
|
endif
|
|
|
|
|
2003-08-05 17:11:04 +00:00
|
|
|
gpg_agent_SOURCES = \
|
|
|
|
gpg-agent.c agent.h \
|
2005-01-26 22:20:21 +00:00
|
|
|
command.c command-ssh.c \
|
2006-09-06 16:35:52 +00:00
|
|
|
call-pinentry.c \
|
2003-08-05 17:11:04 +00:00
|
|
|
cache.c \
|
|
|
|
trans.c \
|
|
|
|
findkey.c \
|
2020-06-05 10:35:33 +09:00
|
|
|
sexp-secret.c \
|
2003-08-05 17:11:04 +00:00
|
|
|
pksign.c \
|
|
|
|
pkdecrypt.c \
|
|
|
|
genkey.c \
|
|
|
|
protect.c \
|
|
|
|
trustlist.c \
|
|
|
|
divert-scd.c \
|
2023-03-09 14:38:19 +09:00
|
|
|
divert-tkd.c \
|
2010-08-31 15:58:39 +00:00
|
|
|
cvt-openpgp.c cvt-openpgp.h \
|
2003-08-05 17:11:04 +00:00
|
|
|
call-scd.c \
|
2023-03-09 14:38:19 +09:00
|
|
|
call-tkd.c \
|
2020-06-24 12:44:02 +02:00
|
|
|
call-daemon.c \
|
2021-03-09 13:50:29 -08:00
|
|
|
$(tpm2_sources) \
|
2004-01-27 16:40:42 +00:00
|
|
|
learncard.c
|
2003-08-05 17:11:04 +00:00
|
|
|
|
2014-11-11 10:13:10 +01:00
|
|
|
common_libs = $(libcommon)
|
|
|
|
commonpth_libs = $(libcommonpth)
|
2006-09-20 11:01:49 +00:00
|
|
|
pwquery_libs = ../common/libsimple-pwquery.a
|
|
|
|
|
2007-06-14 17:05:07 +00:00
|
|
|
|
2016-09-30 12:34:31 +02:00
|
|
|
gpg_agent_CFLAGS = $(AM_CFLAGS) $(LIBASSUAN_CFLAGS) $(NPTH_CFLAGS) \
|
|
|
|
$(INCICONV)
|
2006-10-17 14:34:42 +00:00
|
|
|
gpg_agent_LDADD = $(commonpth_libs) \
|
Port to npth.
* configure.ac: Don't check for PTH but for NPTH.
(AH_BOTTOM): Remove PTH_SYSCALL_SOFT.
(have_pth): Rename to ...
(have_npth): ... this.
(USE_GNU_NPTH): Rename to ...
(USE_GNU_PTH): ... this.
* m4/npth.m4: New file.
* agent/Makefile.am, agent/cache.c, agent/call-pinentry.c,
agent/call-scd.c, agent/findkey.c, agent/gpg-agent.c,
agent/trustlist.c, common/Makefile.am, common/estream.c,
common/exechelp-posix.c, common/exechelp-w32.c,
common/exechelp-w32ce.c, common/http.c, common/init.c,
common/sysutils.c, dirmngr/Makefile.am, dirmngr/crlfetch.c,
dirmngr/dirmngr.c, dirmngr/dirmngr_ldap.c, dirmngr/ldap-wrapper-ce.c,
dirmngr/ldap-wrapper.c, dirmngr/ldap.c, g13/Makefile.am,
g13/call-gpg.c, g13/g13.c, g13/runner.c, scd/Makefile.am,
scd/apdu.c, scd/app.c, scd/ccid-driver.c, scd/command.c,
scd/scdaemon.c, tools/Makefile.am: Port to npth.
2012-01-03 22:12:37 +01:00
|
|
|
$(LIBGCRYPT_LIBS) $(LIBASSUAN_LIBS) $(NPTH_LIBS) \
|
2013-04-25 12:00:16 +01:00
|
|
|
$(GPG_ERROR_LIBS) $(LIBINTL) $(NETLIBS) $(LIBICONV) \
|
|
|
|
$(resource_objs)
|
2022-12-09 14:02:07 +09:00
|
|
|
gpg_agent_LDFLAGS =
|
2013-06-26 23:23:18 +02:00
|
|
|
gpg_agent_DEPENDENCIES = $(resource_objs)
|
2003-08-05 17:11:04 +00:00
|
|
|
|
|
|
|
gpg_protect_tool_SOURCES = \
|
|
|
|
protect-tool.c \
|
2020-06-05 10:35:33 +09:00
|
|
|
sexp-secret.c \
|
2016-04-14 12:28:48 +02:00
|
|
|
protect.c cvt-openpgp.c
|
2003-08-05 17:11:04 +00:00
|
|
|
|
2016-09-30 12:34:31 +02:00
|
|
|
gpg_protect_tool_CFLAGS = $(AM_CFLAGS) $(LIBASSUAN_CFLAGS) \
|
|
|
|
$(INCICONV)
|
2009-04-01 10:51:53 +00:00
|
|
|
gpg_protect_tool_LDADD = $(common_libs) $(LIBGCRYPT_LIBS) $(LIBASSUAN_LIBS) \
|
|
|
|
$(GPG_ERROR_LIBS) $(LIBINTL) $(NETLIBS) $(LIBICONV)
|
2003-08-05 17:11:04 +00:00
|
|
|
|
2004-12-21 19:05:15 +00:00
|
|
|
gpg_preset_passphrase_SOURCES = \
|
|
|
|
preset-passphrase.c
|
2021-04-13 13:54:14 +09:00
|
|
|
gpg_preset_passphrase_CFLAGS = $(AM_CFLAGS) $(LIBASSUAN_CFLAGS)
|
2004-12-21 19:05:15 +00:00
|
|
|
|
2006-06-09 10:28:26 +00:00
|
|
|
# Needs $(NETLIBS) for libsimple-pwquery.la.
|
2007-06-14 17:05:07 +00:00
|
|
|
gpg_preset_passphrase_LDADD = \
|
2016-08-11 12:26:09 +02:00
|
|
|
$(pwquery_libs) $(common_libs) $(LIBASSUAN_LIBS) \
|
2006-12-07 23:20:20 +00:00
|
|
|
$(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS) $(LIBINTL) $(NETLIBS) $(LIBICONV)
|
2006-10-17 14:34:42 +00:00
|
|
|
|
2003-08-05 17:11:04 +00:00
|
|
|
|
2006-09-20 11:01:49 +00:00
|
|
|
# Make sure that all libs are build before we use them. This is
|
|
|
|
# important for things like make -j2.
|
2006-10-17 14:34:42 +00:00
|
|
|
$(PROGRAMS): $(common_libs) $(commonpth_libs) $(pwquery_libs)
|
2006-09-20 11:01:49 +00:00
|
|
|
|
|
|
|
|
2007-06-14 17:05:07 +00:00
|
|
|
|
2005-06-29 14:12:18 +00:00
|
|
|
#
|
|
|
|
# Module tests
|
|
|
|
#
|
2022-04-26 11:13:54 +09:00
|
|
|
module_tests = t-protect
|
|
|
|
|
2020-08-20 10:54:17 +02:00
|
|
|
if DISABLE_TESTS
|
|
|
|
TESTS =
|
|
|
|
else
|
2022-04-26 11:13:54 +09:00
|
|
|
TESTS = $(module_tests)
|
2020-08-20 10:54:17 +02:00
|
|
|
endif
|
2005-06-29 14:12:18 +00:00
|
|
|
|
2010-08-09 15:40:29 +00:00
|
|
|
t_common_ldadd = $(common_libs) $(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS) \
|
|
|
|
$(LIBINTL) $(LIBICONV) $(NETLIBS)
|
2005-06-29 14:12:18 +00:00
|
|
|
|
2011-02-04 12:57:53 +01:00
|
|
|
t_protect_SOURCES = t-protect.c protect.c
|
2005-06-29 14:12:18 +00:00
|
|
|
t_protect_LDADD = $(t_common_ldadd)
|
2021-04-13 13:54:14 +09:00
|
|
|
t_protect_CFLAGS = $(AM_CFLAGS) $(LIBASSUAN_CFLAGS)
|