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 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 # Note that we have renamed the resulting binaries to from gpgkeys_foo
22 # to gpg2keys_foo to allow for a non-conflicting installation of
23 # gnupg1 and gnupg2. Having the same names for the helpers would
24 # otherwise lead to trouble when to uninstall one of them.
25 EXTRA_PROGRAMS = gpg2keys_ldap gpg2keys_hkp gpg2keys_finger gpg2keys_curl
26 EXTRA_SCRIPTS = gpg2keys_mailto
28 AM_CPPFLAGS = -I$(top_srcdir)/gl -I$(top_srcdir)/common -I$(top_srcdir)/intl
30 AM_CFLAGS = $(LIBGCRYPT_CFLAGS) $(GPG_ERROR_CFLAGS)
32 include $(top_srcdir)/am/cmacros.am
34 libexec_PROGRAMS = $(GPGKEYS_LDAP) $(GPGKEYS_HKP) $(GPGKEYS_FINGER) \
36 libexec_SCRIPTS = $(GPGKEYS_MAILTO)
37 noinst_SCRIPTS = gpgkeys_test
39 common_libs = ../gl/libgnu.a ../common/libcommon.a ../jnlib/libjnlib.a
40 other_libs = $(LIBICONV) $(LIBINTL) $(CAPLIBS)
42 gpg2keys_ldap_SOURCES = gpgkeys_ldap.c ksutil.c ksutil.h no-libgcrypt.c
43 gpg2keys_ldap_CPPFLAGS = $(LDAP_CPPFLAGS) $(AM_CPPFLAGS)
44 gpg2keys_ldap_LDADD = $(LDAPLIBS) $(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)
52 gpg2keys_curl_SOURCES = gpgkeys_curl.c ksutil.c ksutil.h no-libgcrypt.c
53 gpg2keys_hkp_SOURCES = gpgkeys_hkp.c ksutil.c ksutil.h no-libgcrypt.c
55 gpg2keys_curl_SOURCES += curl-shim.c curl-shim.h
56 gpg2keys_curl_CPPFLAGS = $(AM_CPPFLAGS)
57 gpg2keys_curl_LDADD = $(common_libs) $(GPG_ERROR_LIBS) $(NETLIBS) $(DNSLIBS) \
59 gpg2keys_hkp_SOURCES += curl-shim.c curl-shim.h
60 gpg2keys_hkp_CPPFLAGS = $(AM_CPPFLAGS)
61 gpg2keys_hkp_LDADD = $(common_libs) $(GPG_ERROR_LIBS) $(NETLIBS) $(DNSLIBS) \
64 gpg2keys_curl_CPPFLAGS = $(LIBCURL_CPPFLAGS) $(AM_CPPFLAGS)
65 gpg2keys_curl_LDADD = $(LIBCURL) $(GETOPT)
66 gpg2keys_hkp_CPPFLAGS = $(LIBCURL_CPPFLAGS) $(AM_CPPFLAGS)
67 gpg2keys_hkp_LDADD = $(LIBCURL) $(GETOPT)
70 # Make sure that all libs are build before we use them. This is
71 # important for things like make -j2.
72 $(PROGRAMS): $(common_libs)