1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-08 23:37:47 +02:00
gnupg/util/Makefile.am

83 lines
2.8 KiB
Makefile
Raw Normal View History

# Copyright (C) 1998, 1999, 2000, 2001, 2005, 2006, 2008
# 2009 Free Software Foundation, Inc.
2002-06-29 15:46:34 +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
2007-10-23 12:48:09 +02:00
# the Free Software Foundation; either version 3 of the License, or
2002-06-29 15:46:34 +02:00
# (at your option) any later version.
#
2002-06-29 15:46:34 +02:00
# 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.
#
2002-06-29 15:46:34 +02:00
# You should have received a copy of the GNU General Public License
2007-10-23 12:48:09 +02:00
# along with this program; if not, see <http://www.gnu.org/licenses/>.
1997-11-18 15:06:00 +01:00
## Process this file with automake to produce Makefile.in
AM_CPPFLAGS= -I.. -I$(top_srcdir)/include -I$(top_srcdir)/intl
1997-11-18 15:06:00 +01:00
noinst_LIBRARIES = libutil.a libcompat.a
1997-11-18 15:06:00 +01:00
libutil_a_SOURCES = logger.c fileutil.c miscutil.c strgutil.c \
ttyio.c argparse.c memory.c secmem.c errors.c iobuf.c \
dotlock.c http.c pka.c membuf.c cert.c convert.c \
estream-printf.c \
$(libcompat_a_SOURCES)
if USE_SIMPLE_GETTEXT
libutil_a_SOURCES+=simple-gettext.c
endif
if HAVE_W32_SYSTEM
libutil_a_SOURCES+=w32reg.c
endif
if ENABLE_AGENT_SUPPORT
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
endif
if USE_INTERNAL_REGEX
libutil_a_SOURCES+=regex.c
endif
2002-06-29 15:46:34 +02:00
# The internal regex code #includes these.
EXTRA_libutil_a_SOURCES = regcomp.c regexec.c regex_internal.c \
regex_internal.h
1997-11-18 15:06:00 +01: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.
libutil_a_DEPENDENCIES = @LIBOBJS@
libutil_a_LIBADD = @LIBOBJS@
1997-11-18 15:06:00 +01:00
libcompat_a_SOURCES=compat.c
libcompat_a_DEPENDENCIES = @LIBOBJS@
libcompat_a_LIBADD = @LIBOBJS@
if USE_DNS_SRV
libcompat_a_SOURCES+=srv.c
endif
http-test: http.c
$(CC) -DHAVE_CONFIG_H $(CFLAGS) -I. $(INCLUDES) $(LDFLAGS) -g -Wall \
-DTEST -o http-test http.c libutil.a @LIBINTL@ @DNSLIBS@ @CAPLIBS@
1997-11-18 15:06:00 +01:00
srv-test: srv.c
$(CC) -DHAVE_CONFIG_H $(CFLAGS) -I. $(INCLUDES) $(LDFLAGS) -g -Wall \
-DTEST -o srv-test srv.c libutil.a @LIBINTL@ @DNSLIBS@ @CAPLIBS@
2005-07-28 20:59:36 +02:00
pka-test: pka.c
$(CC) -DHAVE_CONFIG_H $(CFLAGS) -I. $(INCLUDES) $(LDFLAGS) -g -Wall \
-DTEST -o pka-test pka.c libutil.a @LIBINTL@ @DNSLIBS@ @CAPLIBS@
2005-12-23 19:15:24 +01:00
cert-test: cert.c
$(CC) -DHAVE_CONFIG_H $(CFLAGS) -I. $(INCLUDES) $(LDFLAGS) -g -Wall \
-DTEST -o cert-test cert.c libutil.a @LIBINTL@ @DNSLIBS@ @CAPLIBS@