g10/ does build again.
[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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
19
20 EXTRA_DIST = Manifest watchgnupg.c \
21              addgnupghome gpgsm-gencert.sh
22
23 AM_CPPFLAGS = -I$(top_srcdir)/gl -I$(top_srcdir)/intl -I$(top_srcdir)/common
24 include $(top_srcdir)/am/cmacros.am
25
26 AM_CFLAGS = $(LIBGCRYPT_CFLAGS) $(GPG_ERROR_CFLAGS) $(LIBASSUAN_CFLAGS)
27
28 sbin_SCRIPTS = addgnupghome
29
30 bin_SCRIPTS = gpgsm-gencert.sh
31
32 if BUILD_SYMCRYPTRUN
33   symcryptrun = symcryptrun
34 else
35   symcryptrun =
36 endif
37
38 bin_PROGRAMS = gpgconf gpg-connect-agent gpgkey2ssh ${symcryptrun} gpgparsemail
39 if !HAVE_W32_SYSTEM
40 bin_PROGRAMS += watchgnupg
41 endif
42
43 gpgconf_SOURCES = gpgconf.c gpgconf.h gpgconf-comp.c no-libgcrypt.c
44
45 gpgconf_LDADD = ../jnlib/libjnlib.a \
46                 ../common/libcommon.a ../gl/libgnu.a @LIBINTL@
47
48 gpgparsemail_SOURCES = gpgparsemail.c rfc822parse.c rfc822parse.h
49 gpgparsemail_LDADD = 
50
51 symcryptrun_SOURCES = symcryptrun.c
52 symcryptrun_LDADD = $(LIBUTIL_LIBS) ../jnlib/libjnlib.a \
53                     ../common/libcommon.a ../gl/libgnu.a \
54                     ../common/libsimple-pwquery.a $(LIBGCRYPT_LIBS) \
55                     $(GPG_ERROR_LIBS) $(LIBINTL)
56
57 watchgnupg_SOURCES = watchgnupg.c 
58 watchgnupg_LDADD = $(NETLIBS)
59
60 gpg_connect_agent_SOURCES = gpg-connect-agent.c no-libgcrypt.c
61 gpg_connect_agent_LDADD = ../jnlib/libjnlib.a \
62                           ../common/libcommon.a ../gl/libgnu.a \
63                           $(LIBASSUAN_LIBS) $(GPG_ERROR_LIBS) $(LIBINTL)
64
65 gpgkey2ssh_SOURCES = gpgkey2ssh.c
66 gpgkey2ssh_CFLAGS = $(LIBGCRYPT_CFLAGS) $(GPG_ERROR_CFLAGS)
67 gpgkey2ssh_LDADD = ../common/libcommon.a ../gl/libgnu.a \
68                    $(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS)