* g10.c (main): Use 3DES instead of CAST5 if we don't have CAST5 support.
[gnupg.git] / g10 / Makefile.am
1 # Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
2 #
3 # This file is part of GnuPG.
4 #
5 # GnuPG is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
9
10 # GnuPG is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
18
19 ## Process this file with automake to produce Makefile.in
20
21 INCLUDES = -I.. -I$(top_srcdir)/include -I$(top_srcdir)/intl
22 EXTRA_DIST = options.skel
23 # it seems that we can't use this with automake 1.5
24 #OMIT_DEPENDENCIES = zlib.h zconf.h
25 LDFLAGS = @LDFLAGS@
26 libexecdir = @libexecdir@/@PACKAGE@
27 CFLAGS = @CFLAGS@ -DGNUPG_LIBEXECDIR="\"$(libexecdir)\""
28 needed_libs = ../cipher/libcipher.a ../mpi/libmpi.a ../util/libutil.a
29
30 #noinst_PROGRAMS = gpgd
31 bin_PROGRAMS = gpg gpgv
32
33 common_source =  \
34               global.h          \
35               build-packet.c    \
36               compress.c        \
37               filter.h          \
38               free-packet.c     \
39               getkey.c          \
40               keydb.c keydb.h    \
41               keyring.c keyring.h \
42               seskey.c          \
43               kbnode.c          \
44               main.h            \
45               mainproc.c        \
46               armor.c           \
47               mdfilter.c        \
48               textfilter.c      \
49               misc.c            \
50               options.h         \
51               openfile.c        \
52               keyid.c           \
53               packet.h          \
54               parse-packet.c    \
55               comment.c         \
56               status.c          \
57               status.h          \
58               plaintext.c       \
59               sig-check.c       \
60               keylist.c         \
61               signal.c
62
63 gpg_SOURCES  = g10.c            \
64               $(common_source)  \
65               pkclist.c         \
66               skclist.c         \
67               pubkey-enc.c      \
68               passphrase.c      \
69               seckey-cert.c     \
70               encr-data.c       \
71               cipher.c          \
72               encode.c          \
73               sign.c            \
74               verify.c          \
75               revoke.c          \
76               decrypt.c         \
77               keyedit.c         \
78               dearmor.c         \
79               import.c          \
80               export.c          \
81               trustdb.c         \
82               trustdb.h         \
83               tdbdump.c         \
84               tdbio.c           \
85               tdbio.h           \
86               delkey.c          \
87               keygen.c          \
88               pipemode.c        \
89               helptext.c        \
90               keyserver.c       \
91               keyserver-internal.h \
92               photoid.c photoid.h \
93               exec.c exec.h
94
95
96
97 gpgv_SOURCES = gpgv.c           \
98               $(common_source)  \
99               verify.c          
100
101
102
103
104 #gpgd_SOURCES = gpgd.c \
105 #              ks-proto.h \
106 #              ks-proto.c \
107 #              ks-db.c \
108 #              ks-db.h \
109 #              $(common_source)
110
111 LDADD =  $(needed_libs) @ZLIBS@ @INTLLIBS@
112 # gpg gets LIBOBJS to add in mkdtemp if the platform doesn't have it
113 gpg_LDADD = @LIBOBJS@ $(LDADD) @EGDLIBS@
114
115 $(PROGRAMS): $(needed_libs)
116
117 install-data-local:
118         $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)
119         $(INSTALL_DATA) $(srcdir)/options.skel \
120                                 $(DESTDIR)$(pkgdatadir)/options.skel
121         @set -e;\
122          if test -f $(DESTDIR)$(bindir)/gpgm ; then \
123            echo "removing obsolete gpgm binary" ;   \
124            rm $(DESTDIR)$(bindir)/gpgm ;            \
125          fi