2003-12-23 12:05:00 +01:00
|
|
|
# Makefile.am - Tools directory
|
2007-03-07 21:55:14 +01:00
|
|
|
# Copyright (C) 2003, 2007 Free Software Foundation, Inc.
|
2011-02-04 12:57:53 +01:00
|
|
|
#
|
2003-12-09 10:07:09 +01:00
|
|
|
# This file is part of GnuPG.
|
2011-02-04 12:57:53 +01:00
|
|
|
#
|
2003-12-09 10:07:09 +01:00
|
|
|
# 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 21:49:40 +02:00
|
|
|
# the Free Software Foundation; either version 3 of the License, or
|
2003-12-09 10:07:09 +01:00
|
|
|
# (at your option) any later version.
|
2011-02-04 12:57:53 +01:00
|
|
|
#
|
2003-12-09 10:07:09 +01: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-12-09 10:07:09 +01: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-12-09 10:07:09 +01:00
|
|
|
|
2006-08-21 22:20:23 +02:00
|
|
|
EXTRA_DIST = \
|
2016-06-16 16:56:42 +02:00
|
|
|
Manifest watchgnupg.c no-libgcrypt.c \
|
2015-07-02 21:10:49 +02:00
|
|
|
addgnupghome applygnupgdefaults \
|
2009-04-17 20:40:32 +02:00
|
|
|
lspgpot mail-signed-keys convert-from-106 sockprox.c \
|
2019-01-22 09:07:24 +01:00
|
|
|
ccidmon.c ChangeLog-2011 \
|
2021-02-21 12:09:57 +01:00
|
|
|
gpg-connect-agent-w32info.rc gpg-connect-agent.w32-manifest.in \
|
|
|
|
gpgconf-w32info.rc gpgconf.w32-manifest.in \
|
|
|
|
gpgtar-w32info.rc gpgtar.w32-manifest.in \
|
|
|
|
gpg-check-pattern-w32info.rc gpg-check-pattern.w32-manifest.in \
|
|
|
|
gpg-wks-client-w32info.rc gpg-wks-client.w32-manifest.in \
|
|
|
|
gpg-card-w32info.rc gpg-card.w32-manifest.in
|
2004-01-05 10:28:27 +01:00
|
|
|
|
2017-03-07 12:21:23 +01:00
|
|
|
AM_CPPFLAGS =
|
2004-02-12 11:02:22 +01:00
|
|
|
include $(top_srcdir)/am/cmacros.am
|
2004-01-10 12:50:48 +01:00
|
|
|
|
2013-04-25 13:00:16 +02:00
|
|
|
if HAVE_W32_SYSTEM
|
2019-01-22 09:07:24 +01:00
|
|
|
gpg_connect_agent_rc_objs = gpg-connect-agent-w32info.o
|
2021-02-21 12:09:57 +01:00
|
|
|
gpgconf_rc_objs = gpgconf-w32info.o
|
|
|
|
gpg_card_rc_objs = gpg-card-w32info.o
|
|
|
|
gpgtar_rc_objs = gpgtar-w32info.o
|
|
|
|
gpg_check_pattern_rc_objs = gpg-check-pattern-w32info.o
|
|
|
|
gpg_wks_client_rc_objs = gpg-wks-client-w32info.o
|
|
|
|
resource_objs += $(gpg_connect_agent_rc_objs)
|
|
|
|
resource_objs += $(gpgconf_rc_objs)
|
|
|
|
resource_objs += $(gpg_card_tool_rc_objs)
|
|
|
|
resource_objs += $(gpgtar_rc_objs)
|
|
|
|
resource_objs += $(gpg_check_pattern_rc_objs)
|
|
|
|
resource_objs += $(gpg_wks_client_rc_objs)
|
2013-04-25 13:00:16 +02:00
|
|
|
endif
|
|
|
|
|
2005-09-29 00:44:20 +02:00
|
|
|
AM_CFLAGS = $(LIBGCRYPT_CFLAGS) $(GPG_ERROR_CFLAGS) $(LIBASSUAN_CFLAGS)
|
2004-01-05 10:28:27 +01:00
|
|
|
|
2007-03-07 21:55:14 +01:00
|
|
|
sbin_SCRIPTS = addgnupghome applygnupgdefaults
|
2004-01-30 10:12:36 +01:00
|
|
|
|
2016-06-29 12:00:22 +02:00
|
|
|
if BUILD_WKS_TOOLS
|
|
|
|
gpg_wks_server = gpg-wks-server
|
|
|
|
else
|
|
|
|
gpg_wks_server =
|
|
|
|
endif
|
|
|
|
|
2016-08-22 17:05:00 +02:00
|
|
|
|
2021-02-19 12:11:38 +01:00
|
|
|
bin_PROGRAMS = gpgconf gpg-connect-agent gpg-card gpg-wks-client
|
2004-12-15 15:15:54 +01:00
|
|
|
if !HAVE_W32_SYSTEM
|
2022-09-13 09:41:10 +02:00
|
|
|
bin_PROGRAMS += watchgnupg gpgparsemail ${gpg_wks_server} gpgsplit
|
2020-11-04 13:41:07 +01:00
|
|
|
else
|
|
|
|
bin_PROGRAMS += gpgconf-w32
|
2004-12-15 15:15:54 +01:00
|
|
|
endif
|
2004-01-05 10:28:27 +01:00
|
|
|
|
2021-02-19 12:11:38 +01:00
|
|
|
libexec_PROGRAMS = gpg-check-pattern gpg-pair-tool
|
2022-09-13 09:41:10 +02:00
|
|
|
if !HAVE_W32_SYSTEM
|
|
|
|
libexec_PROGRAMS += gpg-auth
|
|
|
|
endif
|
2007-08-27 20:10:27 +02:00
|
|
|
|
2020-08-13 11:00:23 +02:00
|
|
|
noinst_PROGRAMS = clean-sat make-dns-cert
|
2006-08-21 22:20:23 +02:00
|
|
|
|
2016-07-15 17:20:18 +02:00
|
|
|
if BUILD_GPGTAR
|
|
|
|
bin_PROGRAMS += gpgtar
|
|
|
|
else
|
|
|
|
noinst_PROGRAMS += gpgtar
|
|
|
|
endif
|
|
|
|
|
2014-11-11 10:13:10 +01:00
|
|
|
common_libs = $(libcommon)
|
|
|
|
commonpth_libs = $(libcommonpth)
|
2010-08-23 21:26:05 +02:00
|
|
|
|
2006-09-20 13:01:49 +02:00
|
|
|
pwquery_libs = ../common/libsimple-pwquery.a
|
2006-08-21 22:20:23 +02:00
|
|
|
|
2010-03-29 14:57:11 +02:00
|
|
|
|
2020-04-03 08:30:08 +02:00
|
|
|
regexp_libs = ../regexp/libregexp.a
|
|
|
|
|
|
|
|
|
2007-06-14 19:05:07 +02:00
|
|
|
gpgsplit_LDADD = $(common_libs) \
|
|
|
|
$(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS) \
|
2010-08-13 13:42:14 +02:00
|
|
|
$(ZLIBS) $(LIBINTL) $(NETLIBS) $(LIBICONV)
|
2006-08-21 22:20:23 +02:00
|
|
|
|
2016-06-08 09:17:49 +02:00
|
|
|
gpgconf_SOURCES = gpgconf.c gpgconf.h gpgconf-comp.c
|
2004-01-05 10:28:27 +01:00
|
|
|
|
2010-03-10 13:24:58 +01:00
|
|
|
# common sucks in gpg-error, will they, nil they (some compilers
|
2006-06-09 13:32:22 +02:00
|
|
|
# do not eliminate the supposed-to-be-unused-inline-functions).
|
2022-06-02 16:10:37 +02:00
|
|
|
gpgconf_LDADD = $(common_libs) \
|
2016-06-08 09:17:49 +02:00
|
|
|
$(LIBINTL) $(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS) $(NETLIBS) \
|
2021-02-21 12:09:57 +01:00
|
|
|
$(LIBICONV) $(W32SOCKLIBS) \
|
|
|
|
$(gpgconf_rc_objs)
|
2010-11-23 19:46:41 +01:00
|
|
|
gpgconf_LDFLAGS = $(extra_bin_ldflags)
|
2004-01-05 10:28:27 +01:00
|
|
|
|
2020-11-04 13:41:07 +01:00
|
|
|
gpgconf_w32_SOURCES = $(gpgconf_SOURCES)
|
|
|
|
gpgconf_w32_LDADD = $(gpgconf_LDADD)
|
|
|
|
gpgconf_w32_LDFLAGS = $(gpgconf_LDFLAGS) -Wl,-subsystem,windows
|
|
|
|
|
2005-12-16 16:52:48 +01:00
|
|
|
gpgparsemail_SOURCES = gpgparsemail.c rfc822parse.c rfc822parse.h
|
2011-02-04 12:57:53 +01:00
|
|
|
gpgparsemail_LDADD =
|
2005-12-16 16:52:48 +01:00
|
|
|
|
2011-02-04 12:57:53 +01:00
|
|
|
watchgnupg_SOURCES = watchgnupg.c
|
2005-10-08 02:17:09 +02:00
|
|
|
watchgnupg_LDADD = $(NETLIBS)
|
2005-02-24 18:36:11 +01:00
|
|
|
|
2016-06-08 09:17:49 +02:00
|
|
|
gpg_connect_agent_SOURCES = gpg-connect-agent.c
|
2007-10-24 17:34:23 +02:00
|
|
|
gpg_connect_agent_LDADD = ../common/libgpgrl.a $(common_libs) \
|
2016-06-08 09:17:49 +02:00
|
|
|
$(LIBASSUAN_LIBS) $(LIBGCRYPT_LIBS) \
|
2016-09-27 17:45:52 +02:00
|
|
|
$(GPG_ERROR_LIBS) \
|
2013-04-25 13:00:16 +02:00
|
|
|
$(LIBREADLINE) $(LIBINTL) $(NETLIBS) $(LIBICONV) \
|
2019-01-22 09:07:24 +01:00
|
|
|
$(gpg_connect_agent_rc_objs)
|
|
|
|
|
2019-01-29 08:48:53 +01:00
|
|
|
|
2019-02-25 09:28:22 +01:00
|
|
|
gpg_card_SOURCES = \
|
|
|
|
gpg-card.c \
|
|
|
|
gpg-card.h \
|
2019-01-29 08:48:53 +01:00
|
|
|
card-call-scd.c \
|
2019-02-25 09:28:22 +01:00
|
|
|
card-keys.c \
|
|
|
|
card-yubikey.c \
|
|
|
|
card-misc.c
|
|
|
|
|
|
|
|
gpg_card_LDADD = \
|
|
|
|
../common/libgpgrl.a $(common_libs) \
|
|
|
|
$(LIBASSUAN_LIBS) $(LIBGCRYPT_LIBS) \
|
|
|
|
$(GPG_ERROR_LIBS) \
|
|
|
|
$(LIBREADLINE) $(LIBINTL) $(NETLIBS) $(LIBICONV) \
|
2021-02-21 12:09:57 +01:00
|
|
|
$(gpg_card_rc_objs)
|
2005-02-24 18:36:11 +01:00
|
|
|
|
2006-08-21 22:20:23 +02:00
|
|
|
|
2007-08-27 20:10:27 +02:00
|
|
|
gpg_check_pattern_SOURCES = gpg-check-pattern.c
|
2016-09-30 12:34:31 +02:00
|
|
|
gpg_check_pattern_CFLAGS = $(LIBGCRYPT_CFLAGS) $(GPG_ERROR_CFLAGS) $(INCICONV)
|
2020-04-03 08:30:08 +02:00
|
|
|
gpg_check_pattern_LDADD = $(common_libs) $(regexp_libs) $(LIBGCRYPT_LIBS) \
|
|
|
|
$(GPG_ERROR_LIBS) \
|
2016-09-30 12:34:31 +02:00
|
|
|
$(LIBINTL) $(NETLIBS) $(LIBICONV) $(W32SOCKLIBS) \
|
2021-02-21 12:09:57 +01:00
|
|
|
$(LIBICONV) \
|
|
|
|
$(gpg_check_pattern_rc_objs)
|
2007-08-27 20:10:27 +02:00
|
|
|
|
2010-06-07 15:33:02 +02:00
|
|
|
gpgtar_SOURCES = \
|
|
|
|
gpgtar.c gpgtar.h \
|
|
|
|
gpgtar-create.c \
|
|
|
|
gpgtar-extract.c \
|
2016-06-08 09:17:49 +02:00
|
|
|
gpgtar-list.c
|
2021-09-20 12:14:57 +02:00
|
|
|
gpgtar_CFLAGS = $(LIBGCRYPT_CFLAGS) $(GPG_ERROR_CFLAGS)
|
2016-06-08 09:17:49 +02:00
|
|
|
gpgtar_LDADD = $(libcommon) $(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS) \
|
2021-02-21 12:09:57 +01:00
|
|
|
$(LIBINTL) $(NETLIBS) $(LIBICONV) $(W32SOCKLIBS) \
|
|
|
|
$(gpgtar_rc_objs)
|
2010-06-07 15:33:02 +02:00
|
|
|
|
2016-06-29 12:00:22 +02:00
|
|
|
gpg_wks_server_SOURCES = \
|
|
|
|
gpg-wks-server.c \
|
|
|
|
gpg-wks.h \
|
2016-07-03 00:41:30 +02:00
|
|
|
wks-util.c \
|
2016-06-29 12:00:22 +02:00
|
|
|
wks-receive.c \
|
|
|
|
rfc822parse.c rfc822parse.h \
|
|
|
|
mime-parser.c mime-parser.h \
|
2016-07-03 00:41:30 +02:00
|
|
|
mime-maker.c mime-maker.h \
|
|
|
|
send-mail.c send-mail.h
|
2016-06-29 12:00:22 +02:00
|
|
|
|
2021-09-20 12:14:57 +02:00
|
|
|
gpg_wks_server_CFLAGS = $(LIBGCRYPT_CFLAGS) $(GPG_ERROR_CFLAGS) $(INCICONV)
|
2016-09-30 12:34:31 +02:00
|
|
|
gpg_wks_server_LDADD = $(libcommon) $(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS) \
|
2016-11-29 16:00:48 +01:00
|
|
|
$(LIBINTL) $(LIBICONV)
|
2016-06-29 12:00:22 +02:00
|
|
|
|
|
|
|
gpg_wks_client_SOURCES = \
|
|
|
|
gpg-wks-client.c \
|
2016-07-03 00:41:30 +02:00
|
|
|
gpg-wks.h \
|
|
|
|
wks-util.c \
|
2016-06-29 12:00:22 +02:00
|
|
|
wks-receive.c \
|
|
|
|
rfc822parse.c rfc822parse.h \
|
|
|
|
mime-parser.c mime-parser.h \
|
2016-07-03 00:41:30 +02:00
|
|
|
mime-maker.h mime-maker.c \
|
|
|
|
send-mail.c send-mail.h \
|
2016-06-29 12:00:22 +02:00
|
|
|
call-dirmngr.c call-dirmngr.h
|
|
|
|
|
2021-09-20 12:14:57 +02:00
|
|
|
gpg_wks_client_CFLAGS = $(LIBASSUAN_CFLAGS) $(LIBGCRYPT_CFLAGS) \
|
|
|
|
$(GPG_ERROR_CFLAGS) $(INCICONV)
|
2016-06-29 12:00:22 +02:00
|
|
|
gpg_wks_client_LDADD = $(libcommon) \
|
2016-09-30 12:34:31 +02:00
|
|
|
$(LIBASSUAN_LIBS) $(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS) \
|
2021-02-21 12:09:57 +01:00
|
|
|
$(LIBINTL) $(LIBICONV) $(NETLIBS) \
|
|
|
|
$(gpg_wks_client_rc_objs)
|
2016-06-29 12:00:22 +02:00
|
|
|
|
2018-07-05 09:40:35 +02:00
|
|
|
gpg_pair_tool_SOURCES = \
|
|
|
|
gpg-pair-tool.c
|
|
|
|
|
2021-09-20 12:14:57 +02:00
|
|
|
gpg_pair_tool_CFLAGS = $(LIBGCRYPT_CFLAGS) $(GPG_ERROR_CFLAGS) $(INCICONV)
|
2018-07-05 09:40:35 +02:00
|
|
|
gpg_pair_tool_LDADD = $(libcommon) \
|
|
|
|
$(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS) \
|
2018-11-26 13:05:26 +01:00
|
|
|
$(LIBINTL) $(LIBICONV) $(W32SOCKLIBS)
|
2010-04-21 18:26:17 +02:00
|
|
|
|
2022-09-02 07:52:17 +02:00
|
|
|
gpg_auth_SOURCES = gpg-auth.c
|
|
|
|
gpg_auth_LDADD = $(common_libs) \
|
|
|
|
$(LIBASSUAN_LIBS) $(LIBGCRYPT_LIBS) \
|
|
|
|
$(GPG_ERROR_LIBS) \
|
|
|
|
$(LIBINTL) $(NETLIBS) $(LIBICONV)
|
|
|
|
|
2021-02-19 12:11:38 +01:00
|
|
|
# Instead of a symlink we install a simple wrapper script for the new
|
|
|
|
# gpg-wks-client location. We assume bin is a sibling of libexec.
|
|
|
|
install-exec-local:
|
|
|
|
$(mkinstalldirs) $(DESTDIR)$(libexecdir)
|
|
|
|
(set -e ;\
|
|
|
|
if [ "$(libexecdir)" != "$(bindir)" ]; then \
|
|
|
|
printf '#!/bin/sh\nexec "$(bindir)/gpg-wks-client" "$$@"\n' \
|
|
|
|
> $(DESTDIR)$(libexecdir)/gpg-wks-client ;\
|
|
|
|
chmod +x $(DESTDIR)$(libexecdir)/gpg-wks-client ;\
|
|
|
|
fi )
|
|
|
|
|
|
|
|
uninstall-local:
|
|
|
|
(if [ "$(libexecdir)" != "$(bindir)" ]; then \
|
|
|
|
rm $(DESTDIR)$(libexecdir)/gpg-wks-client || true ;\
|
|
|
|
fi )
|
|
|
|
|
2006-09-20 13:01:49 +02:00
|
|
|
# Make sure that all libs are build before we use them. This is
|
|
|
|
# important for things like make -j2.
|
2007-10-19 16:51:39 +02:00
|
|
|
$(PROGRAMS): $(common_libs) $(pwquery_libs) ../common/libgpgrl.a
|