2003-08-05 19:11:04 +02:00
|
|
|
# Makefile for common gnupg modules
|
|
|
|
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
|
|
|
|
#
|
|
|
|
# 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-08-05 19:11:04 +02:00
|
|
|
|
|
|
|
## Process this file with automake to produce Makefile.in
|
|
|
|
|
2006-10-17 16:34:42 +02:00
|
|
|
noinst_LIBRARIES = libcommon.a libcommonpth.a libsimple-pwquery.a libgpgrl.a
|
2006-09-15 20:53:37 +02:00
|
|
|
noinst_PROGRAMS = $(module_tests)
|
|
|
|
TESTS = $(module_tests)
|
2003-08-05 19:11:04 +02: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
|
|
|
|
|
2006-10-17 16:34:42 +02:00
|
|
|
AM_CFLAGS = $(LIBGCRYPT_CFLAGS) $(KSBA_CFLAGS)
|
2003-08-05 19:11:04 +02:00
|
|
|
|
2006-10-17 16:34:42 +02:00
|
|
|
common_sources = \
|
2006-09-21 15:30:45 +02:00
|
|
|
common-defs.h \
|
2003-08-05 19:11:04 +02:00
|
|
|
util.h i18n.h \
|
|
|
|
errors.h \
|
2006-08-21 22:20:23 +02:00
|
|
|
openpgpdefs.h \
|
|
|
|
keyserver.h \
|
2004-01-27 17:40:42 +01:00
|
|
|
sexp-parse.h \
|
2005-04-11 18:10:03 +02:00
|
|
|
sexputil.c \
|
2003-08-05 19:11:04 +02:00
|
|
|
sysutils.c sysutils.h \
|
2004-12-21 11:03:00 +01:00
|
|
|
homedir.c \
|
2003-08-05 19:11:04 +02:00
|
|
|
gettime.c \
|
|
|
|
yesno.c \
|
2004-02-10 20:27:54 +01:00
|
|
|
b64enc.c \
|
2006-09-15 20:53:37 +02:00
|
|
|
convert.c \
|
2003-08-05 19:11:04 +02:00
|
|
|
miscellaneous.c \
|
2004-01-30 13:37:09 +01:00
|
|
|
xasprintf.c \
|
2004-06-14 10:32:07 +02:00
|
|
|
xreadline.c \
|
2003-08-05 19:11:04 +02:00
|
|
|
membuf.c membuf.h \
|
|
|
|
iobuf.c iobuf.h \
|
|
|
|
ttyio.c ttyio.h \
|
2004-03-06 21:11:19 +01:00
|
|
|
asshelp.c asshelp.h \
|
2004-12-06 19:28:56 +01:00
|
|
|
exechelp.c exechelp.h \
|
2004-12-02 08:48:09 +01:00
|
|
|
simple-gettext.c \
|
|
|
|
w32reg.c \
|
2003-08-14 21:58:03 +02:00
|
|
|
signal.c \
|
2005-01-26 23:24:59 +01:00
|
|
|
dynload.h \
|
2006-05-23 18:19:43 +02:00
|
|
|
estream.c estream.h \
|
2006-08-16 12:47:53 +02:00
|
|
|
srv.c srv.h \
|
2006-05-23 18:19:43 +02:00
|
|
|
dns-cert.c dns-cert.h \
|
2006-08-11 13:04:38 +02:00
|
|
|
pka.c pka.h \
|
|
|
|
http.c http.h
|
2003-08-05 19:11:04 +02:00
|
|
|
|
2006-10-17 16:34:42 +02:00
|
|
|
libcommon_a_SOURCES = $(common_sources)
|
2006-10-24 16:48:02 +02:00
|
|
|
libcommon_a_CFLAGS = $(AM_CFLAGS) $(LIBASSUAN_CFLAGS) -DWITHOUT_GNU_PTH=1
|
2006-10-17 16:34:42 +02:00
|
|
|
|
|
|
|
libcommonpth_a_SOURCES = $(common_sources)
|
|
|
|
libcommonpth_a_CFLAGS = $(AM_CFLAGS) $(LIBASSUAN_PTH_CFLAGS) $(PTH_CFLAGS)
|
|
|
|
|
2003-08-05 19:11:04 +02:00
|
|
|
libsimple_pwquery_a_SOURCES = \
|
2004-03-06 21:11:19 +01:00
|
|
|
simple-pwquery.c simple-pwquery.h asshelp.c asshelp.h
|
2006-10-24 16:48:02 +02:00
|
|
|
libsimple_pwquery_a_CFLAGS = $(AM_CFLAGS) $(LIBASSUAN_CFLAGS)
|
2003-08-05 19:11:04 +02:00
|
|
|
|
2006-09-21 15:30:45 +02:00
|
|
|
libgpgrl_a_SOURCES = \
|
|
|
|
gpgrlhelp.c
|
2006-09-15 20:53:37 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# Module tests
|
|
|
|
#
|
|
|
|
module_tests = t-convert
|
|
|
|
|
|
|
|
t_common_ldadd = ../jnlib/libjnlib.a ../common/libcommon.a ../gl/libgnu.a \
|
|
|
|
$(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS)
|
|
|
|
|
2006-11-05 16:08:58 +01:00
|
|
|
t_convert_DEPENDENCIES = convert.c libcommon.a
|
2006-09-15 20:53:37 +02:00
|
|
|
t_convert_LDADD = $(t_common_ldadd)
|
|
|
|
|