2011-02-04 12:57:53 +01:00
|
|
|
# Keybox Makefile
|
2003-08-05 19:11:04 +02:00
|
|
|
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
|
|
|
|
#
|
|
|
|
# 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
|
2003-08-05 19:11:04 +02:00
|
|
|
# (at your option) any later version.
|
2011-02-04 12:57:53 +01:00
|
|
|
#
|
2003-08-05 19:11:04 +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-02-04 12:57:53 +01:00
|
|
|
#
|
2003-08-05 19:11:04 +02:00
|
|
|
# You should have received a copy of the GNU General Public License
|
2016-11-05 12:02:19 +01:00
|
|
|
# along with this program; if not, see <https://www.gnu.org/licenses/>.
|
2003-08-05 19:11:04 +02:00
|
|
|
|
|
|
|
## Process this file with automake to produce Makefile.in
|
|
|
|
|
2018-09-05 17:00:17 +02:00
|
|
|
EXTRA_DIST = mkerrors keyboxd-w32info.rc
|
2013-06-27 09:22:00 +02:00
|
|
|
|
2017-03-07 12:21:23 +01:00
|
|
|
AM_CPPFLAGS =
|
2013-06-27 09:22:00 +02:00
|
|
|
|
|
|
|
include $(top_srcdir)/am/cmacros.am
|
2018-09-05 17:00:17 +02:00
|
|
|
if HAVE_W32_SYSTEM
|
|
|
|
resource_objs += keyboxd-w32info.o
|
|
|
|
endif
|
2013-06-27 09:22:00 +02:00
|
|
|
|
|
|
|
AM_CFLAGS = $(LIBGCRYPT_CFLAGS) $(KSBA_CFLAGS)
|
2003-08-05 19:11:04 +02:00
|
|
|
|
2015-08-17 16:13:25 +02:00
|
|
|
noinst_LIBRARIES = libkeybox.a libkeybox509.a
|
2003-08-05 19:11:04 +02:00
|
|
|
bin_PROGRAMS = kbxutil
|
2018-09-05 17:00:17 +02:00
|
|
|
libexec_PROGRAMS = keyboxd
|
2003-08-05 19:11:04 +02:00
|
|
|
|
2010-03-24 13:15:30 +01:00
|
|
|
if HAVE_W32CE_SYSTEM
|
|
|
|
extra_libs = $(LIBASSUAN_LIBS)
|
|
|
|
else
|
2011-02-04 12:57:53 +01:00
|
|
|
extra_libs =
|
2010-03-24 13:15:30 +01:00
|
|
|
endif
|
|
|
|
|
2018-09-05 17:00:17 +02:00
|
|
|
common_libs = $(libcommon)
|
|
|
|
commonpth_libs = $(libcommonpth)
|
|
|
|
|
2003-08-05 19:11:04 +02:00
|
|
|
common_sources = \
|
|
|
|
keybox.h keybox-defs.h keybox-search-desc.h \
|
|
|
|
keybox-util.c \
|
|
|
|
keybox-init.c \
|
|
|
|
keybox-blob.c \
|
|
|
|
keybox-file.c \
|
|
|
|
keybox-search.c \
|
|
|
|
keybox-update.c \
|
2004-08-24 21:55:47 +02:00
|
|
|
keybox-openpgp.c \
|
2011-02-04 12:57:53 +01:00
|
|
|
keybox-dump.c
|
2003-08-05 19:11:04 +02:00
|
|
|
|
|
|
|
|
|
|
|
libkeybox_a_SOURCES = $(common_sources)
|
2015-08-17 16:13:25 +02:00
|
|
|
libkeybox509_a_SOURCES = $(common_sources)
|
|
|
|
|
|
|
|
libkeybox_a_CFLAGS = $(AM_CFLAGS)
|
|
|
|
libkeybox509_a_CFLAGS = $(AM_CFLAGS) -DKEYBOX_WITH_X509=1
|
|
|
|
|
2003-08-05 19:11:04 +02:00
|
|
|
|
2007-06-15 16:27:31 +02:00
|
|
|
# We need W32SOCKLIBS because the init subsystem code in libcommon
|
|
|
|
# requires it - although we don't actually need it. It is easier
|
|
|
|
# to do it this way.
|
2003-08-05 19:11:04 +02:00
|
|
|
kbxutil_SOURCES = kbxutil.c $(common_sources)
|
2015-08-17 16:13:25 +02:00
|
|
|
kbxutil_CFLAGS = $(AM_CFLAGS) -DKEYBOX_WITH_X509=1
|
2018-09-05 17:00:17 +02:00
|
|
|
kbxutil_LDADD = $(common_libs) \
|
2010-03-24 13:15:30 +01:00
|
|
|
$(KSBA_LIBS) $(LIBGCRYPT_LIBS) $(extra_libs) \
|
2016-09-10 19:42:09 +02:00
|
|
|
$(GPG_ERROR_LIBS) $(LIBINTL) $(LIBICONV) $(W32SOCKLIBS) \
|
|
|
|
$(NETLIBS)
|
2003-08-05 19:11:04 +02:00
|
|
|
|
2018-09-05 17:00:17 +02:00
|
|
|
|
|
|
|
keyboxd_SOURCES = \
|
2019-08-06 16:07:33 +02:00
|
|
|
keyboxd.c keyboxd.h \
|
|
|
|
kbxserver.c \
|
|
|
|
frontend.c frontend.h \
|
|
|
|
backend.h backend-support.c \
|
2019-09-27 09:24:58 +02:00
|
|
|
backend-cache.c \
|
2019-08-06 16:07:33 +02:00
|
|
|
backend-kbx.c \
|
2020-01-02 14:21:12 +01:00
|
|
|
backend-sqlite.c \
|
2019-08-06 16:07:33 +02:00
|
|
|
$(common_sources)
|
2018-09-05 17:00:17 +02:00
|
|
|
|
2019-10-01 20:09:42 +02:00
|
|
|
keyboxd_CFLAGS = $(AM_CFLAGS) -DKEYBOX_WITH_X509=1 \
|
2020-01-02 14:21:12 +01:00
|
|
|
$(LIBASSUAN_CFLAGS) $(NPTH_CFLAGS) $(SQLITE3_CFLAGS) \
|
|
|
|
$(INCICONV)
|
2018-09-05 17:00:17 +02:00
|
|
|
keyboxd_LDADD = $(commonpth_libs) \
|
2019-10-01 20:09:42 +02:00
|
|
|
$(KSBA_LIBS) $(LIBGCRYPT_LIBS) $(LIBASSUAN_LIBS) $(NPTH_LIBS) \
|
2020-01-02 14:21:12 +01:00
|
|
|
$(SQLITE3_LIBS) $(GPG_ERROR_LIBS) \
|
|
|
|
$(LIBINTL) $(NETLIBS) $(LIBICONV) \
|
2018-09-05 17:00:17 +02:00
|
|
|
$(resource_objs)
|
|
|
|
keyboxd_LDFLAGS = $(extra_bin_ldflags)
|
|
|
|
keyboxd_DEPENDENCIES = $(resource_objs)
|
|
|
|
|
|
|
|
|
|
|
|
# Make sure that all libs are build before we use them. This is
|
|
|
|
# important for things like make -j2.
|
|
|
|
$(PROGRAMS): $(common_libs) $(commonpth_libs)
|