Update estream.
[gnupg.git] / tools / Makefile.am
blob1d04964c0e5e2de0d63911abbbb92b88ac3f371a
1 # Makefile.am - Tools directory
2 #       Copyright (C) 2003, 2007 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 <http://www.gnu.org/licenses/>.
19 EXTRA_DIST = \
20         Manifest watchgnupg.c \
21         addgnupghome applygnupgdefaults gpgsm-gencert.sh \
22         lspgpot mail-signed-keys convert-from-106 sockprox.c \
23         ccidmon.c
26 AM_CPPFLAGS = -I$(top_srcdir)/gl -I$(top_srcdir)/intl -I$(top_srcdir)/common
27 include $(top_srcdir)/am/cmacros.am
29 AM_CFLAGS = $(LIBGCRYPT_CFLAGS) $(GPG_ERROR_CFLAGS) $(LIBASSUAN_CFLAGS)
31 sbin_SCRIPTS = addgnupghome applygnupgdefaults
33 bin_SCRIPTS = gpgsm-gencert.sh
34 if HAVE_USTAR
35 # bin_SCRIPTS += gpg-zip
36 noinst_SCRIPTS = gpg-zip
37 endif
39 if BUILD_SYMCRYPTRUN
40   symcryptrun = symcryptrun
41 else
42   symcryptrun =
43 endif
45 bin_PROGRAMS = gpgconf gpg-connect-agent gpgkey2ssh ${symcryptrun}
46 if !HAVE_W32_SYSTEM
47 bin_PROGRAMS += watchgnupg gpgparsemail
48 endif
50 if !DISABLE_REGEX
51 libexec_PROGRAMS = gpg-check-pattern
52 endif
54 noinst_PROGRAMS = clean-sat mk-tdata make-dns-cert gpgsplit
56 common_libs = $(libcommon) ../jnlib/libjnlib.a ../gl/libgnu.a
57 pwquery_libs = ../common/libsimple-pwquery.a
59 gpgsplit_LDADD = $(common_libs) \
60                  $(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS) \
61                  $(ZLIBS) $(LIBINTL) $(LIBICONV)
63 gpgconf_SOURCES = gpgconf.c gpgconf.h gpgconf-comp.c no-libgcrypt.c
65 # jnlib/common sucks in gpg-error, will they, nil they (some compilers
66 # do not eliminate the supposed-to-be-unused-inline-functions).
67 gpgconf_LDADD = $(common_libs) \
68                 $(LIBINTL) $(GPG_ERROR_LIBS) $(LIBICONV) $(W32SOCKLIBS)
70 gpgparsemail_SOURCES = gpgparsemail.c rfc822parse.c rfc822parse.h
71 gpgparsemail_LDADD = 
73 symcryptrun_SOURCES = symcryptrun.c
74 symcryptrun_LDADD = $(LIBUTIL_LIBS) $(common_libs) $(pwquery_libs) \
75                     $(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS) $(LIBINTL) \
76                     $(LIBICONV) $(W32SOCKLIBS)
78 watchgnupg_SOURCES = watchgnupg.c 
79 watchgnupg_LDADD = $(NETLIBS)
81 gpg_connect_agent_SOURCES = gpg-connect-agent.c no-libgcrypt.c
82 # FIXME: remove PTH_LIBS (why do we need them at all?)
83 gpg_connect_agent_LDADD = ../common/libgpgrl.a $(common_libs) \
84                           $(LIBASSUAN_LIBS) $(PTH_LIBS) $(GPG_ERROR_LIBS) \
85                           $(LIBREADLINE) $(LIBINTL) $(NETLIBS) $(LIBICONV)
87 gpgkey2ssh_SOURCES = gpgkey2ssh.c
88 gpgkey2ssh_CFLAGS = $(LIBGCRYPT_CFLAGS) $(GPG_ERROR_CFLAGS)
89 # common sucks in jnlib, via use of BUG() in an inline function, which
90 # some compilers do not eliminate.
91 gpgkey2ssh_LDADD = $(common_libs) \
92                    $(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS) $(LIBINTL) $(LIBICONV)
95 if !DISABLE_REGEX
96 gpg_check_pattern_SOURCES = gpg-check-pattern.c
97 gpg_check_pattern_CFLAGS = $(LIBGCRYPT_CFLAGS) $(GPG_ERROR_CFLAGS)
98 gpg_check_pattern_LDADD = $(common_libs) $(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS) \
99                           $(LIBINTL) $(LIBICONV) $(W32SOCKLIBS)
100 endif
102 # Make sure that all libs are build before we use them.  This is
103 # important for things like make -j2.
104 $(PROGRAMS): $(common_libs) $(pwquery_libs) ../common/libgpgrl.a