gpg: No need to create a trustdb when encrypting with --always-trust.
[gnupg.git] / sm / Makefile.am
1 # Copyright (C) 2001, 2002, 2003 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 3 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, see <http://www.gnu.org/licenses/>.
17
18 ## Process this file with automake to produce Makefile.in
19
20
21 bin_PROGRAMS = gpgsm
22
23 EXTRA_DIST = ChangeLog-2011 gpgsm-w32info.rc
24
25 AM_CFLAGS = $(LIBGCRYPT_CFLAGS) $(KSBA_CFLAGS) $(LIBASSUAN_CFLAGS)
26
27 AM_CPPFLAGS = -I$(top_srcdir)/gl -I$(top_srcdir)/common -I$(top_srcdir)/intl
28 include $(top_srcdir)/am/cmacros.am
29
30 if HAVE_W32_SYSTEM
31 resource_objs += gpgsm-w32info.o
32 endif
33
34 gpgsm_SOURCES = \
35         gpgsm.c gpgsm.h \
36         misc.c \
37         keydb.c keydb.h \
38         server.c \
39         call-agent.c \
40         call-dirmngr.c \
41         fingerprint.c \
42         base64.c \
43         certlist.c \
44         certdump.c \
45         certcheck.c \
46         certchain.c \
47         keylist.c \
48         verify.c \
49         sign.c \
50         encrypt.c \
51         decrypt.c \
52         import.c \
53         export.c \
54         delete.c \
55         certreqgen.c \
56         certreqgen-ui.c \
57         qualified.c
58
59
60 common_libs = $(libcommon) ../kbx/libkeybox.a ../jnlib/libjnlib.a \
61               ../gl/libgnu.a
62
63 gpgsm_LDADD = $(common_libs) ../common/libgpgrl.a  $(NETLIBS) \
64               $(LIBGCRYPT_LIBS) $(KSBA_LIBS) $(LIBASSUAN_LIBS) \
65               $(GPG_ERROR_LIBS) $(LIBREADLINE) $(LIBINTL) $(ZLIBS) \
66               $(LIBICONV) $(resource_objs)
67
68 # Make sure that all libs are build before we use them.  This is
69 # important for things like make -j2.
70 $(PROGRAMS): $(common_libs)