* gpgkeys_hkp.c (main, srv_replace): Minor tweaks to use the DNS-SD
[gnupg.git] / keyserver / Makefile.am
1 # Copyright (C) 2001, 2002, 2004, 2005, 2006,
2 #               2007, 2009 Free Software Foundation, Inc.
3 #
4 # This file is part of GnuPG.
5 #
6 # GnuPG is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
9 # (at your option) any later version.
10
11 # GnuPG is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
15
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, see <http://www.gnu.org/licenses/>.
18 ## Process this file with automake to produce Makefile.in
19
20 INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/intl
21 EXTRA_PROGRAMS = gpgkeys_ldap gpgkeys_hkp gpgkeys_finger gpgkeys_curl
22 EXTRA_SCRIPTS = gpgkeys_mailto
23
24 gpglibexecdir = $(libexecdir)/@PACKAGE@
25
26 gpglibexec_PROGRAMS = @GPGKEYS_LDAP@ @GPGKEYS_HKP@ @GPGKEYS_FINGER@ @GPGKEYS_CURL@
27 gpglibexec_SCRIPTS = @GPGKEYS_MAILTO@
28 noinst_SCRIPTS = gpgkeys_test
29
30 gpgkeys_ldap_SOURCES = gpgkeys_ldap.c ksutil.c ksutil.h
31 gpgkeys_hkp_SOURCES = gpgkeys_hkp.c ksutil.c ksutil.h
32 gpgkeys_finger_SOURCES = gpgkeys_finger.c ksutil.c ksutil.h
33 gpgkeys_curl_SOURCES = gpgkeys_curl.c ksutil.c ksutil.h
34
35 other_libs = $(LIBICONV) $(LIBINTL) $(CAPLIBS)
36
37 gpgkeys_ldap_CPPFLAGS = @LDAP_CPPFLAGS@
38 gpgkeys_ldap_LDADD = ../util/libcompat.a @LDAPLIBS@ @NETLIBS@ $(other_libs) @GETOPT@ @W32LIBS@
39
40 gpgkeys_finger_LDADD = ../util/libutil.a @NETLIBS@ $(other_libs) @GETOPT@ @W32LIBS@
41
42 if FAKE_CURL
43 gpgkeys_curl_SOURCES += curl-shim.c curl-shim.h
44 gpgkeys_curl_LDADD = ../util/libutil.a @NETLIBS@ @DNSLIBS@ $(other_libs) @GETOPT@ @W32LIBS@
45 gpgkeys_hkp_SOURCES += curl-shim.c curl-shim.h
46 gpgkeys_hkp_LDADD = ../util/libutil.a @NETLIBS@ @DNSLIBS@ $(other_libs) @GETOPT@ @W32LIBS@
47 else
48 gpgkeys_curl_CPPFLAGS = @LIBCURL_CPPFLAGS@
49 gpgkeys_curl_LDADD = ../util/libcompat.a @LIBCURL@ @GETOPT@
50 gpgkeys_hkp_CPPFLAGS = @LIBCURL_CPPFLAGS@
51 gpgkeys_hkp_LDADD = ../util/libcompat.a @DNSLIBS@ @LIBCURL@ @GETOPT@
52 gpgkeys_finger_CPPFLAGS = @LIBCURL_CPPFLAGS@
53 gpgkeys_ldap_CPPFLAGS += @LIBCURL_CPPFLAGS@
54 endif