a61fa303245120bc5ab6d8a55d00384e4d48bb47
[gnupg.git] / keyserver / Makefile.am
1 # Copyright (C) 2001, 2002, 2004, 2005, 2006 Free Software Foundation, Inc.
2 #
3 # This file is part of GnuPG.
4 #
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.
9
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.
14
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
18
19 ## Process this file with automake to produce Makefile.in
20
21 EXTRA_PROGRAMS = gpg2keys_ldap gpg2keys_hkp gpg2keys_finger gpg2keys_curl
22 EXTRA_SCRIPTS = gpg2keys_mailto
23
24 AM_CPPFLAGS = -I$(top_srcdir)/gl -I$(top_srcdir)/common -I$(top_srcdir)/intl 
25
26 AM_CFLAGS = $(LIBGCRYPT_CFLAGS)
27
28 include $(top_srcdir)/am/cmacros.am
29
30 libexec_PROGRAMS = $(GPGKEYS_LDAP) $(GPGKEYS_HKP) $(GPGKEYS_FINGER) \
31                    $(GPGKEYS_CURL)
32 libexec_SCRIPTS = $(GPGKEYS_MAILTO)
33 noinst_SCRIPTS = gpgkeys_test
34
35 needed_libs = ../gl/libgnu.a ../common/libcommon.a ../jnlib/libjnlib.a
36 other_libs = $(LIBICONV) $(LIBINTL) $(CAPLIBS)
37
38 gpg2keys_ldap_SOURCES = gpgkeys_ldap.c ksutil.c ksutil.h
39 gpg2keys_hkp_SOURCES = gpgkeys_hkp.c ksutil.c ksutil.h
40 gpg2keys_finger_SOURCES = gpgkeys_finger.c ksutil.c ksutil.h
41 gpg2keys_curl_SOURCES = gpgkeys_curl.c ksutil.c ksutil.h
42
43
44 gpg2keys_ldap_CPPFLAGS = $(LDAP_CPPFLAGS) $(AM_CPPFLAGS)
45 gpg2keys_ldap_LDADD = $(needed_libs) $(LDAPLIBS) $(NETLIBS) \
46                       $(other_libs) $(W32LIBS)
47
48 gpg2keys_finger_LDADD = $(needed_libs) $(LIBGCRYPT_LIBS) \
49                         $(NETLIBS) $(other_libs) $(W32LIBS)
50
51 if FAKE_CURL
52 gpg2keys_curl_SOURCES += curl-shim.c curl-shim.h
53 gpg2keys_curl_LDADD = $(needed_libs) $(NETLIBS) $(DNSLIBS) \
54                       $(other_libs) $(W32LIBS)
55 gpg2keys_hkp_SOURCES += curl-shim.c curl-shim.h
56 gpg2keys_hkp_LDADD = $(needed_libs) $(NETLIBS) $(DNSLIBS) \
57                      $(other_libs) $(W32LIBS)
58 else
59 gpg2keys_curl_CPPFLAGS = $(LIBCURL_CPPFLAGS) $(AM_CPPFLAGS)
60 gpg2keys_curl_LDADD = $(LIBCURL) $(GETOPT)
61 gpg2keys_hkp_CPPFLAGS = $(LIBCURL_CPPFLAGS) $(AM_CPPFLAGS)
62 gpg2keys_hkp_LDADD = $(LIBCURL) $(GETOPT)
63 endif
64