2003-12-23 11:05:00 +00:00
|
|
|
# Makefile.am - Tools directory
|
2007-03-07 20:55:14 +00:00
|
|
|
# Copyright (C) 2003, 2007 Free Software Foundation, Inc.
|
2011-02-04 12:57:53 +01:00
|
|
|
#
|
2003-12-09 09:07:09 +00:00
|
|
|
# This file is part of GnuPG.
|
2011-02-04 12:57:53 +01:00
|
|
|
#
|
2003-12-09 09:07:09 +00: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 19:49:40 +00:00
|
|
|
# the Free Software Foundation; either version 3 of the License, or
|
2003-12-09 09:07:09 +00:00
|
|
|
# (at your option) any later version.
|
2011-02-04 12:57:53 +01:00
|
|
|
#
|
2003-12-09 09:07:09 +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-12-09 09:07:09 +00:00
|
|
|
# You should have received a copy of the GNU General Public License
|
2007-07-04 19:49:40 +00:00
|
|
|
# along with this program; if not, see <http://www.gnu.org/licenses/>.
|
2003-12-09 09:07:09 +00:00
|
|
|
|
2006-08-21 20:20:23 +00:00
|
|
|
EXTRA_DIST = \
|
|
|
|
Manifest watchgnupg.c \
|
2015-07-02 15:10:49 -04:00
|
|
|
addgnupghome applygnupgdefaults \
|
2009-04-17 18:40:32 +00:00
|
|
|
lspgpot mail-signed-keys convert-from-106 sockprox.c \
|
2013-04-25 12:00:16 +01:00
|
|
|
ccidmon.c ChangeLog-2011 gpg-connect-agent-w32info.rc
|
2006-08-21 20:20:23 +00:00
|
|
|
|
2004-01-05 09:28:27 +00:00
|
|
|
|
2015-04-10 13:11:59 +02:00
|
|
|
AM_CPPFLAGS = -I$(top_srcdir)/common
|
2004-02-12 10:02:22 +00:00
|
|
|
include $(top_srcdir)/am/cmacros.am
|
2004-01-10 11:50:48 +00:00
|
|
|
|
2013-04-25 12:00:16 +01:00
|
|
|
if HAVE_W32_SYSTEM
|
|
|
|
resource_objs += gpg-connect-agent-w32info.o
|
|
|
|
endif
|
|
|
|
|
2005-09-28 22:44:20 +00:00
|
|
|
AM_CFLAGS = $(LIBGCRYPT_CFLAGS) $(GPG_ERROR_CFLAGS) $(LIBASSUAN_CFLAGS)
|
2004-01-05 09:28:27 +00:00
|
|
|
|
2007-03-07 20:55:14 +00:00
|
|
|
sbin_SCRIPTS = addgnupghome applygnupgdefaults
|
2004-01-30 09:12:36 +00:00
|
|
|
|
2006-08-21 20:20:23 +00:00
|
|
|
if HAVE_USTAR
|
2006-10-17 14:34:42 +00:00
|
|
|
# bin_SCRIPTS += gpg-zip
|
|
|
|
noinst_SCRIPTS = gpg-zip
|
2006-08-21 20:20:23 +00:00
|
|
|
endif
|
2004-10-22 12:31:04 +00:00
|
|
|
|
2005-04-15 01:33:46 +00:00
|
|
|
if BUILD_SYMCRYPTRUN
|
|
|
|
symcryptrun = symcryptrun
|
|
|
|
else
|
|
|
|
symcryptrun =
|
|
|
|
endif
|
|
|
|
|
2010-06-07 13:33:02 +00:00
|
|
|
if BUILD_GPGTAR
|
|
|
|
gpgtar = gpgtar
|
|
|
|
else
|
|
|
|
gpgtar =
|
|
|
|
endif
|
|
|
|
|
2010-04-14 14:39:16 +00:00
|
|
|
bin_PROGRAMS = gpgconf gpg-connect-agent ${symcryptrun}
|
2004-12-15 14:15:54 +00:00
|
|
|
if !HAVE_W32_SYSTEM
|
2007-06-06 18:12:30 +00:00
|
|
|
bin_PROGRAMS += watchgnupg gpgparsemail
|
2004-12-15 14:15:54 +00:00
|
|
|
endif
|
2010-04-14 14:39:16 +00:00
|
|
|
if !HAVE_W32CE_SYSTEM
|
2016-01-09 11:28:42 +01:00
|
|
|
bin_PROGRAMS += ${gpgtar}
|
2010-04-14 14:39:16 +00:00
|
|
|
endif
|
2004-01-05 09:28:27 +00:00
|
|
|
|
2007-08-27 18:10:27 +00:00
|
|
|
if !DISABLE_REGEX
|
|
|
|
libexec_PROGRAMS = gpg-check-pattern
|
|
|
|
endif
|
|
|
|
|
2010-04-14 14:39:16 +00:00
|
|
|
if !HAVE_W32CE_SYSTEM
|
2006-10-17 14:34:42 +00:00
|
|
|
noinst_PROGRAMS = clean-sat mk-tdata make-dns-cert gpgsplit
|
2010-04-14 14:39:16 +00:00
|
|
|
endif
|
2006-08-21 20:20:23 +00:00
|
|
|
|
2014-11-11 10:13:10 +01:00
|
|
|
common_libs = $(libcommon)
|
|
|
|
commonpth_libs = $(libcommonpth)
|
2010-08-23 19:26:05 +00:00
|
|
|
|
|
|
|
# Some modules require PTH under W32CE.
|
|
|
|
if HAVE_W32CE_SYSTEM
|
|
|
|
maybe_commonpth_libs = $(commonpth_libs)
|
|
|
|
else
|
|
|
|
maybe_commonpth_libs = $(common_libs)
|
|
|
|
endif
|
|
|
|
|
2010-04-14 17:56:22 +00:00
|
|
|
if HAVE_W32CE_SYSTEM
|
2011-02-04 12:57:53 +01:00
|
|
|
pwquery_libs =
|
2010-04-14 17:56:22 +00:00
|
|
|
else
|
2006-09-20 11:01:49 +00:00
|
|
|
pwquery_libs = ../common/libsimple-pwquery.a
|
2010-04-14 17:56:22 +00:00
|
|
|
endif
|
2006-08-21 20:20:23 +00:00
|
|
|
|
2010-03-29 12:57:11 +00:00
|
|
|
if HAVE_W32CE_SYSTEM
|
|
|
|
opt_libassuan_libs = $(LIBASSUAN_LIBS)
|
|
|
|
endif
|
|
|
|
|
2007-06-14 17:05:07 +00:00
|
|
|
gpgsplit_LDADD = $(common_libs) \
|
|
|
|
$(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS) \
|
2010-08-13 11:42:14 +00:00
|
|
|
$(ZLIBS) $(LIBINTL) $(NETLIBS) $(LIBICONV)
|
2006-08-21 20:20:23 +00:00
|
|
|
|
2016-06-08 09:17:49 +02:00
|
|
|
gpgconf_SOURCES = gpgconf.c gpgconf.h gpgconf-comp.c
|
2004-01-05 09:28:27 +00:00
|
|
|
|
2010-03-10 12:24:58 +00:00
|
|
|
# common sucks in gpg-error, will they, nil they (some compilers
|
2006-06-09 11:32:22 +00:00
|
|
|
# do not eliminate the supposed-to-be-unused-inline-functions).
|
2010-08-23 19:26:05 +00:00
|
|
|
gpgconf_LDADD = $(maybe_commonpth_libs) $(opt_libassuan_libs) \
|
2016-06-08 09:17:49 +02:00
|
|
|
$(LIBINTL) $(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS) $(NETLIBS) \
|
2010-08-13 11:42:14 +00:00
|
|
|
$(LIBICONV) $(W32SOCKLIBS)
|
2010-11-23 18:46:41 +00:00
|
|
|
gpgconf_LDFLAGS = $(extra_bin_ldflags)
|
2004-01-05 09:28:27 +00:00
|
|
|
|
2005-12-16 15:52:48 +00:00
|
|
|
gpgparsemail_SOURCES = gpgparsemail.c rfc822parse.c rfc822parse.h
|
2011-02-04 12:57:53 +01:00
|
|
|
gpgparsemail_LDADD =
|
2005-12-16 15:52:48 +00:00
|
|
|
|
2005-04-10 23:10:52 +00:00
|
|
|
symcryptrun_SOURCES = symcryptrun.c
|
2006-09-20 11:01:49 +00:00
|
|
|
symcryptrun_LDADD = $(LIBUTIL_LIBS) $(common_libs) $(pwquery_libs) \
|
2007-06-15 14:27:31 +00:00
|
|
|
$(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS) $(LIBINTL) \
|
2010-08-13 11:42:14 +00:00
|
|
|
$(LIBICONV) $(NETLIBS) $(W32SOCKLIBS)
|
2005-04-10 23:10:52 +00:00
|
|
|
|
2011-02-04 12:57:53 +01:00
|
|
|
watchgnupg_SOURCES = watchgnupg.c
|
2005-10-08 00:17:09 +00:00
|
|
|
watchgnupg_LDADD = $(NETLIBS)
|
2005-02-24 17:36:11 +00:00
|
|
|
|
2016-06-08 09:17:49 +02:00
|
|
|
gpg_connect_agent_SOURCES = gpg-connect-agent.c
|
|
|
|
# FIXME: remove NPTH_LIBS (why do we need them at all?)
|
2007-10-24 15:34:23 +00:00
|
|
|
gpg_connect_agent_LDADD = ../common/libgpgrl.a $(common_libs) \
|
2016-06-08 09:17:49 +02:00
|
|
|
$(LIBASSUAN_LIBS) $(LIBGCRYPT_LIBS) \
|
|
|
|
$(NPTH_LIBS) $(GPG_ERROR_LIBS) \
|
2013-04-25 12:00:16 +01:00
|
|
|
$(LIBREADLINE) $(LIBINTL) $(NETLIBS) $(LIBICONV) \
|
|
|
|
$(resource_objs)
|
2005-02-24 17:36:11 +00:00
|
|
|
|
2006-08-21 20:20:23 +00:00
|
|
|
|
2007-08-27 18:10:27 +00:00
|
|
|
if !DISABLE_REGEX
|
|
|
|
gpg_check_pattern_SOURCES = gpg-check-pattern.c
|
|
|
|
gpg_check_pattern_CFLAGS = $(LIBGCRYPT_CFLAGS) $(GPG_ERROR_CFLAGS)
|
|
|
|
gpg_check_pattern_LDADD = $(common_libs) $(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS) \
|
2010-08-13 11:42:14 +00:00
|
|
|
$(LIBINTL) $(NETLIBS) $(LIBICONV) $(W32SOCKLIBS)
|
2007-08-27 18:10:27 +00:00
|
|
|
endif
|
|
|
|
|
2010-06-07 13:33:02 +00:00
|
|
|
gpgtar_SOURCES = \
|
|
|
|
gpgtar.c gpgtar.h \
|
|
|
|
gpgtar-create.c \
|
|
|
|
gpgtar-extract.c \
|
2016-06-08 09:17:49 +02:00
|
|
|
gpgtar-list.c
|
2015-11-30 16:21:22 +01:00
|
|
|
gpgtar_CFLAGS = $(GPG_ERROR_CFLAGS)
|
2016-06-08 09:17:49 +02:00
|
|
|
gpgtar_LDADD = $(libcommon) $(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS) \
|
2013-08-30 10:05:08 +02:00
|
|
|
$(LIBINTL) $(NETLIBS) $(LIBICONV) $(W32SOCKLIBS)
|
2010-06-07 13:33:02 +00:00
|
|
|
|
2010-04-21 16:26:17 +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.
|
2007-10-19 14:51:39 +00:00
|
|
|
$(PROGRAMS): $(common_libs) $(pwquery_libs) ../common/libgpgrl.a
|