2 # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
4 # This file is part of GnuPG.
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.
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.
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, see <https://www.gnu.org/licenses/>.
19 ## Process this file with automake to produce Makefile.in
23 AM_CPPFLAGS = -I$(top_srcdir)/common
25 include $(top_srcdir)/am/cmacros.am
27 AM_CFLAGS = $(LIBGCRYPT_CFLAGS) $(KSBA_CFLAGS)
29 noinst_LIBRARIES = libkeybox.a libkeybox509.a
30 bin_PROGRAMS = kbxutil
33 extra_libs = $(LIBASSUAN_LIBS)
39 keybox.h keybox-defs.h keybox-search-desc.h \
50 libkeybox_a_SOURCES = $(common_sources)
51 libkeybox509_a_SOURCES = $(common_sources)
53 libkeybox_a_CFLAGS = $(AM_CFLAGS)
54 libkeybox509_a_CFLAGS = $(AM_CFLAGS) -DKEYBOX_WITH_X509=1
57 # We need W32SOCKLIBS because the init subsystem code in libcommon
58 # requires it - although we don't actually need it. It is easier
60 kbxutil_SOURCES = kbxutil.c $(common_sources)
61 kbxutil_CFLAGS = $(AM_CFLAGS) -DKEYBOX_WITH_X509=1
62 kbxutil_LDADD = ../common/libcommon.a \
63 $(KSBA_LIBS) $(LIBGCRYPT_LIBS) $(extra_libs) \
64 $(GPG_ERROR_LIBS) $(LIBINTL) $(LIBICONV) $(W32SOCKLIBS) \
67 $(PROGRAMS) : ../common/libcommon.a