1 # Copyright (C) 1998, 1999, 2000, 2001, 2005 Free Software Foundation, Inc.
3 # This file is part of GnuPG.
5 # GnuPG is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
10 # GnuPG is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
19 ## Process this file with automake to produce Makefile.in
21 INCLUDES = -I.. -I$(top_srcdir)/include -I$(top_srcdir)/intl
23 noinst_LIBRARIES = libutil.a
25 libutil_a_SOURCES = logger.c fileutil.c miscutil.c strgutil.c \
26 ttyio.c argparse.c memory.c secmem.c errors.c iobuf.c \
27 dotlock.c http.c pka.c membuf.c cert.c
30 libutil_a_SOURCES+=simple-gettext.c
34 libutil_a_SOURCES+=w32reg.c
37 if ENABLE_AGENT_SUPPORT
38 libutil_a_SOURCES+=assuan-buffer.c assuan-client.c assuan-defs.h \
39 assuan-errors.c assuan-logging.c assuan-socket-connect.c \
40 assuan-connect.c assuan-socket.c assuan-util.c
44 libutil_a_SOURCES+=regex.c
48 libutil_a_SOURCES+=srv.c srv.h
51 # The internal regex code #includes these.
52 EXTRA_libutil_a_SOURCES = regcomp.c regexec.c regex_internal.c \
55 # LIBOBJS is for the replacement functions
56 libutil_a_DEPENDENCIES = @LIBOBJS@
57 libutil_a_LIBADD = @LIBOBJS@
60 cc -DHAVE_CONFIG_H -I. -I. -I.. $(INCLUDES) $(LDFLAGS) -g -Wall \
61 -DTEST -o http-test http.c libutil.a @LIBINTL@ @SRVLIBS@ @CAPLIBS@
64 cc -DHAVE_CONFIG_H -I. -I. -I.. $(INCLUDES) $(LDFLAGS) -g -Wall \
65 -DTEST -o srv-test srv.c libutil.a @LIBINTL@ @SRVLIBS@ @CAPLIBS@
68 cc -DHAVE_CONFIG_H -I. -I. -I.. $(INCLUDES) $(LDFLAGS) -g -Wall \
69 -DTEST -o pka-test pka.c libutil.a @LIBINTL@ @SRVLIBS@ @CAPLIBS@
72 cc -DHAVE_CONFIG_H -I. -I. -I.. $(INCLUDES) $(LDFLAGS) -g -Wall \
73 -DTEST -o cert-test cert.c libutil.a @LIBINTL@ @SRVLIBS@ @CAPLIBS@