1 # Copyright (C) 1998, 1999, 2000, 2001, 2002,
2 # 2003 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 2 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, write to the Free Software
18 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
20 ## Process this file with automake to produce Makefile.in
22 INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/intl
23 EXTRA_DIST = options.skel
24 # it seems that we can't use this with automake 1.5
25 #OMIT_DEPENDENCIES = zlib.h zconf.h
26 libexecdir = @libexecdir@/@PACKAGE@
27 if ! HAVE_DOSISH_SYSTEM
28 AM_CFLAGS = -DGNUPG_LIBEXECDIR="\"$(libexecdir)\""
30 needed_libs = ../cipher/libcipher.a ../mpi/libmpi.a ../util/libutil.a
32 #noinst_PROGRAMS = gpgd
33 bin_PROGRAMS = gpg gpgv
35 if ENABLE_BZIP2_SUPPORT
36 bzip2_source = compress-bz2.c
73 if ENABLE_CARD_SUPPORT
74 card_support_source_g10 = card-util.c
75 card_support_source_scd = \
80 ccid-driver.c ccid-driver.h
81 card_support_source_local = cardglue.c cardglue.h tlv.c tlv.h
83 card_support_source_g10 =
84 card_support_source_scd =
85 card_support_source_local =
88 card_support_source = $(card_support_source_local) $(card_support_source_g10) $(card_support_source_scd)
92 $(card_support_source) \
119 keyserver-internal.h \
120 photoid.c photoid.h \
123 gpgv_SOURCES = gpgv.c \
127 #gpgd_SOURCES = gpgd.c \
134 LDADD = $(needed_libs) @LIBINTL@ @CAPLIBS@ @ZLIBS@ @W32LIBS@
135 gpg_LDADD = $(LDADD) @DLLIBS@ @NETLIBS@ @LIBUSB_LIBS@
137 $(PROGRAMS): $(needed_libs)
140 $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)
141 $(INSTALL_DATA) $(srcdir)/options.skel \
142 $(DESTDIR)$(pkgdatadir)/options.skel
144 if test -f $(DESTDIR)$(bindir)/gpgm ; then \
145 echo "removing obsolete gpgm binary" ; \
146 rm $(DESTDIR)$(bindir)/gpgm ; \
149 # Helper to update some source files.
150 update-source-from-gnupg-2:
152 if test -d ../../gnupg-1.9/scd; then dir="../../gnupg-1.9"; \
153 elif test -d ../../gnupg/scd; then dir="../../gnupg"; \
156 for i in $(card_support_source_scd); do \
157 cp $$dir/scd/$$i $$i; echo $$i; \
159 for i in $(card_support_source_g10); do \
160 cp $$dir/g10/$$i $$i; echo $$i; \
162 echo "Please remember to update the ChangeLog accordingly!"