1 # Makefile.am - Tools directory
2 # Copyright (C) 2003, 2007 Free Software Foundation, Inc.
4 # This file is part of GnuPG.
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.
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.
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, see <https://www.gnu.org/licenses/>.
20 Manifest watchgnupg.c no-libgcrypt.c \
21 addgnupghome applygnupgdefaults \
22 lspgpot mail-signed-keys convert-from-106 sockprox.c \
23 ccidmon.c ChangeLog-2011 gpg-connect-agent-w32info.rc
26 AM_CPPFLAGS = -I$(top_srcdir)/common
27 include $(top_srcdir)/am/cmacros.am
30 resource_objs += gpg-connect-agent-w32info.o
33 AM_CFLAGS = $(LIBGCRYPT_CFLAGS) $(GPG_ERROR_CFLAGS) $(LIBASSUAN_CFLAGS)
35 sbin_SCRIPTS = addgnupghome applygnupgdefaults
38 # bin_SCRIPTS += gpg-zip
39 noinst_SCRIPTS = gpg-zip
43 symcryptrun = symcryptrun
49 gpg_wks_server = gpg-wks-server
54 libexec_PROGRAMS = gpg-wks-client
56 bin_PROGRAMS = gpgconf gpg-connect-agent ${symcryptrun}
58 bin_PROGRAMS += watchgnupg gpgparsemail ${gpg_wks_server}
62 libexec_PROGRAMS += gpg-check-pattern
66 noinst_PROGRAMS = clean-sat make-dns-cert gpgsplit
71 bin_PROGRAMS += gpgtar
73 noinst_PROGRAMS += gpgtar
77 common_libs = $(libcommon)
78 commonpth_libs = $(libcommonpth)
80 # Some modules require PTH under W32CE.
82 maybe_commonpth_libs = $(commonpth_libs)
84 maybe_commonpth_libs = $(common_libs)
90 pwquery_libs = ../common/libsimple-pwquery.a
94 opt_libassuan_libs = $(LIBASSUAN_LIBS)
97 gpgsplit_LDADD = $(common_libs) \
98 $(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS) \
99 $(ZLIBS) $(LIBINTL) $(NETLIBS) $(LIBICONV)
101 gpgconf_SOURCES = gpgconf.c gpgconf.h gpgconf-comp.c
103 # common sucks in gpg-error, will they, nil they (some compilers
104 # do not eliminate the supposed-to-be-unused-inline-functions).
105 gpgconf_LDADD = $(maybe_commonpth_libs) $(opt_libassuan_libs) \
106 $(LIBINTL) $(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS) $(NETLIBS) \
107 $(LIBICONV) $(W32SOCKLIBS)
108 gpgconf_LDFLAGS = $(extra_bin_ldflags)
110 gpgparsemail_SOURCES = gpgparsemail.c rfc822parse.c rfc822parse.h
113 symcryptrun_SOURCES = symcryptrun.c
114 symcryptrun_LDADD = $(LIBUTIL_LIBS) $(common_libs) $(pwquery_libs) \
115 $(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS) $(LIBINTL) \
116 $(LIBICONV) $(NETLIBS) $(W32SOCKLIBS) $(LIBASSUAN_LIBS)
118 watchgnupg_SOURCES = watchgnupg.c
119 watchgnupg_LDADD = $(NETLIBS)
121 gpg_connect_agent_SOURCES = gpg-connect-agent.c
122 gpg_connect_agent_LDADD = ../common/libgpgrl.a $(common_libs) \
123 $(LIBASSUAN_LIBS) $(LIBGCRYPT_LIBS) \
125 $(LIBREADLINE) $(LIBINTL) $(NETLIBS) $(LIBICONV) \
130 gpg_check_pattern_SOURCES = gpg-check-pattern.c
131 gpg_check_pattern_CFLAGS = $(LIBGCRYPT_CFLAGS) $(GPG_ERROR_CFLAGS) $(INCICONV)
132 gpg_check_pattern_LDADD = $(common_libs) $(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS) \
133 $(LIBINTL) $(NETLIBS) $(LIBICONV) $(W32SOCKLIBS) \
142 gpgtar_CFLAGS = $(GPG_ERROR_CFLAGS)
143 gpgtar_LDADD = $(libcommon) $(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS) \
144 $(LIBINTL) $(NETLIBS) $(LIBICONV) $(W32SOCKLIBS)
146 gpg_wks_server_SOURCES = \
151 rfc822parse.c rfc822parse.h \
152 mime-parser.c mime-parser.h \
153 mime-maker.c mime-maker.h \
154 send-mail.c send-mail.h
156 gpg_wks_server_CFLAGS = $(GPG_ERROR_CFLAGS) $(INCICONV)
157 gpg_wks_server_LDADD = $(libcommon) $(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS) \
158 $(LIBINTL) $(LIBICONV)
160 gpg_wks_client_SOURCES = \
165 rfc822parse.c rfc822parse.h \
166 mime-parser.c mime-parser.h \
167 mime-maker.h mime-maker.c \
168 send-mail.c send-mail.h \
169 call-dirmngr.c call-dirmngr.h
171 gpg_wks_client_CFLAGS = $(LIBASSUAN_CFLAGS) $(GPG_ERROR_CFLAGS) $(INCICONV)
172 gpg_wks_client_LDADD = $(libcommon) \
173 $(LIBASSUAN_LIBS) $(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS) \
174 $(LIBINTL) $(LIBICONV)
177 # Make sure that all libs are build before we use them. This is
178 # important for things like make -j2.
179 $(PROGRAMS): $(common_libs) $(pwquery_libs) ../common/libgpgrl.a