chiark / gitweb /
gpg agent threading bugs: Add some `xxx' comments.
[gnupg2.git] / kbx / Makefile.am
1 # Keybox Makefile
2 # Copyright (C) 2001, 2002, 2003 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 <https://www.gnu.org/licenses/>.
18
19 ## Process this file with automake to produce Makefile.in
20
21 EXTRA_DIST = mkerrors
22
23 AM_CPPFLAGS = -I$(top_srcdir)/common
24
25 include $(top_srcdir)/am/cmacros.am
26
27 AM_CFLAGS = $(LIBGCRYPT_CFLAGS) $(KSBA_CFLAGS)
28
29 noinst_LIBRARIES = libkeybox.a libkeybox509.a
30 bin_PROGRAMS = kbxutil
31
32 if HAVE_W32CE_SYSTEM
33 extra_libs =  $(LIBASSUAN_LIBS)
34 else
35 extra_libs =
36 endif
37
38 common_sources = \
39         keybox.h keybox-defs.h keybox-search-desc.h \
40         keybox-util.c \
41         keybox-init.c \
42         keybox-blob.c \
43         keybox-file.c \
44         keybox-search.c \
45         keybox-update.c \
46         keybox-openpgp.c \
47         keybox-dump.c
48
49
50 libkeybox_a_SOURCES = $(common_sources)
51 libkeybox509_a_SOURCES = $(common_sources)
52
53 libkeybox_a_CFLAGS = $(AM_CFLAGS)
54 libkeybox509_a_CFLAGS = $(AM_CFLAGS) -DKEYBOX_WITH_X509=1
55
56
57 # We need W32SOCKLIBS because the init subsystem code in libcommon
58 # requires it - although we don't actually need it.  It is easier
59 # to do it this way.
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) \
65                   $(NETLIBS)
66
67 $(PROGRAMS) : ../common/libcommon.a