2005-04-05 17:09:13 +00:00
|
|
|
# Copyright (C) 1998, 1999, 2000, 2001, 2005 Free Software Foundation, Inc.
|
2002-06-29 13:46:34 +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
|
|
|
|
# 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
|
2005-05-31 08:39:18 +00:00
|
|
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
2002-06-29 13:46:34 +00:00
|
|
|
|
1997-11-18 14:06:00 +00:00
|
|
|
## Process this file with automake to produce Makefile.in
|
|
|
|
|
2002-06-29 13:46:34 +00:00
|
|
|
INCLUDES = -I.. -I$(top_srcdir)/include -I$(top_srcdir)/intl
|
1997-11-18 14:06:00 +00:00
|
|
|
|
2006-09-28 19:36:55 +00:00
|
|
|
noinst_LIBRARIES = libutil.a libcompat.a
|
1997-11-18 14:06:00 +00:00
|
|
|
|
2005-12-06 20:54:05 +00:00
|
|
|
libutil_a_SOURCES = logger.c fileutil.c miscutil.c strgutil.c \
|
|
|
|
ttyio.c argparse.c memory.c secmem.c errors.c iobuf.c \
|
2006-09-28 19:36:55 +00:00
|
|
|
dotlock.c http.c pka.c membuf.c cert.c \
|
|
|
|
$(libcompat_a_SOURCES)
|
2005-12-06 20:54:05 +00:00
|
|
|
|
|
|
|
if USE_SIMPLE_GETTEXT
|
|
|
|
libutil_a_SOURCES+=simple-gettext.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
if HAVE_W32_SYSTEM
|
|
|
|
libutil_a_SOURCES+=w32reg.c
|
|
|
|
endif
|
2005-04-05 17:09:13 +00:00
|
|
|
|
|
|
|
if ENABLE_AGENT_SUPPORT
|
2005-12-06 20:54:05 +00:00
|
|
|
libutil_a_SOURCES+=assuan-buffer.c assuan-client.c assuan-defs.h \
|
|
|
|
assuan-errors.c assuan-logging.c assuan-socket-connect.c \
|
|
|
|
assuan-connect.c assuan-socket.c assuan-util.c
|
2005-04-05 17:09:13 +00:00
|
|
|
endif
|
|
|
|
|
2005-12-06 20:54:05 +00:00
|
|
|
if USE_INTERNAL_REGEX
|
|
|
|
libutil_a_SOURCES+=regex.c
|
|
|
|
endif
|
2002-06-29 13:46:34 +00:00
|
|
|
|
2005-12-23 05:00:55 +00:00
|
|
|
if USE_DNS_SRV
|
|
|
|
libutil_a_SOURCES+=srv.c srv.h
|
|
|
|
endif
|
|
|
|
|
2005-12-06 20:54:05 +00:00
|
|
|
# The internal regex code #includes these.
|
|
|
|
EXTRA_libutil_a_SOURCES = regcomp.c regexec.c regex_internal.c \
|
|
|
|
regex_internal.h
|
1997-11-18 14:06:00 +00:00
|
|
|
|
2006-09-28 19:36:55 +00:00
|
|
|
# LIBOBJS and libcompat.a are for the replacement functions and
|
|
|
|
# similar simple stuff. They're segregated in libcompat so we can
|
|
|
|
# link it to the keyserver helpers which have different licensing.
|
|
|
|
# libutil.a, by definition, includes everything that libcompat.a does.
|
|
|
|
|
2005-12-06 20:54:05 +00:00
|
|
|
libutil_a_DEPENDENCIES = @LIBOBJS@
|
|
|
|
libutil_a_LIBADD = @LIBOBJS@
|
1997-11-18 14:06:00 +00:00
|
|
|
|
2006-09-28 19:36:55 +00:00
|
|
|
libcompat_a_SOURCES=compat.c
|
|
|
|
libcompat_a_DEPENDENCIES = @LIBOBJS@
|
|
|
|
libcompat_a_LIBADD = @LIBOBJS@
|
|
|
|
|
1999-01-16 08:29:29 +00:00
|
|
|
http-test: http.c
|
2005-07-28 18:59:36 +00:00
|
|
|
cc -DHAVE_CONFIG_H -I. -I. -I.. $(INCLUDES) $(LDFLAGS) -g -Wall \
|
2006-07-08 23:29:25 +00:00
|
|
|
-DTEST -o http-test http.c libutil.a @LIBINTL@ @DNSLIBS@ @CAPLIBS@
|
1997-11-18 14:06:00 +00:00
|
|
|
|
2003-03-11 22:04:53 +00:00
|
|
|
srv-test: srv.c
|
2005-07-28 18:59:36 +00:00
|
|
|
cc -DHAVE_CONFIG_H -I. -I. -I.. $(INCLUDES) $(LDFLAGS) -g -Wall \
|
2006-07-08 23:29:25 +00:00
|
|
|
-DTEST -o srv-test srv.c libutil.a @LIBINTL@ @DNSLIBS@ @CAPLIBS@
|
2005-07-28 18:59:36 +00:00
|
|
|
|
|
|
|
pka-test: pka.c
|
|
|
|
cc -DHAVE_CONFIG_H -I. -I. -I.. $(INCLUDES) $(LDFLAGS) -g -Wall \
|
2006-07-08 23:29:25 +00:00
|
|
|
-DTEST -o pka-test pka.c libutil.a @LIBINTL@ @DNSLIBS@ @CAPLIBS@
|
2005-12-23 18:15:24 +00:00
|
|
|
|
|
|
|
cert-test: cert.c
|
|
|
|
cc -DHAVE_CONFIG_H -I. -I. -I.. $(INCLUDES) $(LDFLAGS) -g -Wall \
|
2006-07-08 23:29:25 +00:00
|
|
|
-DTEST -o cert-test cert.c libutil.a @LIBINTL@ @DNSLIBS@ @CAPLIBS@
|