gpg: Require confirmation for --gen-key with experimental curves.
[gnupg.git] / keyserver / Makefile.am
1 # Makefile.am - Makefile for keyservers
2 # Copyright (C) 2001, 2002, 2004, 2005, 2006,
3 #               2009 Free Software Foundation, Inc.
4 #
5 # This file is part of GnuPG.
6 #
7 # GnuPG is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 3 of the License, or
10 # (at your option) any later version.
11 #
12 # GnuPG is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 # GNU General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, see <http://www.gnu.org/licenses/>.
19 ## Process this file with automake to produce Makefile.in
20
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                  gpg2keys_kdns
27 EXTRA_SCRIPTS = gpg2keys_mailto
28
29 EXTRA_DIST = ChangeLog-2011
30
31 AM_CPPFLAGS = -I$(top_srcdir)/gl -I$(top_srcdir)/common -I$(top_srcdir)/intl
32
33 AM_CFLAGS = $(LIBGCRYPT_CFLAGS) $(GPG_ERROR_CFLAGS)
34
35 include $(top_srcdir)/am/cmacros.am
36
37 libexec_PROGRAMS = $(GPGKEYS_LDAP) $(GPGKEYS_HKP) $(GPGKEYS_FINGER) \
38                    $(GPGKEYS_CURL) $(GPGKEYS_KDNS)
39 libexec_SCRIPTS = $(GPGKEYS_MAILTO)
40 noinst_SCRIPTS = gpg2keys_test
41
42 common_libs = ../gl/libgnu.a  ../common/libcommon.a
43 other_libs = $(LIBICONV) $(LIBINTL) $(CAPLIBS)
44
45 gpg2keys_ldap_SOURCES = gpgkeys_ldap.c ksutil.c ksutil.h no-libgcrypt.c
46 gpg2keys_ldap_CPPFLAGS = $(LDAP_CPPFLAGS) $(AM_CPPFLAGS)
47 gpg2keys_ldap_LDADD = $(common_libs) $(LDAPLIBS) $(GPG_ERROR_LIBS) \
48                       $(NETLIBS) $(other_libs)
49
50 gpg2keys_finger_SOURCES = gpgkeys_finger.c ksutil.c ksutil.h no-libgcrypt.c
51 gpg2keys_finger_CPPFLAGS = $(AM_CPPFLAGS)
52 gpg2keys_finger_LDADD = $(common_libs) $(GPG_ERROR_LIBS) \
53                         $(NETLIBS) $(other_libs)
54
55 gpg2keys_kdns_SOURCES = gpgkeys_kdns.c ksutil.c ksutil.h no-libgcrypt.c
56 gpg2keys_kdns_CPPFLAGS = $(AM_CPPFLAGS)
57 gpg2keys_kdns_LDADD = $(common_libs) $(GPG_ERROR_LIBS) \
58                       $(ADNSLIBS) $(NETLIBS) $(other_libs)
59
60
61 gpg2keys_curl_SOURCES = gpgkeys_curl.c ksutil.c ksutil.h no-libgcrypt.c
62 gpg2keys_hkp_SOURCES  = gpgkeys_hkp.c ksutil.c ksutil.h no-libgcrypt.c
63 if FAKE_CURL
64 gpg2keys_curl_SOURCES += curl-shim.c curl-shim.h
65 gpg2keys_curl_CPPFLAGS = $(AM_CPPFLAGS)
66 gpg2keys_curl_LDADD = $(common_libs) $(GPG_ERROR_LIBS) $(NETLIBS) $(DNSLIBS) \
67                       $(other_libs)
68 gpg2keys_hkp_SOURCES += curl-shim.c curl-shim.h
69 gpg2keys_hkp_CPPFLAGS = $(AM_CPPFLAGS)
70 gpg2keys_hkp_LDADD = $(common_libs) $(GPG_ERROR_LIBS) $(NETLIBS) $(DNSLIBS) \
71                      $(other_libs)
72 else
73 # Note that we need to include all other libs here as well because
74 # some compilers don't care about inline functions and insert
75 # references to symbols used in unused inline functions.
76 gpg2keys_curl_CPPFLAGS = $(LIBCURL_CPPFLAGS) $(AM_CPPFLAGS)
77 gpg2keys_curl_LDADD = $(common_libs) $(GPG_ERROR_LIBS) $(NETLIBS) $(DNSLIBS) \
78                       $(other_libs) $(LIBCURL) $(GETOPT)
79 gpg2keys_hkp_CPPFLAGS = $(LIBCURL_CPPFLAGS) $(AM_CPPFLAGS)
80 gpg2keys_hkp_LDADD =  $(common_libs) $(GPG_ERROR_LIBS) $(NETLIBS) $(DNSLIBS) \
81                       $(other_libs) $(LIBCURL) $(GETOPT)
82 endif
83
84 # Make sure that all libs are build before we use them.  This is
85 # important for things like make -j2.
86 $(PROGRAMS): $(common_libs)