added fast-import to import-options
[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 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               trustdb.c         \
80               trustdb.h         \
81               tdbdump.c         \
82               tdbio.c           \
83               tdbio.h           \
84               delkey.c          \
85               keygen.c          \
86               pipemode.c        \
87               helptext.c        \
88               keyserver.c       \
89               keyserver-internal.h \
90               photoid.c photoid.h \
91               exec.c exec.h
92
93
94
95 gpgv_SOURCES = gpgv.c           \
96               $(common_source)  \
97               verify.c          
98
99
100
101
102 #gpgd_SOURCES = gpgd.c \
103 #              ks-proto.h \
104 #              ks-proto.c \
105 #              ks-db.c \
106 #              ks-db.h \
107 #              $(common_source)
108
109 LDADD =  $(needed_libs) @ZLIBS@ @INTLLIBS@
110 # gpg gets LIBOBJS to add in mkdtemp if the platform doesn't have it
111 gpg_LDADD = @LIBOBJS@ $(LDADD) @NETLIBS@
112
113 $(PROGRAMS): $(needed_libs)
114
115 install-data-local:
116         $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)
117         $(INSTALL_DATA) $(srcdir)/options.skel \
118                                 $(DESTDIR)$(pkgdatadir)/options.skel
119         @set -e;\
120          if test -f $(DESTDIR)$(bindir)/gpgm ; then \
121            echo "removing obsolete gpgm binary" ;   \
122            rm $(DESTDIR)$(bindir)/gpgm ;            \
123          fi