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