Changed to GPLv3.
[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 3 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, see <http://www.gnu.org/licenses/>.
18
19 ## Process this file with automake to produce Makefile.in
20
21 EXTRA_DIST = options.skel
22
23 AM_CPPFLAGS = -I$(top_srcdir)/gl -I$(top_srcdir)/common \
24               -I$(top_srcdir)/include -I$(top_srcdir)/intl 
25
26 include $(top_srcdir)/am/cmacros.am
27
28 AM_CFLAGS = $(LIBGCRYPT_CFLAGS) $(LIBASSUAN_CFLAGS) $(GPG_ERROR_CFLAGS)
29
30 needed_libs = $(libcommon) ../jnlib/libjnlib.a ../gl/libgnu.a 
31
32 bin_PROGRAMS = gpg2 gpgv2
33
34 if ENABLE_BZIP2_SUPPORT
35 bzip2_source = compress-bz2.c
36 else
37 bzip2_source =
38 endif
39
40
41 common_source =  \
42               gpg.h             \
43               build-packet.c    \
44               compress.c        \
45               $(bzip2_source)   \
46               filter.h          \
47               free-packet.c     \
48               getkey.c          \
49               keydb.c keydb.h    \
50               keyring.c keyring.h \
51               seskey.c          \
52               kbnode.c          \
53               main.h            \
54               mainproc.c        \
55               armor.c           \
56               mdfilter.c        \
57               textfilter.c      \
58               progress.c        \
59               misc.c            \
60               options.h         \
61               openfile.c        \
62               keyid.c           \
63               packet.h          \
64               parse-packet.c    \
65               status.c          \
66               status.h          \
67               plaintext.c       \
68               sig-check.c       \
69               keylist.c         \
70               pkglue.c pkglue.h 
71
72 gpg2_SOURCES  = gpg.c           \
73               server.c          \
74               $(common_source)  \
75               pkclist.c         \
76               skclist.c         \
77               pubkey-enc.c      \
78               passphrase.c      \
79               seckey-cert.c     \
80               encr-data.c       \
81               cipher.c          \
82               encode.c          \
83               sign.c            \
84               verify.c          \
85               revoke.c          \
86               decrypt.c         \
87               keyedit.c         \
88               dearmor.c         \
89               import.c          \
90               export.c          \
91               trustdb.c         \
92               trustdb.h         \
93               tdbdump.c         \
94               tdbio.c           \
95               tdbio.h           \
96               delkey.c          \
97               keygen.c          \
98               helptext.c        \
99               keyserver.c       \
100               keyserver-internal.h \
101               photoid.c photoid.h \
102               call-agent.c call-agent.h \
103               card-util.c \
104               exec.c exec.h
105
106 gpgv2_SOURCES = gpgv.c           \
107               $(common_source)  \
108               verify.c          
109
110 #gpgd_SOURCES = gpgd.c \
111 #              ks-proto.h \
112 #              ks-proto.c \
113 #              ks-db.c \
114 #              ks-db.h \
115 #              $(common_source)
116
117 LDADD =  $(needed_libs) ../common/libgpgrl.a \
118          $(ZLIBS) $(DNSLIBS) $(LIBREADLINE) \
119          $(LIBINTL) $(CAPLIBS) $(NETLIBS)
120 gpg2_LDADD =  $(LDADD) $(LIBGCRYPT_LIBS) $(LIBASSUAN_LIBS) $(GPG_ERROR_LIBS) \
121              $(LIBICONV)
122 gpgv2_LDADD = $(LDADD) $(LIBGCRYPT_LIBS) $(LIBASSUAN_LIBS) $(GPG_ERROR_LIBS) \
123               $(LIBICONV)
124
125 $(PROGRAMS): $(needed_libs) ../common/libgpgrl.a
126
127 install-data-local:
128         $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)
129         $(INSTALL_DATA) $(srcdir)/options.skel \
130                                 $(DESTDIR)$(pkgdatadir)/gpg-conf.skel
131