2003-06-05 09:14:21 +02:00
|
|
|
# Copyright (C) 1998, 1999, 2000, 2001, 2002,
|
2006-04-19 13:26:11 +02:00
|
|
|
# 2003, 2006 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
|
|
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
|
|
# (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
|
|
|
|
# along with this program; if not, write to the Free Software
|
2006-06-20 19:21:37 +02:00
|
|
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
|
|
|
|
# USA.
|
2003-06-05 09:14:21 +02:00
|
|
|
|
|
|
|
## Process this file with automake to produce Makefile.in
|
|
|
|
|
|
|
|
EXTRA_DIST = options.skel
|
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 \
|
|
|
|
-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
|
|
|
|
2006-11-21 16:29:52 +01:00
|
|
|
needed_libs = ../common/libcommon.a ../jnlib/libjnlib.a ../gl/libgnu.a
|
2003-06-05 09:14:21 +02:00
|
|
|
|
2003-08-05 19:11:04 +02:00
|
|
|
bin_PROGRAMS = gpg2 gpgv2
|
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
|
|
|
|
|
|
|
|
|
2003-06-05 09:14:21 +02:00
|
|
|
common_source = \
|
2006-04-19 13:26:11 +02:00
|
|
|
gpg.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 \
|
|
|
|
options.h \
|
|
|
|
openfile.c \
|
|
|
|
keyid.c \
|
|
|
|
packet.h \
|
|
|
|
parse-packet.c \
|
|
|
|
status.c \
|
|
|
|
status.h \
|
|
|
|
plaintext.c \
|
|
|
|
sig-check.c \
|
|
|
|
keylist.c \
|
2003-06-27 22:53:09 +02:00
|
|
|
pkglue.c pkglue.h
|
2003-06-05 09:14:21 +02:00
|
|
|
|
2006-04-19 13:26:11 +02:00
|
|
|
gpg2_SOURCES = gpg.c \
|
2003-06-05 09:14:21 +02: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 09:14:21 +02:00
|
|
|
call-agent.c call-agent.h \
|
2003-07-23 09:11:06 +02:00
|
|
|
card-util.c \
|
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) \
|
|
|
|
verify.c
|
|
|
|
|
|
|
|
#gpgd_SOURCES = gpgd.c \
|
|
|
|
# ks-proto.h \
|
|
|
|
# ks-proto.c \
|
|
|
|
# ks-db.c \
|
|
|
|
# ks-db.h \
|
|
|
|
# $(common_source)
|
|
|
|
|
2006-09-21 15:30:45 +02:00
|
|
|
LDADD = $(needed_libs) ../common/libgpgrl.a \
|
|
|
|
$(ZLIBS) $(DNSLIBS) $(LIBREADLINE) \
|
2006-10-17 16:34:42 +02:00
|
|
|
$(LIBINTL) $(CAPLIBS) $(NETLIBS)
|
2006-09-06 23:41:14 +02:00
|
|
|
gpg2_LDADD = $(LIBGCRYPT_LIBS) $(LDADD) $(LIBASSUAN_LIBS) $(GPG_ERROR_LIBS)
|
|
|
|
gpgv2_LDADD = $(LIBGCRYPT_LIBS) $(LDADD) $(LIBASSUAN_LIBS) $(GPG_ERROR_LIBS)
|
2003-06-05 09:14:21 +02:00
|
|
|
|
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
|
2003-08-05 19:11:04 +02:00
|
|
|
|