2003-06-05 07:14:21 +00:00
|
|
|
# Copyright (C) 1998, 1999, 2000, 2001, 2002,
|
2006-04-19 11:26:11 +00:00
|
|
|
# 2003, 2006 Free Software Foundation, Inc.
|
2003-06-05 07:14:21 +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-06-05 07:14:21 +00:00
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
# 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-06-05 07:14:21 +00:00
|
|
|
|
|
|
|
## Process this file with automake to produce Makefile.in
|
|
|
|
|
|
|
|
EXTRA_DIST = options.skel
|
2004-02-12 09:28:52 +00: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 15:46:01 +00:00
|
|
|
AM_CPPFLAGS = -I$(top_srcdir)/gl -I$(top_srcdir)/common \
|
|
|
|
-I$(top_srcdir)/include -I$(top_srcdir)/intl
|
2004-02-12 09:28:52 +00:00
|
|
|
|
|
|
|
include $(top_srcdir)/am/cmacros.am
|
|
|
|
|
2006-10-24 14:51:39 +00:00
|
|
|
AM_CFLAGS = $(LIBGCRYPT_CFLAGS) $(LIBASSUAN_CFLAGS) $(GPG_ERROR_CFLAGS)
|
2004-02-12 09:28:52 +00:00
|
|
|
|
2007-06-14 17:05:07 +00:00
|
|
|
needed_libs = $(libcommon) ../jnlib/libjnlib.a ../gl/libgnu.a
|
2003-06-05 07:14:21 +00:00
|
|
|
|
2003-08-05 17:11:04 +00:00
|
|
|
bin_PROGRAMS = gpg2 gpgv2
|
2008-12-11 17:44:52 +00:00
|
|
|
noinst_PROGRAMS = $(module_tests)
|
|
|
|
TESTS = $(module_tests)
|
2003-06-05 07:14:21 +00:00
|
|
|
|
2006-10-23 14:02:13 +00:00
|
|
|
if ENABLE_BZIP2_SUPPORT
|
|
|
|
bzip2_source = compress-bz2.c
|
|
|
|
else
|
|
|
|
bzip2_source =
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
2003-06-05 07:14:21 +00:00
|
|
|
common_source = \
|
2006-04-19 11:26:11 +00:00
|
|
|
gpg.h \
|
2003-06-05 07:14:21 +00:00
|
|
|
build-packet.c \
|
|
|
|
compress.c \
|
2006-10-23 14:02:13 +00:00
|
|
|
$(bzip2_source) \
|
2003-06-05 07:14:21 +00: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 08:54:50 +00:00
|
|
|
rmd160.c rmd160.h \
|
2003-06-05 07:14:21 +00:00
|
|
|
options.h \
|
|
|
|
openfile.c \
|
|
|
|
keyid.c \
|
|
|
|
packet.h \
|
|
|
|
parse-packet.c \
|
2007-11-19 16:03:50 +00:00
|
|
|
cpr.c \
|
2003-06-05 07:14:21 +00:00
|
|
|
plaintext.c \
|
|
|
|
sig-check.c \
|
|
|
|
keylist.c \
|
2003-06-27 20:53:09 +00:00
|
|
|
pkglue.c pkglue.h
|
2003-06-05 07:14:21 +00:00
|
|
|
|
2006-04-19 11:26:11 +00:00
|
|
|
gpg2_SOURCES = gpg.c \
|
2006-12-21 19:40:00 +00:00
|
|
|
server.c \
|
2003-06-05 07:14:21 +00:00
|
|
|
$(common_source) \
|
|
|
|
pkclist.c \
|
|
|
|
skclist.c \
|
|
|
|
pubkey-enc.c \
|
|
|
|
passphrase.c \
|
|
|
|
seckey-cert.c \
|
|
|
|
encr-data.c \
|
|
|
|
cipher.c \
|
|
|
|
encode.c \
|
|
|
|
sign.c \
|
|
|
|
verify.c \
|
|
|
|
revoke.c \
|
|
|
|
decrypt.c \
|
|
|
|
keyedit.c \
|
|
|
|
dearmor.c \
|
|
|
|
import.c \
|
|
|
|
export.c \
|
|
|
|
trustdb.c \
|
|
|
|
trustdb.h \
|
|
|
|
tdbdump.c \
|
|
|
|
tdbio.c \
|
|
|
|
tdbio.h \
|
|
|
|
delkey.c \
|
|
|
|
keygen.c \
|
|
|
|
helptext.c \
|
|
|
|
keyserver.c \
|
|
|
|
keyserver-internal.h \
|
|
|
|
photoid.c photoid.h \
|
2003-06-05 07:14:21 +00:00
|
|
|
call-agent.c call-agent.h \
|
2003-07-23 07:11:06 +00:00
|
|
|
card-util.c \
|
2003-06-05 07:14:21 +00:00
|
|
|
exec.c exec.h
|
|
|
|
|
2003-08-05 17:11:04 +00:00
|
|
|
gpgv2_SOURCES = gpgv.c \
|
2003-06-05 07:14:21 +00:00
|
|
|
$(common_source) \
|
|
|
|
verify.c
|
|
|
|
|
|
|
|
#gpgd_SOURCES = gpgd.c \
|
|
|
|
# ks-proto.h \
|
|
|
|
# ks-proto.c \
|
|
|
|
# ks-db.c \
|
|
|
|
# ks-db.h \
|
|
|
|
# $(common_source)
|
|
|
|
|
2006-09-21 13:30:45 +00:00
|
|
|
LDADD = $(needed_libs) ../common/libgpgrl.a \
|
|
|
|
$(ZLIBS) $(DNSLIBS) $(LIBREADLINE) \
|
2006-10-17 14:34:42 +00:00
|
|
|
$(LIBINTL) $(CAPLIBS) $(NETLIBS)
|
2007-06-08 17:38:13 +00:00
|
|
|
gpg2_LDADD = $(LDADD) $(LIBGCRYPT_LIBS) $(LIBASSUAN_LIBS) $(GPG_ERROR_LIBS) \
|
2006-12-07 23:20:20 +00:00
|
|
|
$(LIBICONV)
|
2007-06-06 18:12:30 +00:00
|
|
|
gpgv2_LDADD = $(LDADD) $(LIBGCRYPT_LIBS) $(LIBASSUAN_LIBS) $(GPG_ERROR_LIBS) \
|
2006-12-07 23:20:20 +00:00
|
|
|
$(LIBICONV)
|
2003-06-05 07:14:21 +00:00
|
|
|
|
2008-12-11 17:44:52 +00:00
|
|
|
t_common_ldadd =
|
|
|
|
module_tests = t-rmd160
|
|
|
|
t_rmd160_SOURCES = t-rmd160.c rmd160.c
|
|
|
|
t_rmd160_LDADD = $(t_common_ldadd)
|
|
|
|
|
|
|
|
|
2006-09-21 13:30:45 +00:00
|
|
|
$(PROGRAMS): $(needed_libs) ../common/libgpgrl.a
|
2003-06-05 07:14:21 +00:00
|
|
|
|
|
|
|
install-data-local:
|
|
|
|
$(mkinstalldirs) $(DESTDIR)$(pkgdatadir)
|
|
|
|
$(INSTALL_DATA) $(srcdir)/options.skel \
|
2004-08-31 07:57:33 +00:00
|
|
|
$(DESTDIR)$(pkgdatadir)/gpg-conf.skel
|
2003-08-05 17:11:04 +00:00
|
|
|
|