1
# Copyright (C) 2001, 2002, 2004 Free Software Foundation, Inc.
1
# Copyright (C) 2001, 2002, 2004, 2005, 2006 Free Software Foundation, Inc.
3
3
# This file is part of GnuPG.
5
5
# GnuPG is free software; you can redistribute it and/or modify
6
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
7
# the Free Software Foundation; either version 3 of the License, or
8
8
# (at your option) any later version.
10
10
# GnuPG is distributed in the hope that it will be useful,
13
13
# GNU General Public License for more details.
15
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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
16
# along with this program; if not, see <http://www.gnu.org/licenses/>.
19
17
## Process this file with automake to produce Makefile.in
21
INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/intl
22
EXTRA_PROGRAMS = gpgkeys_ldap gpgkeys_hkp gpgkeys_http gpgkeys_finger gpgkeys_curl
23
EXTRA_SCRIPTS = gpgkeys_mailto
24
libexecdir = @libexecdir@/@PACKAGE@
26
libexec_PROGRAMS = @GPGKEYS_LDAP@ @GPGKEYS_HKP@ @GPGKEYS_FINGER@ @GPGKEYS_HTTP@ @GPGKEYS_CURL@
27
libexec_SCRIPTS = @GPGKEYS_MAILTO@
28
noinst_SCRIPTS = gpgkeys_test
30
gpgkeys_ldap_SOURCES = gpgkeys_ldap.c ksutil.c ksutil.h
31
gpgkeys_hkp_SOURCES = gpgkeys_hkp.c ksutil.c ksutil.h
32
gpgkeys_http_SOURCES = gpgkeys_http.c ksutil.c ksutil.h
33
gpgkeys_finger_SOURCES = gpgkeys_finger.c ksutil.c ksutil.h
34
gpgkeys_curl_SOURCES = gpgkeys_curl.c ksutil.c ksutil.h
19
# Note that we have renamed the resulting binaries to from gpgkeys_foo
20
# to gpg2keys_foo to allow for a non-conflicting installation of
21
# gnupg1 and gnupg2. Having the same names for the helpers would
22
# otherwise lead to trouble when to uninstall one of them.
23
EXTRA_PROGRAMS = gpg2keys_ldap gpg2keys_hkp gpg2keys_finger gpg2keys_curl
24
EXTRA_SCRIPTS = gpg2keys_mailto
26
AM_CPPFLAGS = -I$(top_srcdir)/gl -I$(top_srcdir)/common -I$(top_srcdir)/intl
28
AM_CFLAGS = $(LIBGCRYPT_CFLAGS) $(GPG_ERROR_CFLAGS)
30
include $(top_srcdir)/am/cmacros.am
32
libexec_PROGRAMS = $(GPGKEYS_LDAP) $(GPGKEYS_HKP) $(GPGKEYS_FINGER) \
34
libexec_SCRIPTS = $(GPGKEYS_MAILTO)
35
noinst_SCRIPTS = gpg2keys_test
37
common_libs = ../gl/libgnu.a ../common/libcommon.a ../jnlib/libjnlib.a
36
38
other_libs = $(LIBICONV) $(LIBINTL) $(CAPLIBS)
38
gpgkeys_ldap_LDADD = ../util/libutil.a @LDAPLIBS@ @NETLIBS@ $(other_libs) @GETOPT@ @W32LIBS@
39
gpgkeys_hkp_LDADD = ../util/libutil.a @NETLIBS@ @SRVLIBS@ $(other_libs) @GETOPT@ @W32LIBS@
40
gpgkeys_http_LDADD = ../util/libutil.a @NETLIBS@ @SRVLIBS@ $(other_libs) @GETOPT@ @W32LIBS@
41
gpgkeys_finger_LDADD = ../util/libutil.a @NETLIBS@ $(other_libs) @GETOPT@ @W32LIBS@
42
gpgkeys_curl_CPPFLAGS = @LIBCURL_INCLUDES@
43
gpgkeys_curl_LDADD = @LIBCURL@ @GETOPT@
40
gpg2keys_ldap_SOURCES = gpgkeys_ldap.c ksutil.c ksutil.h no-libgcrypt.c
41
gpg2keys_ldap_CPPFLAGS = $(LDAP_CPPFLAGS) $(AM_CPPFLAGS)
42
gpg2keys_ldap_LDADD = ../jnlib/libjnlib.a $(LDAPLIBS) $(GPG_ERROR_LIBS) \
43
$(NETLIBS) $(other_libs)
45
gpg2keys_finger_SOURCES = gpgkeys_finger.c ksutil.c ksutil.h no-libgcrypt.c
46
gpg2keys_finger_CPPFLAGS = $(AM_CPPFLAGS)
47
gpg2keys_finger_LDADD = $(common_libs) $(GPG_ERROR_LIBS) \
48
$(NETLIBS) $(other_libs)
51
gpg2keys_curl_SOURCES = gpgkeys_curl.c ksutil.c ksutil.h no-libgcrypt.c
52
gpg2keys_hkp_SOURCES = gpgkeys_hkp.c ksutil.c ksutil.h no-libgcrypt.c
54
gpg2keys_curl_SOURCES += curl-shim.c curl-shim.h
55
gpg2keys_curl_CPPFLAGS = $(AM_CPPFLAGS)
56
gpg2keys_curl_LDADD = $(common_libs) $(GPG_ERROR_LIBS) $(NETLIBS) $(DNSLIBS) \
58
gpg2keys_hkp_SOURCES += curl-shim.c curl-shim.h
59
gpg2keys_hkp_CPPFLAGS = $(AM_CPPFLAGS)
60
gpg2keys_hkp_LDADD = $(common_libs) $(GPG_ERROR_LIBS) $(NETLIBS) $(DNSLIBS) \
63
gpg2keys_curl_CPPFLAGS = $(LIBCURL_CPPFLAGS) $(AM_CPPFLAGS)
64
gpg2keys_curl_LDADD = $(LIBCURL) $(GETOPT)
65
gpg2keys_hkp_CPPFLAGS = $(LIBCURL_CPPFLAGS) $(AM_CPPFLAGS)
66
gpg2keys_hkp_LDADD = $(LIBCURL) $(GETOPT)
69
# Make sure that all libs are build before we use them. This is
70
# important for things like make -j2.
71
$(PROGRAMS): $(common_libs)