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
|
2007-07-04 21:49:40 +02:00
|
|
|
# along with this program; if not, see <http://www.gnu.org/licenses/>.
|
2003-12-09 10:07:09 +01:00
|
|
|
|
2006-08-21 22:20:23 +02:00
|
|
|
EXTRA_DIST = \
|
|
|
|
Manifest watchgnupg.c \
|
2007-03-07 21:55:14 +01:00
|
|
|
addgnupghome applygnupgdefaults gpgsm-gencert.sh \
|
2009-04-17 20:40:32 +02:00
|
|
|
lspgpot mail-signed-keys convert-from-106 sockprox.c \
|
2013-04-25 13:00:16 +02:00
|
|
|
ccidmon.c ChangeLog-2011 gpg-connect-agent-w32info.rc
|
2006-08-21 22:20:23 +02:00
|
|
|
|
2004-01-05 10:28:27 +01:00
|
|
|
|
* configure.ac (gl_INIT): Add gnulib stuff.
(fseeko, ftello, ttyname, isascii): Replaced the AC_REPLACE_FUNCS
by a simple check.
(putc_unlocked): Removed check. Not used.
(strsep, mkdtemp, asprintf): Replaced checks by gnulib checks.
(xsize): Added will probably come handy soon.
(CFLAGS): Use -Wformat-security instead of
-Wformat-nonliteral. Add --Wno-format-y2k.
* gl/, gl/m4/: New.
* gpg-agent.c: Include setenv.h.
* Makefile.am (AM_CPPFLAGS): Added.
* util.h: Add some includes for gnulib.
(ttyname, isascii): Define them inline.
* fseeko.c, ftello.c: Removed.
* strsep.c, mkdtemp.c: Removed.
* ttyname.c, isascii.c: Removed.
* mkdtemp.c: Removed.
* exec.c: Include mkdtemp.h
* keybox-file.c (ftello) [!HAVE_FSEEKO]: New replacement
function. Copied from ../common/ftello.c.
* keybox-update.c (fseeko) [!HAVE_FSEEKO]: New replacement
function. Copied from ../common/iobuf.c.
* scdaemon.c: Include mkdtemp.h.
* misc.c: Include setenv.h.
* symcryptrun.c: Include mkdtemp.h.
2005-06-01 17:46:01 +02:00
|
|
|
AM_CPPFLAGS = -I$(top_srcdir)/gl -I$(top_srcdir)/intl -I$(top_srcdir)/common
|
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
|
|
|
|
resource_objs += gpg-connect-agent-w32info.o
|
|
|
|
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
|
|
|
|
2004-10-22 14:31:04 +02:00
|
|
|
bin_SCRIPTS = gpgsm-gencert.sh
|
2006-08-21 22:20:23 +02:00
|
|
|
if HAVE_USTAR
|
2006-10-17 16:34:42 +02:00
|
|
|
# bin_SCRIPTS += gpg-zip
|
|
|
|
noinst_SCRIPTS = gpg-zip
|
2006-08-21 22:20:23 +02:00
|
|
|
endif
|
2004-10-22 14:31:04 +02:00
|
|
|
|
2005-04-15 03:33:46 +02:00
|
|
|
if BUILD_SYMCRYPTRUN
|
|
|
|
symcryptrun = symcryptrun
|
|
|
|
else
|
|
|
|
symcryptrun =
|
|
|
|
endif
|
|
|
|
|
2010-06-07 15:33:02 +02:00
|
|
|
if BUILD_GPGTAR
|
|
|
|
gpgtar = gpgtar
|
|
|
|
else
|
|
|
|
gpgtar =
|
|
|
|
endif
|
|
|
|
|
2010-04-14 16:39:16 +02:00
|
|
|
# Fixme: We should remove the gpgkey2ssh tool.
|
|
|
|
bin_PROGRAMS = gpgconf gpg-connect-agent ${symcryptrun}
|
2004-12-15 15:15:54 +01:00
|
|
|
if !HAVE_W32_SYSTEM
|
2007-06-06 20:12:30 +02:00
|
|
|
bin_PROGRAMS += watchgnupg gpgparsemail
|
2004-12-15 15:15:54 +01:00
|
|
|
endif
|
2010-04-14 16:39:16 +02:00
|
|
|
if !HAVE_W32CE_SYSTEM
|
2010-06-07 15:33:02 +02:00
|
|
|
bin_PROGRAMS += gpgkey2ssh ${gpgtar}
|
2010-04-14 16:39:16 +02:00
|
|
|
endif
|
2004-01-05 10:28:27 +01:00
|
|
|
|
2007-08-27 20:10:27 +02:00
|
|
|
if !DISABLE_REGEX
|
|
|
|
libexec_PROGRAMS = gpg-check-pattern
|
|
|
|
endif
|
|
|
|
|
2010-04-14 16:39:16 +02:00
|
|
|
if !HAVE_W32CE_SYSTEM
|
2006-10-17 16:34:42 +02:00
|
|
|
noinst_PROGRAMS = clean-sat mk-tdata make-dns-cert gpgsplit
|
2010-04-14 16:39:16 +02:00
|
|
|
endif
|
2006-08-21 22:20:23 +02:00
|
|
|
|
2014-11-11 10:13:10 +01:00
|
|
|
common_libs = $(libcommon)
|
|
|
|
commonpth_libs = $(libcommonpth)
|
2010-08-23 21:26:05 +02: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 19:56:22 +02:00
|
|
|
if HAVE_W32CE_SYSTEM
|
2011-02-04 12:57:53 +01:00
|
|
|
pwquery_libs =
|
2010-04-14 19:56:22 +02:00
|
|
|
else
|
2006-09-20 13:01:49 +02:00
|
|
|
pwquery_libs = ../common/libsimple-pwquery.a
|
2010-04-14 19:56:22 +02:00
|
|
|
endif
|
2006-08-21 22:20:23 +02:00
|
|
|
|
2010-03-29 14:57:11 +02:00
|
|
|
if HAVE_W32CE_SYSTEM
|
|
|
|
opt_libassuan_libs = $(LIBASSUAN_LIBS)
|
|
|
|
endif
|
|
|
|
|
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
|
|
|
|
2004-01-29 00:58:18 +01:00
|
|
|
gpgconf_SOURCES = gpgconf.c gpgconf.h gpgconf-comp.c no-libgcrypt.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).
|
2010-08-23 21:26:05 +02:00
|
|
|
gpgconf_LDADD = $(maybe_commonpth_libs) $(opt_libassuan_libs) \
|
2014-10-08 09:12:51 +02:00
|
|
|
$(LIBINTL) $(GPG_ERROR_LIBS) $(NETLIBS) \
|
2010-08-13 13:42:14 +02:00
|
|
|
$(LIBICONV) $(W32SOCKLIBS)
|
2010-11-23 19:46:41 +01:00
|
|
|
gpgconf_LDFLAGS = $(extra_bin_ldflags)
|
2004-01-05 10:28:27 +01:00
|
|
|
|
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
|
|
|
|
2005-04-11 01:10:52 +02:00
|
|
|
symcryptrun_SOURCES = symcryptrun.c
|
2006-09-20 13:01:49 +02:00
|
|
|
symcryptrun_LDADD = $(LIBUTIL_LIBS) $(common_libs) $(pwquery_libs) \
|
2007-06-15 16:27:31 +02:00
|
|
|
$(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS) $(LIBINTL) \
|
2010-08-13 13:42:14 +02:00
|
|
|
$(LIBICONV) $(NETLIBS) $(W32SOCKLIBS)
|
2005-04-11 01:10:52 +02: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
|
|
|
|
|
|
|
gpg_connect_agent_SOURCES = gpg-connect-agent.c no-libgcrypt.c
|
2007-06-14 19:05:07 +02:00
|
|
|
# FIXME: remove PTH_LIBS (why do we need them at all?)
|
2007-10-24 17:34:23 +02:00
|
|
|
gpg_connect_agent_LDADD = ../common/libgpgrl.a $(common_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
|
|
|
$(LIBASSUAN_LIBS) $(NPTH_LIBS) $(GPG_ERROR_LIBS) \
|
2013-04-25 13:00:16 +02:00
|
|
|
$(LIBREADLINE) $(LIBINTL) $(NETLIBS) $(LIBICONV) \
|
|
|
|
$(resource_objs)
|
2005-02-24 18:36:11 +01:00
|
|
|
|
2010-04-14 16:39:16 +02:00
|
|
|
if !HAVE_W32CE_SYSTEM
|
2005-05-28 15:43:21 +02:00
|
|
|
gpgkey2ssh_SOURCES = gpgkey2ssh.c
|
|
|
|
gpgkey2ssh_CFLAGS = $(LIBGCRYPT_CFLAGS) $(GPG_ERROR_CFLAGS)
|
2010-03-10 13:24:58 +01:00
|
|
|
# common via use of BUG() in an inline function, which
|
2006-06-09 13:32:22 +02:00
|
|
|
# some compilers do not eliminate.
|
2006-10-10 13:11:04 +02:00
|
|
|
gpgkey2ssh_LDADD = $(common_libs) \
|
2010-08-13 13:42:14 +02:00
|
|
|
$(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS) $(LIBINTL) $(LIBICONV) \
|
|
|
|
$(NETLIBS)
|
2010-04-14 16:39:16 +02:00
|
|
|
endif
|
2006-08-21 22:20:23 +02:00
|
|
|
|
2007-08-27 20:10:27 +02: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 13:42:14 +02:00
|
|
|
$(LIBINTL) $(NETLIBS) $(LIBICONV) $(W32SOCKLIBS)
|
2007-08-27 20:10:27 +02:00
|
|
|
endif
|
|
|
|
|
2010-06-07 15:33:02 +02:00
|
|
|
gpgtar_SOURCES = \
|
|
|
|
gpgtar.c gpgtar.h \
|
|
|
|
gpgtar-create.c \
|
|
|
|
gpgtar-extract.c \
|
|
|
|
gpgtar-list.c \
|
|
|
|
no-libgcrypt.c
|
|
|
|
gpgtar_CFLAGS = $(GPG_ERROR_CFLAGS) $(PTH_CFLAGS)
|
2010-07-16 15:19:45 +02:00
|
|
|
#gpgtar_LDADD = $(commonpth_libs) $(PTH_LIBS) $(GPG_ERROR_LIBS)
|
2013-08-30 10:05:08 +02:00
|
|
|
gpgtar_LDADD = $(common_libs) $(GPG_ERROR_LIBS) \
|
|
|
|
$(LIBINTL) $(NETLIBS) $(LIBICONV) $(W32SOCKLIBS)
|
2010-06-07 15:33:02 +02:00
|
|
|
|
2010-04-21 18:26:17 +02:00
|
|
|
|
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
|