Update head to match stable 1.0
[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@ @DYNLINK_LDFLAGS@
26 needed_libs = ../cipher/libcipher.a ../mpi/libmpi.a ../util/libutil.a
27
28 #noinst_PROGRAMS = gpgd
29 bin_PROGRAMS = gpg gpgv
30
31 common_source =  \
32               global.h          \
33               build-packet.c    \
34               compress.c        \
35               filter.h          \
36               free-packet.c     \
37               getkey.c          \
38               keydb.c keydb.h    \
39               keyring.c keyring.h \
40               seskey.c          \
41               kbnode.c          \
42               main.h            \
43               mainproc.c        \
44               armor.c           \
45               mdfilter.c        \
46               textfilter.c      \
47               misc.c            \
48               options.h         \
49               openfile.c        \
50               keyid.c           \
51               packet.h          \
52               parse-packet.c    \
53               comment.c         \
54               status.c          \
55               status.h          \
56               plaintext.c       \
57               sig-check.c       \
58               keylist.c         \
59               signal.c
60
61 gpg_SOURCES  = g10.c            \
62               $(common_source)  \
63               pkclist.c         \
64               skclist.c         \
65               pubkey-enc.c      \
66               passphrase.c      \
67               seckey-cert.c     \
68               encr-data.c       \
69               cipher.c          \
70               encode.c          \
71               sign.c            \
72               verify.c          \
73               revoke.c          \
74               decrypt.c         \
75               keyedit.c         \
76               dearmor.c         \
77               import.c          \
78               export.c          \
79               hkp.h             \
80               hkp.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) @NETLIBS@
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