2009-01-27 12:30:02 +01:00
|
|
|
# Makefile.am - Makefile for keyservers
|
2011-12-01 10:51:36 +01:00
|
|
|
# Copyright (C) 2001, 2002, 2004, 2005, 2006,
|
2009-01-27 12:30:02 +01:00
|
|
|
# 2009 Free Software Foundation, Inc.
|
2006-06-30 15:19:49 +02:00
|
|
|
#
|
|
|
|
# This file is part of GnuPG.
|
|
|
|
#
|
|
|
|
# GnuPG is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
2007-07-04 21:49:40 +02:00
|
|
|
# the Free Software Foundation; either version 3 of the License, or
|
2006-06-30 15:19:49 +02:00
|
|
|
# (at your option) any later version.
|
2011-12-01 10:51:36 +01:00
|
|
|
#
|
2006-06-30 15:19:49 +02:00
|
|
|
# GnuPG is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
2011-12-01 10:51:36 +01:00
|
|
|
#
|
2006-06-30 15:19:49 +02:00
|
|
|
# You should have received a copy of the GNU General Public License
|
2007-07-04 21:49:40 +02:00
|
|
|
# along with this program; if not, see <http://www.gnu.org/licenses/>.
|
2006-06-30 15:19:49 +02:00
|
|
|
## Process this file with automake to produce Makefile.in
|
|
|
|
|
2006-09-22 13:39:45 +02:00
|
|
|
# Note that we have renamed the resulting binaries to from gpgkeys_foo
|
|
|
|
# to gpg2keys_foo to allow for a non-conflicting installation of
|
|
|
|
# gnupg1 and gnupg2. Having the same names for the helpers would
|
|
|
|
# otherwise lead to trouble when to uninstall one of them.
|
2008-04-07 21:31:12 +02:00
|
|
|
EXTRA_PROGRAMS = gpg2keys_ldap gpg2keys_hkp gpg2keys_finger gpg2keys_curl \
|
|
|
|
gpg2keys_kdns
|
2006-08-16 12:47:53 +02:00
|
|
|
EXTRA_SCRIPTS = gpg2keys_mailto
|
2006-06-30 15:19:49 +02:00
|
|
|
|
2011-12-01 10:51:36 +01:00
|
|
|
EXTRA_DIST = ChangeLog-2011
|
|
|
|
|
|
|
|
AM_CPPFLAGS = -I$(top_srcdir)/gl -I$(top_srcdir)/common -I$(top_srcdir)/intl
|
2006-06-30 15:19:49 +02:00
|
|
|
|
2006-09-06 23:43:44 +02:00
|
|
|
AM_CFLAGS = $(LIBGCRYPT_CFLAGS) $(GPG_ERROR_CFLAGS)
|
2006-08-16 12:47:53 +02:00
|
|
|
|
|
|
|
include $(top_srcdir)/am/cmacros.am
|
2006-06-30 15:19:49 +02:00
|
|
|
|
2006-08-16 12:47:53 +02:00
|
|
|
libexec_PROGRAMS = $(GPGKEYS_LDAP) $(GPGKEYS_HKP) $(GPGKEYS_FINGER) \
|
2008-04-07 21:31:12 +02:00
|
|
|
$(GPGKEYS_CURL) $(GPGKEYS_KDNS)
|
2006-08-16 12:47:53 +02:00
|
|
|
libexec_SCRIPTS = $(GPGKEYS_MAILTO)
|
2007-05-04 11:23:51 +02:00
|
|
|
noinst_SCRIPTS = gpg2keys_test
|
2006-06-30 15:19:49 +02:00
|
|
|
|
2010-03-10 13:24:58 +01:00
|
|
|
common_libs = ../gl/libgnu.a ../common/libcommon.a
|
2006-06-30 15:19:49 +02:00
|
|
|
other_libs = $(LIBICONV) $(LIBINTL) $(CAPLIBS)
|
|
|
|
|
2006-09-19 16:53:30 +02:00
|
|
|
gpg2keys_ldap_SOURCES = gpgkeys_ldap.c ksutil.c ksutil.h no-libgcrypt.c
|
2006-08-16 12:47:53 +02:00
|
|
|
gpg2keys_ldap_CPPFLAGS = $(LDAP_CPPFLAGS) $(AM_CPPFLAGS)
|
2010-03-10 13:24:58 +01:00
|
|
|
gpg2keys_ldap_LDADD = $(common_libs) $(LDAPLIBS) $(GPG_ERROR_LIBS) \
|
2007-05-07 21:49:12 +02:00
|
|
|
$(NETLIBS) $(other_libs)
|
2006-08-16 12:47:53 +02:00
|
|
|
|
2006-10-23 16:02:13 +02:00
|
|
|
gpg2keys_finger_SOURCES = gpgkeys_finger.c ksutil.c ksutil.h no-libgcrypt.c
|
2006-10-24 16:28:01 +02:00
|
|
|
gpg2keys_finger_CPPFLAGS = $(AM_CPPFLAGS)
|
2006-10-23 16:02:13 +02:00
|
|
|
gpg2keys_finger_LDADD = $(common_libs) $(GPG_ERROR_LIBS) \
|
2006-10-17 16:34:42 +02:00
|
|
|
$(NETLIBS) $(other_libs)
|
2006-06-30 15:19:49 +02:00
|
|
|
|
2008-04-07 21:31:12 +02:00
|
|
|
gpg2keys_kdns_SOURCES = gpgkeys_kdns.c ksutil.c ksutil.h no-libgcrypt.c
|
|
|
|
gpg2keys_kdns_CPPFLAGS = $(AM_CPPFLAGS)
|
|
|
|
gpg2keys_kdns_LDADD = $(common_libs) $(GPG_ERROR_LIBS) \
|
|
|
|
$(ADNSLIBS) $(NETLIBS) $(other_libs)
|
|
|
|
|
2006-10-23 16:02:13 +02:00
|
|
|
|
|
|
|
gpg2keys_curl_SOURCES = gpgkeys_curl.c ksutil.c ksutil.h no-libgcrypt.c
|
|
|
|
gpg2keys_hkp_SOURCES = gpgkeys_hkp.c ksutil.c ksutil.h no-libgcrypt.c
|
2006-06-30 15:19:49 +02:00
|
|
|
if FAKE_CURL
|
2006-08-16 12:47:53 +02:00
|
|
|
gpg2keys_curl_SOURCES += curl-shim.c curl-shim.h
|
2006-09-26 16:35:24 +02:00
|
|
|
gpg2keys_curl_CPPFLAGS = $(AM_CPPFLAGS)
|
|
|
|
gpg2keys_curl_LDADD = $(common_libs) $(GPG_ERROR_LIBS) $(NETLIBS) $(DNSLIBS) \
|
2011-12-01 10:51:36 +01:00
|
|
|
$(other_libs)
|
2006-08-16 12:47:53 +02:00
|
|
|
gpg2keys_hkp_SOURCES += curl-shim.c curl-shim.h
|
2006-09-26 16:35:24 +02:00
|
|
|
gpg2keys_hkp_CPPFLAGS = $(AM_CPPFLAGS)
|
|
|
|
gpg2keys_hkp_LDADD = $(common_libs) $(GPG_ERROR_LIBS) $(NETLIBS) $(DNSLIBS) \
|
2011-12-01 10:51:36 +01:00
|
|
|
$(other_libs)
|
2006-06-30 15:19:49 +02:00
|
|
|
else
|
2009-01-27 12:30:02 +01:00
|
|
|
# Note that we need to include all other libs here as well because
|
2009-02-12 18:45:40 +01:00
|
|
|
# some compilers don't care about inline functions and insert
|
2009-01-27 12:30:02 +01:00
|
|
|
# references to symbols used in unused inline functions.
|
2006-08-16 12:47:53 +02:00
|
|
|
gpg2keys_curl_CPPFLAGS = $(LIBCURL_CPPFLAGS) $(AM_CPPFLAGS)
|
2009-01-27 12:30:02 +01:00
|
|
|
gpg2keys_curl_LDADD = $(common_libs) $(GPG_ERROR_LIBS) $(NETLIBS) $(DNSLIBS) \
|
|
|
|
$(other_libs) $(LIBCURL) $(GETOPT)
|
2006-08-16 12:47:53 +02:00
|
|
|
gpg2keys_hkp_CPPFLAGS = $(LIBCURL_CPPFLAGS) $(AM_CPPFLAGS)
|
2009-01-27 12:30:02 +01:00
|
|
|
gpg2keys_hkp_LDADD = $(common_libs) $(GPG_ERROR_LIBS) $(NETLIBS) $(DNSLIBS) \
|
|
|
|
$(other_libs) $(LIBCURL) $(GETOPT)
|
2006-06-30 15:19:49 +02:00
|
|
|
endif
|
2006-08-16 12:47:53 +02:00
|
|
|
|
2006-09-20 13:01:49 +02:00
|
|
|
# Make sure that all libs are build before we use them. This is
|
|
|
|
# important for things like make -j2.
|
|
|
|
$(PROGRAMS): $(common_libs)
|