Moved 1.9 branch to trunk
[gnupg.git] / g10 / Makefile.am
1 # Copyright (C) 1998, 1999, 2000, 2001, 2002,
2 #               2003, 2006  Free Software Foundation, Inc.
3 #
4 # This file is part of GnuPG.
5 #
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.
10
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.
15
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
19 # USA.
20
21 ## Process this file with automake to produce Makefile.in
22
23 EXTRA_DIST = options.skel
24
25 AM_CPPFLAGS = -I$(top_srcdir)/gl -I$(top_srcdir)/common \
26               -I$(top_srcdir)/include -I$(top_srcdir)/intl 
27
28 include $(top_srcdir)/am/cmacros.am
29
30 AM_CFLAGS = $(LIBGCRYPT_CFLAGS)
31
32 needed_libs = ../gl/libgnu.a ../common/libcommon.a ../jnlib/libjnlib.a
33
34 bin_PROGRAMS = gpg2 gpgv2
35
36 common_source =  \
37               gpg.h             \
38               build-packet.c    \
39               compress.c        \
40               compress-bz2.c    \
41               filter.h          \
42               free-packet.c     \
43               getkey.c          \
44               keydb.c keydb.h    \
45               keyring.c keyring.h \
46               seskey.c          \
47               kbnode.c          \
48               main.h            \
49               mainproc.c        \
50               armor.c           \
51               mdfilter.c        \
52               textfilter.c      \
53               progress.c        \
54               misc.c            \
55               options.h         \
56               openfile.c        \
57               keyid.c           \
58               packet.h          \
59               parse-packet.c    \
60               status.c          \
61               status.h          \
62               plaintext.c       \
63               sig-check.c       \
64               keylist.c         \
65               pkglue.c pkglue.h 
66
67 gpg2_SOURCES  = gpg.c           \
68               $(common_source)  \
69               pkclist.c         \
70               skclist.c         \
71               pubkey-enc.c      \
72               passphrase.c      \
73               seckey-cert.c     \
74               encr-data.c       \
75               cipher.c          \
76               encode.c          \
77               sign.c            \
78               verify.c          \
79               revoke.c          \
80               decrypt.c         \
81               keyedit.c         \
82               dearmor.c         \
83               import.c          \
84               export.c          \
85               trustdb.c         \
86               trustdb.h         \
87               tdbdump.c         \
88               tdbio.c           \
89               tdbio.h           \
90               delkey.c          \
91               keygen.c          \
92               helptext.c        \
93               keyserver.c       \
94               keyserver-internal.h \
95               photoid.c photoid.h \
96               call-agent.c call-agent.h \
97               card-util.c \
98               exec.c exec.h
99
100 gpgv2_SOURCES = gpgv.c           \
101               $(common_source)  \
102               verify.c          
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) @LIBINTL@ @CAPLIBS@ @W32LIBS@ 
112 gpg2_LDADD = $(LIBGCRYPT_LIBS) $(LDADD) -lassuan -lgpg-error
113 gpgv2_LDADD = $(LIBGCRYPT_LIBS) $(LDADD) -lassuan -lgpg-error
114
115 $(PROGRAMS): $(needed_libs)
116
117 install-data-local:
118         $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)
119         $(INSTALL_DATA) $(srcdir)/options.skel \
120                                 $(DESTDIR)$(pkgdatadir)/gpg-conf.skel
121