Moved 1.9 branch to trunk
[gnupg.git] / tools / Makefile.am
1 # Makefile.am - Tools directory
2 #       Copyright (C) 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 2 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, write to the Free Software
18 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
19 # USA.
20
21 EXTRA_DIST = Manifest watchgnupg.c \
22              addgnupghome gpgsm-gencert.sh
23
24 AM_CPPFLAGS = -I$(top_srcdir)/gl -I$(top_srcdir)/intl -I$(top_srcdir)/common
25 include $(top_srcdir)/am/cmacros.am
26
27 AM_CFLAGS = $(LIBGCRYPT_CFLAGS) $(GPG_ERROR_CFLAGS) $(LIBASSUAN_CFLAGS)
28
29 sbin_SCRIPTS = addgnupghome
30
31 bin_SCRIPTS = gpgsm-gencert.sh
32
33 if BUILD_SYMCRYPTRUN
34   symcryptrun = symcryptrun
35 else
36   symcryptrun =
37 endif
38
39 bin_PROGRAMS = gpgconf gpg-connect-agent gpgkey2ssh ${symcryptrun} gpgparsemail
40 if !HAVE_W32_SYSTEM
41 bin_PROGRAMS += watchgnupg
42 endif
43
44 gpgconf_SOURCES = gpgconf.c gpgconf.h gpgconf-comp.c no-libgcrypt.c
45
46 # jnlib/common sucks in gpg-error, will they, nil they (some compilers
47 # do not eliminate the supposed-to-be-unused-inline-functions).
48 gpgconf_LDADD = ../jnlib/libjnlib.a ../common/libcommon.a \
49                 ../gl/libgnu.a @LIBINTL@ $(GPG_ERROR_LIBS)
50
51 gpgparsemail_SOURCES = gpgparsemail.c rfc822parse.c rfc822parse.h
52 gpgparsemail_LDADD = 
53
54 symcryptrun_SOURCES = symcryptrun.c
55 symcryptrun_LDADD = $(LIBUTIL_LIBS) ../jnlib/libjnlib.a \
56                     ../common/libcommon.a ../gl/libgnu.a \
57                     ../common/libsimple-pwquery.a $(LIBGCRYPT_LIBS) \
58                     $(GPG_ERROR_LIBS) $(LIBINTL)
59
60 watchgnupg_SOURCES = watchgnupg.c 
61 watchgnupg_LDADD = $(NETLIBS)
62
63 gpg_connect_agent_SOURCES = gpg-connect-agent.c no-libgcrypt.c
64 gpg_connect_agent_LDADD = ../jnlib/libjnlib.a \
65                           ../common/libcommon.a ../gl/libgnu.a \
66                           $(LIBASSUAN_LIBS) $(GPG_ERROR_LIBS) $(LIBINTL)
67
68 gpgkey2ssh_SOURCES = gpgkey2ssh.c
69 gpgkey2ssh_CFLAGS = $(LIBGCRYPT_CFLAGS) $(GPG_ERROR_CFLAGS)
70 # common sucks in jnlib, via use of BUG() in an inline function, which
71 # some compilers do not eliminate.
72 gpgkey2ssh_LDADD = ../jnlib/libjnlib.a ../common/libcommon.a ../gl/libgnu.a \
73                    $(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS)