1 # Copyright (C) 1998, 1999, 2000, 2001, 2002,
2 # 2003, 2006 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 <http://www.gnu.org/licenses/>.
19 ## Process this file with automake to produce Makefile.in
21 EXTRA_DIST = options.skel
23 AM_CPPFLAGS = -I$(top_srcdir)/gl -I$(top_srcdir)/common \
24 -I$(top_srcdir)/include -I$(top_srcdir)/intl
26 include $(top_srcdir)/am/cmacros.am
28 AM_CFLAGS = $(LIBGCRYPT_CFLAGS) $(LIBASSUAN_CFLAGS) $(GPG_ERROR_CFLAGS)
30 needed_libs = $(libcommon) ../jnlib/libjnlib.a ../gl/libgnu.a
32 bin_PROGRAMS = gpg2 gpgv2
33 noinst_PROGRAMS = $(module_tests)
34 TESTS = $(module_tests)
36 if ENABLE_BZIP2_SUPPORT
37 bzip2_source = compress-bz2.c
74 gpg2_SOURCES = gpg.c \
102 keyserver-internal.h \
103 photoid.c photoid.h \
104 call-agent.c call-agent.h \
108 gpgv2_SOURCES = gpgv.c \
112 #gpgd_SOURCES = gpgd.c \
119 LDADD = $(needed_libs) ../common/libgpgrl.a \
120 $(ZLIBS) $(DNSLIBS) $(LIBREADLINE) \
121 $(LIBINTL) $(CAPLIBS) $(NETLIBS)
122 gpg2_LDADD = $(LDADD) $(LIBGCRYPT_LIBS) $(LIBASSUAN_LIBS) $(GPG_ERROR_LIBS) \
124 gpgv2_LDADD = $(LDADD) $(LIBGCRYPT_LIBS) $(LIBASSUAN_LIBS) $(GPG_ERROR_LIBS) \
128 module_tests = t-rmd160
129 t_rmd160_SOURCES = t-rmd160.c rmd160.c
130 t_rmd160_LDADD = $(t_common_ldadd)
133 $(PROGRAMS): $(needed_libs) ../common/libgpgrl.a
136 $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)
137 $(INSTALL_DATA) $(srcdir)/options.skel \
138 $(DESTDIR)$(pkgdatadir)/gpg-conf.skel