summaryrefslogtreecommitdiff
path: root/util/Makefile.am
blob: 1da5a10755edefe5768c7b097f5cae0f34c55633 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# Copyright (C) 1998, 1999, 2000, 2001, 2005 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
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA

## Process this file with automake to produce Makefile.in

INCLUDES = -I.. -I$(top_srcdir)/include -I$(top_srcdir)/intl

noinst_LIBRARIES = libutil.a libcompat.a

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 \
		    $(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

if USE_DNS_SRV
libutil_a_SOURCES+=srv.c srv.h
endif

# The internal regex code #includes these.
EXTRA_libutil_a_SOURCES = regcomp.c regexec.c regex_internal.c \
	                  regex_internal.h

# 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@

libcompat_a_SOURCES=compat.c
libcompat_a_DEPENDENCIES = @LIBOBJS@
libcompat_a_LIBADD = @LIBOBJS@

http-test:  http.c
	cc -DHAVE_CONFIG_H -I. -I. -I.. $(INCLUDES) $(LDFLAGS) -g -Wall \
	    -DTEST -o http-test http.c libutil.a @LIBINTL@ @DNSLIBS@ @CAPLIBS@

srv-test:  srv.c
	cc -DHAVE_CONFIG_H -I. -I. -I.. $(INCLUDES) $(LDFLAGS) -g -Wall \
	    -DTEST -o srv-test srv.c libutil.a @LIBINTL@ @DNSLIBS@ @CAPLIBS@

pka-test:  pka.c
	cc -DHAVE_CONFIG_H -I. -I. -I.. $(INCLUDES) $(LDFLAGS) -g -Wall \
	   -DTEST -o pka-test pka.c libutil.a @LIBINTL@ @DNSLIBS@ @CAPLIBS@

cert-test:  cert.c
	cc -DHAVE_CONFIG_H -I. -I. -I.. $(INCLUDES) $(LDFLAGS) -g -Wall \
	   -DTEST -o cert-test cert.c libutil.a @LIBINTL@ @DNSLIBS@ @CAPLIBS@