1 # Copyright (C) 2001, 2002, 2004, 2005, 2006 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 3 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, see <http://www.gnu.org/licenses/>.
17 ## Process this file with automake to produce Makefile.in
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 \
25 EXTRA_SCRIPTS = gpg2keys_mailto
27 AM_CPPFLAGS = -I$(top_srcdir)/gl -I$(top_srcdir)/common -I$(top_srcdir)/intl
29 AM_CFLAGS = $(LIBGCRYPT_CFLAGS) $(GPG_ERROR_CFLAGS)
31 include $(top_srcdir)/am/cmacros.am
33 libexec_PROGRAMS = $(GPGKEYS_LDAP) $(GPGKEYS_HKP) $(GPGKEYS_FINGER) \
34 $(GPGKEYS_CURL) $(GPGKEYS_KDNS)
35 libexec_SCRIPTS = $(GPGKEYS_MAILTO)
36 noinst_SCRIPTS = gpg2keys_test
38 common_libs = ../gl/libgnu.a ../common/libcommon.a ../jnlib/libjnlib.a
39 other_libs = $(LIBICONV) $(LIBINTL) $(CAPLIBS)
41 gpg2keys_ldap_SOURCES = gpgkeys_ldap.c ksutil.c ksutil.h no-libgcrypt.c
42 gpg2keys_ldap_CPPFLAGS = $(LDAP_CPPFLAGS) $(AM_CPPFLAGS)
43 gpg2keys_ldap_LDADD = ../jnlib/libjnlib.a $(LDAPLIBS) $(GPG_ERROR_LIBS) \
44 $(NETLIBS) $(other_libs)
46 gpg2keys_finger_SOURCES = gpgkeys_finger.c ksutil.c ksutil.h no-libgcrypt.c
47 gpg2keys_finger_CPPFLAGS = $(AM_CPPFLAGS)
48 gpg2keys_finger_LDADD = $(common_libs) $(GPG_ERROR_LIBS) \
49 $(NETLIBS) $(other_libs)
51 gpg2keys_kdns_SOURCES = gpgkeys_kdns.c ksutil.c ksutil.h no-libgcrypt.c
52 gpg2keys_kdns_CPPFLAGS = $(AM_CPPFLAGS)
53 gpg2keys_kdns_LDADD = $(common_libs) $(GPG_ERROR_LIBS) \
54 $(ADNSLIBS) $(NETLIBS) $(other_libs)
57 gpg2keys_curl_SOURCES = gpgkeys_curl.c ksutil.c ksutil.h no-libgcrypt.c
58 gpg2keys_hkp_SOURCES = gpgkeys_hkp.c ksutil.c ksutil.h no-libgcrypt.c
60 gpg2keys_curl_SOURCES += curl-shim.c curl-shim.h
61 gpg2keys_curl_CPPFLAGS = $(AM_CPPFLAGS)
62 gpg2keys_curl_LDADD = $(common_libs) $(GPG_ERROR_LIBS) $(NETLIBS) $(DNSLIBS) \
64 gpg2keys_hkp_SOURCES += curl-shim.c curl-shim.h
65 gpg2keys_hkp_CPPFLAGS = $(AM_CPPFLAGS)
66 gpg2keys_hkp_LDADD = $(common_libs) $(GPG_ERROR_LIBS) $(NETLIBS) $(DNSLIBS) \
69 gpg2keys_curl_CPPFLAGS = $(LIBCURL_CPPFLAGS) $(AM_CPPFLAGS)
70 gpg2keys_curl_LDADD = $(LIBCURL) $(GETOPT)
71 gpg2keys_hkp_CPPFLAGS = $(LIBCURL_CPPFLAGS) $(AM_CPPFLAGS)
72 gpg2keys_hkp_LDADD = $(LIBCURL) $(GETOPT)
75 # Make sure that all libs are build before we use them. This is
76 # important for things like make -j2.
77 $(PROGRAMS): $(common_libs)