1 # Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004,
2 # 2005 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/>.
18 ## Process this file with automake to produce Makefile.in
20 AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/intl @LIBUSB_CPPFLAGS@
22 # it seems that we can't use this with automake 1.5
23 #OMIT_DEPENDENCIES = zlib.h zconf.h
25 if ! HAVE_DOSISH_SYSTEM
26 AM_CPPFLAGS += -DLOCALEDIR="\"$(localedir)\""
27 AM_CPPFLAGS += -DGNUPG_LIBEXECDIR="\"$(libexecdir)/@PACKAGE@\""
28 AM_CPPFLAGS += -DGNUPG_DATADIR="\"$(pkgdatadir)\""
29 AM_CPPFLAGS += -DGNUPG_LIBDIR="\"$(libdir)/@PACKAGE@\""
32 needed_libs = ../cipher/libcipher.a ../mpi/libmpi.a ../util/libutil.a
33 other_libs = $(LIBICONV) $(DNSLIBS) $(LIBINTL) $(CAPLIBS)
35 bin_PROGRAMS = gpg gpgv
36 dist_pkgdata_DATA = options.skel
38 if ENABLE_BZIP2_SUPPORT
39 bzip2_source = compress-bz2.c
75 if ENABLE_CARD_SUPPORT
76 card_support_source_gpg = card-util.c
77 card_support_source_scd = \
82 ccid-driver.c ccid-driver.h
83 card_support_source_local = cardglue.c cardglue.h tlv.c tlv.h
85 card_support_source_gpg =
86 card_support_source_scd =
87 card_support_source_local =
90 card_support_source = $(card_support_source_local) $(card_support_source_gpg) $(card_support_source_scd)
94 $(card_support_source) \
121 keyserver-internal.h \
122 photoid.c photoid.h \
125 gpgv_SOURCES = gpgv.c \
129 LDADD = $(needed_libs) $(other_libs) @ZLIBS@ @W32LIBS@ @LIBREADLINE@
130 gpg_LDADD = $(LDADD) @DLLIBS@ @NETLIBS@ @LIBUSB@
132 $(PROGRAMS): $(needed_libs)
136 if test -f $(DESTDIR)$(bindir)/gpgm ; then \
137 echo "removing obsolete gpgm binary" ; \
138 rm $(DESTDIR)$(bindir)/gpgm ; \
141 # Helper to update some source files.
142 update-source-from-gnupg-2:
144 if test -d ../../gnupg-1.9/scd; then dir="../../gnupg-1.9"; \
145 elif test -d ../../gnupg/scd; then dir="../../gnupg"; \
148 for i in $(card_support_source_scd); do \
149 cp $$dir/scd/$$i $$i; echo $$i; \
151 for i in $(card_support_source_gpg); do \
152 cp $$dir/g10/$$i $$i; echo $$i; \
154 echo "Please remember to update the ChangeLog accordingly!"