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