Imported Upstream version 2.0.26
[platform/upstream/gpg2.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 = $(GPG_ERROR_CFLAGS) $(LIBGCRYPT_CFLAGS) \
26             $(KSBA_CFLAGS) $(LIBASSUAN_CFLAGS)
27
28 AM_CPPFLAGS = -I$(top_srcdir)/gl -I$(top_srcdir)/common -I$(top_srcdir)/intl
29 include $(top_srcdir)/am/cmacros.am
30
31 if HAVE_W32_SYSTEM
32 resource_objs += gpgsm-w32info.o
33 endif
34
35 gpgsm_SOURCES = \
36         gpgsm.c gpgsm.h \
37         misc.c \
38         keydb.c keydb.h \
39         server.c \
40         call-agent.c \
41         call-dirmngr.c \
42         fingerprint.c \
43         base64.c \
44         certlist.c \
45         certdump.c \
46         certcheck.c \
47         certchain.c \
48         keylist.c \
49         verify.c \
50         sign.c \
51         encrypt.c \
52         decrypt.c \
53         import.c \
54         export.c \
55         delete.c \
56         certreqgen.c \
57         certreqgen-ui.c \
58         qualified.c
59
60
61 common_libs = $(libcommon) ../kbx/libkeybox.a ../jnlib/libjnlib.a \
62               ../gl/libgnu.a
63
64 gpgsm_LDADD = $(common_libs) ../common/libgpgrl.a  $(NETLIBS) \
65               $(LIBGCRYPT_LIBS) $(KSBA_LIBS) $(LIBASSUAN_LIBS) \
66               $(GPG_ERROR_LIBS) $(LIBREADLINE) $(LIBINTL) $(ZLIBS) \
67               $(LIBICONV) $(resource_objs)
68
69 # Make sure that all libs are build before we use them.  This is
70 # important for things like make -j2.
71 $(PROGRAMS): $(common_libs)