2003-06-05 09:14:21 +02:00
|
|
|
# Copyright (C) 1998, 1999, 2000, 2001, 2002,
|
2010-04-14 16:39:16 +02:00
|
|
|
# 2003, 2006, 2010 Free Software Foundation, Inc.
|
2003-06-05 09:14:21 +02: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 21:49:40 +02:00
|
|
|
# the Free Software Foundation; either version 3 of the License, or
|
2003-06-05 09:14:21 +02:00
|
|
|
# (at your option) any later version.
|
2011-02-04 12:57:53 +01:00
|
|
|
#
|
2003-06-05 09:14:21 +02: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-06-05 09:14:21 +02: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-06-05 09:14:21 +02:00
|
|
|
|
|
|
|
## Process this file with automake to produce Makefile.in
|
|
|
|
|
2014-08-18 16:38:13 +02:00
|
|
|
EXTRA_DIST = options.skel distsigkey.gpg ChangeLog-2011 gpg-w32info.rc
|
2004-02-12 10:28:52 +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)/common \
|
2011-02-04 12:57:53 +01:00
|
|
|
-I$(top_srcdir)/include -I$(top_srcdir)/intl
|
2004-02-12 10:28:52 +01:00
|
|
|
|
|
|
|
include $(top_srcdir)/am/cmacros.am
|
|
|
|
|
2006-10-24 16:51:39 +02:00
|
|
|
AM_CFLAGS = $(LIBGCRYPT_CFLAGS) $(LIBASSUAN_CFLAGS) $(GPG_ERROR_CFLAGS)
|
2004-02-12 10:28:52 +01:00
|
|
|
|
2014-11-11 10:13:10 +01:00
|
|
|
needed_libs = ../kbx/libkeybox.a $(libcommon)
|
2003-06-05 09:14:21 +02:00
|
|
|
|
2010-04-14 16:39:16 +02:00
|
|
|
bin_PROGRAMS = gpg2
|
|
|
|
if !HAVE_W32CE_SYSTEM
|
|
|
|
bin_PROGRAMS += gpgv2
|
|
|
|
endif
|
2008-12-11 18:44:52 +01:00
|
|
|
noinst_PROGRAMS = $(module_tests)
|
|
|
|
TESTS = $(module_tests)
|
2003-06-05 09:14:21 +02:00
|
|
|
|
2006-10-23 16:02:13 +02:00
|
|
|
if ENABLE_BZIP2_SUPPORT
|
|
|
|
bzip2_source = compress-bz2.c
|
|
|
|
else
|
|
|
|
bzip2_source =
|
|
|
|
endif
|
|
|
|
|
2014-02-07 13:46:36 +01:00
|
|
|
if ENABLE_CARD_SUPPORT
|
|
|
|
card_source = card-util.c
|
|
|
|
else
|
|
|
|
card_source =
|
|
|
|
endif
|
|
|
|
|
gpg: Allow building without any trust model support.
* configure.ac: Add option --disable-trust-models
(NO_TRUST_MODELS): New ac_define and am_conditional.
* g10/Makefile.am (trust_source): New.
(gpg2_SOURCES): Factor some files out to above. Add trust.c.
* g10/gpg.c [NO_TRUST_MODELS]: Disable options --export-ownertrust,
--import-ownertrust, --update-trustdb, --check-trustdb, --fix-trustdb,
--list-trustdb, --trustdb-name, --auto-check-trustdb,
--no-auto-check-trustdb, and --force-ownertrust.
(parse_trust_model) [NO_TRUST_MODELS]: Do not build.
(main) [NO_TRUST_MODELS]: Set trust_model to always and exclude all
trustdb related option code.
* g10/keyedit.c (cmds) [NO_TRUST_MODELS]: Remove menu items "trust",
"enable", and "disable".
* g10/keylist.c (public_key_list) [NO_TRUST_MODELS]: Do not print
"tru" record.
* g10/trust.c: New.
* g10/trustdb.c (struct key_item): Move to trustdb.h.
(register_trusted_keyid): Rename to tdb_register_trusted_keyid.
(register_trusted_key): Rename to tdb_register_trusted_key.
(trust_letter, uid_trust_string_fixed, trust_value_to_string)
(string_to_trust_value, get_ownertrust_with_min, get_ownertrust_info)
(get_ownertrust_string, get_validity_info, get_validity_string)
(clean_sigs_from_uid, clean_uid_from_key, clean_key): Move to trust.c.
(mark_usable_uid_certs): Move to trust.c and make global.
(is_in_klist): Move as inline to trustdb.h.
(trustdb_check_or_update): Rename to tdb_check_or_update
(revalidation_mark): Rename to tdb_revalidation_mark.
(get_ownertrust): Rename to tdb_get_ownertrust.
(get_min_ownertrust): Rename to tdb_get_min_ownertrust.
(update_ownertrust): Rename to tdb_update_ownertrust.
(clear_ownertrusts): Rename to tdb_clear_ownertrusts.
(cache_disabled_value): Rename to tdb_cache_disabled_value.
(check_trustdb_stale): Rename to tdb_check_trustdb_stale.
(get_validity): Rename to tdb_get_validity_core, add arg MAIN_PK and
factor some code out to ...
* trust.c (get_validity): ...new.
(check_or_update_trustdb): New wrapper.
(revalidation_mark): New wrapper.
(get_ownertrust): New wrapper.
(get_ownertrust_with_min): New wrapper.
(update_ownertrust): New wrapper.
(clear_ownertrusts): New wrapper.
(cache_disabled_value): New wrapper.
(check_trustdb_stale): New wrapper.
* tests/openpgp/defs.inc (opt_always): New. Use in all tests instead
of --always-trust.
2014-02-10 17:05:54 +01:00
|
|
|
if NO_TRUST_MODELS
|
|
|
|
trust_source =
|
|
|
|
else
|
|
|
|
trust_source = trustdb.c trustdb.h tdbdump.c tdbio.c tdbio.h
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
2013-04-25 13:00:16 +02:00
|
|
|
if HAVE_W32_SYSTEM
|
|
|
|
resource_objs += gpg-w32info.o
|
|
|
|
endif
|
2006-10-23 16:02:13 +02:00
|
|
|
|
2003-06-05 09:14:21 +02:00
|
|
|
common_source = \
|
2006-04-19 13:26:11 +02:00
|
|
|
gpg.h \
|
gpg: Remove cipher.h and put algo ids into a common file.
* common/openpgpdefs.h (cipher_algo_t, pubkey_algo_t, digest_algo_t)
(compress_algo_t): New.
* agent/gpg-agent.c: Remove ../g10/cipher.h. Add openpgpdefs.h.
* g10/cipher.h (DEK): Move to ...
* g10/dek.h: new file.
* g10/cipher.h (is_RSA, is_ELGAMAL, is_DSA)
(PUBKEY_MAX_NPKEY, PUBKEY_MAX_NSKEY, PUBKEY_MAX_NSIG, PUBKEY_MAX_NENC)
(PUBKEY_USAGE_SIG, PUBKEY_USAGE_ENC, PUBKEY_USAGE_CERT)
(PUBKEY_USAGE_AUTH, PUBKEY_USAGE_NONE): Move to
* g10/packet.h: here.
* g10/cipher.h: Remove. Remove from all files.
* g10/filter.h, g10/packet.h: Include dek.h.
* g10/Makefile.am (common_source): Remove cipher.h. Add dek.h.
Signed-off-by: Werner Koch <wk@gnupg.org>
2014-01-29 20:35:05 +01:00
|
|
|
dek.h \
|
2003-06-05 09:14:21 +02:00
|
|
|
build-packet.c \
|
|
|
|
compress.c \
|
2006-10-23 16:02:13 +02:00
|
|
|
$(bzip2_source) \
|
2003-06-05 09:14:21 +02:00
|
|
|
filter.h \
|
|
|
|
free-packet.c \
|
|
|
|
getkey.c \
|
|
|
|
keydb.c keydb.h \
|
|
|
|
keyring.c keyring.h \
|
|
|
|
seskey.c \
|
|
|
|
kbnode.c \
|
|
|
|
main.h \
|
|
|
|
mainproc.c \
|
|
|
|
armor.c \
|
|
|
|
mdfilter.c \
|
|
|
|
textfilter.c \
|
|
|
|
progress.c \
|
|
|
|
misc.c \
|
2008-12-12 09:54:50 +01:00
|
|
|
rmd160.c rmd160.h \
|
2003-06-05 09:14:21 +02:00
|
|
|
options.h \
|
|
|
|
openfile.c \
|
|
|
|
keyid.c \
|
|
|
|
packet.h \
|
|
|
|
parse-packet.c \
|
2007-11-19 17:03:50 +01:00
|
|
|
cpr.c \
|
2003-06-05 09:14:21 +02:00
|
|
|
plaintext.c \
|
|
|
|
sig-check.c \
|
|
|
|
keylist.c \
|
2011-01-06 02:33:17 +01:00
|
|
|
pkglue.c pkglue.h \
|
|
|
|
ecdh.c
|
2003-06-05 09:14:21 +02:00
|
|
|
|
2006-04-19 13:26:11 +02:00
|
|
|
gpg2_SOURCES = gpg.c \
|
2006-12-21 20:40:00 +01:00
|
|
|
server.c \
|
2003-06-05 09:14:21 +02:00
|
|
|
$(common_source) \
|
|
|
|
pkclist.c \
|
|
|
|
skclist.c \
|
|
|
|
pubkey-enc.c \
|
|
|
|
passphrase.c \
|
2009-10-02 16:57:55 +02:00
|
|
|
decrypt.c \
|
|
|
|
decrypt-data.c \
|
2003-06-05 09:14:21 +02:00
|
|
|
cipher.c \
|
2009-09-28 16:37:48 +02:00
|
|
|
encrypt.c \
|
2003-06-05 09:14:21 +02:00
|
|
|
sign.c \
|
|
|
|
verify.c \
|
|
|
|
revoke.c \
|
|
|
|
keyedit.c \
|
|
|
|
dearmor.c \
|
|
|
|
import.c \
|
|
|
|
export.c \
|
2014-06-05 11:19:59 +02:00
|
|
|
migrate.c \
|
2003-06-05 09:14:21 +02:00
|
|
|
delkey.c \
|
|
|
|
keygen.c \
|
|
|
|
helptext.c \
|
|
|
|
keyserver.c \
|
|
|
|
keyserver-internal.h \
|
2011-01-10 14:30:17 +01:00
|
|
|
call-dirmngr.c call-dirmngr.h \
|
2003-06-05 09:14:21 +02:00
|
|
|
photoid.c photoid.h \
|
2003-06-05 09:14:21 +02:00
|
|
|
call-agent.c call-agent.h \
|
gpg: Allow building without any trust model support.
* configure.ac: Add option --disable-trust-models
(NO_TRUST_MODELS): New ac_define and am_conditional.
* g10/Makefile.am (trust_source): New.
(gpg2_SOURCES): Factor some files out to above. Add trust.c.
* g10/gpg.c [NO_TRUST_MODELS]: Disable options --export-ownertrust,
--import-ownertrust, --update-trustdb, --check-trustdb, --fix-trustdb,
--list-trustdb, --trustdb-name, --auto-check-trustdb,
--no-auto-check-trustdb, and --force-ownertrust.
(parse_trust_model) [NO_TRUST_MODELS]: Do not build.
(main) [NO_TRUST_MODELS]: Set trust_model to always and exclude all
trustdb related option code.
* g10/keyedit.c (cmds) [NO_TRUST_MODELS]: Remove menu items "trust",
"enable", and "disable".
* g10/keylist.c (public_key_list) [NO_TRUST_MODELS]: Do not print
"tru" record.
* g10/trust.c: New.
* g10/trustdb.c (struct key_item): Move to trustdb.h.
(register_trusted_keyid): Rename to tdb_register_trusted_keyid.
(register_trusted_key): Rename to tdb_register_trusted_key.
(trust_letter, uid_trust_string_fixed, trust_value_to_string)
(string_to_trust_value, get_ownertrust_with_min, get_ownertrust_info)
(get_ownertrust_string, get_validity_info, get_validity_string)
(clean_sigs_from_uid, clean_uid_from_key, clean_key): Move to trust.c.
(mark_usable_uid_certs): Move to trust.c and make global.
(is_in_klist): Move as inline to trustdb.h.
(trustdb_check_or_update): Rename to tdb_check_or_update
(revalidation_mark): Rename to tdb_revalidation_mark.
(get_ownertrust): Rename to tdb_get_ownertrust.
(get_min_ownertrust): Rename to tdb_get_min_ownertrust.
(update_ownertrust): Rename to tdb_update_ownertrust.
(clear_ownertrusts): Rename to tdb_clear_ownertrusts.
(cache_disabled_value): Rename to tdb_cache_disabled_value.
(check_trustdb_stale): Rename to tdb_check_trustdb_stale.
(get_validity): Rename to tdb_get_validity_core, add arg MAIN_PK and
factor some code out to ...
* trust.c (get_validity): ...new.
(check_or_update_trustdb): New wrapper.
(revalidation_mark): New wrapper.
(get_ownertrust): New wrapper.
(get_ownertrust_with_min): New wrapper.
(update_ownertrust): New wrapper.
(clear_ownertrusts): New wrapper.
(cache_disabled_value): New wrapper.
(check_trustdb_stale): New wrapper.
* tests/openpgp/defs.inc (opt_always): New. Use in all tests instead
of --always-trust.
2014-02-10 17:05:54 +01:00
|
|
|
trust.c $(trust_source) \
|
2014-02-07 13:46:36 +01:00
|
|
|
$(card_source) \
|
2003-06-05 09:14:21 +02:00
|
|
|
exec.c exec.h
|
|
|
|
|
2003-08-05 19:11:04 +02:00
|
|
|
gpgv2_SOURCES = gpgv.c \
|
2003-06-05 09:14:21 +02:00
|
|
|
$(common_source) \
|
2011-01-25 16:54:18 +01:00
|
|
|
verify.c
|
2003-06-05 09:14:21 +02:00
|
|
|
|
|
|
|
#gpgd_SOURCES = gpgd.c \
|
|
|
|
# ks-proto.h \
|
|
|
|
# ks-proto.c \
|
|
|
|
# ks-db.c \
|
|
|
|
# ks-db.h \
|
|
|
|
# $(common_source)
|
|
|
|
|
2012-12-27 15:04:29 +01:00
|
|
|
# FIXME: Libkeybox.a links to libksba thus we need to add libksba
|
|
|
|
# here, even that it is not used by gpg. A proper solution would
|
|
|
|
# either to split up libkeybox.a or to use a separate keybox daemon.
|
2006-09-21 15:30:45 +02:00
|
|
|
LDADD = $(needed_libs) ../common/libgpgrl.a \
|
2014-10-08 09:12:51 +02:00
|
|
|
$(ZLIBS) $(DNSLIBS) \
|
2006-10-17 16:34:42 +02:00
|
|
|
$(LIBINTL) $(CAPLIBS) $(NETLIBS)
|
2014-10-08 09:12:51 +02:00
|
|
|
gpg2_LDADD = $(LDADD) $(LIBGCRYPT_LIBS) $(LIBREADLINE) \
|
2012-12-27 15:04:29 +01:00
|
|
|
$(KSBA_LIBS) $(LIBASSUAN_LIBS) $(GPG_ERROR_LIBS) \
|
2013-04-25 13:00:16 +02:00
|
|
|
$(LIBICONV) $(resource_objs) $(extra_sys_libs)
|
2010-11-23 19:46:41 +01:00
|
|
|
gpg2_LDFLAGS = $(extra_bin_ldflags)
|
2012-12-27 15:04:29 +01:00
|
|
|
gpgv2_LDADD = $(LDADD) $(LIBGCRYPT_LIBS) \
|
2014-10-08 09:12:51 +02:00
|
|
|
$(KSBA_LIBS) $(GPG_ERROR_LIBS) \
|
2013-04-25 13:00:16 +02:00
|
|
|
$(LIBICONV) $(resource_objs) $(extra_sys_libs)
|
2010-11-23 19:46:41 +01:00
|
|
|
gpgv2_LDFLAGS = $(extra_bin_ldflags)
|
2003-06-05 09:14:21 +02:00
|
|
|
|
2011-02-04 12:57:53 +01:00
|
|
|
t_common_ldadd =
|
2008-12-11 18:44:52 +01:00
|
|
|
module_tests = t-rmd160
|
|
|
|
t_rmd160_SOURCES = t-rmd160.c rmd160.c
|
|
|
|
t_rmd160_LDADD = $(t_common_ldadd)
|
|
|
|
|
|
|
|
|
2006-09-21 15:30:45 +02:00
|
|
|
$(PROGRAMS): $(needed_libs) ../common/libgpgrl.a
|
2003-06-05 09:14:21 +02:00
|
|
|
|
|
|
|
install-data-local:
|
|
|
|
$(mkinstalldirs) $(DESTDIR)$(pkgdatadir)
|
|
|
|
$(INSTALL_DATA) $(srcdir)/options.skel \
|
2004-08-31 09:57:33 +02:00
|
|
|
$(DESTDIR)$(pkgdatadir)/gpg-conf.skel
|
2014-08-18 16:38:13 +02:00
|
|
|
$(INSTALL_DATA) $(srcdir)/distsigkey.gpg \
|
|
|
|
$(DESTDIR)$(pkgdatadir)/distsigkey.gpg
|
2003-08-05 19:11:04 +02:00
|
|
|
|
2009-09-03 22:51:55 +02:00
|
|
|
uninstall-local:
|
2011-02-04 12:57:53 +01:00
|
|
|
-@rm $(DESTDIR)$(pkgdatadir)/gpg-conf.skel
|
2014-08-18 16:38:13 +02:00
|
|
|
-@rm $(DESTDIR)$(pkgdatadir)/distsigkey.gpg
|
2010-04-14 16:39:16 +02:00
|
|
|
|
|
|
|
|
|
|
|
# There has never been a gpg for WindowsCE, thus we don't need a gpg2 here
|
|
|
|
if HAVE_W32CE_SYSTEM
|
|
|
|
install-exec-hook:
|
|
|
|
mv -f $(DESTDIR)$(bindir)/gpg2$(EXEEXT) \
|
|
|
|
$(DESTDIR)$(bindir)/gpg$(EXEEXT)
|
|
|
|
endif
|