Does now work with libgcrypt
[gnupg.git] / g10 / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/intl
4 EXTRA_DIST = OPTIONS  pubring.asc  options.skel
5 OMIT_DEPENDENCIES = zlib.h zconf.h
6 LDFLAGS = @LDFLAGS@ $(LIBGCRYPT_LIBS)
7 # we need to add libutil.la a second time because we have to resolve
8 # gpg_log_ in some libjnlib modules. - very ugly - should be removed soon.
9 needed_libs = ../util/libutil.a \
10               ../jnlib/libjnlib.a ../util/libutil.a
11
12 #noinst_PROGRAMS = gpgd
13 #bin_PROGRAMS = gpg kbxutil
14 noinst_PROGRAMS = gpg kbxutil
15
16 common_source =  \
17               build-packet.c    \
18               compress.c        \
19               basicdefs.h       \
20               filter.h          \
21               free-packet.c     \
22               getkey.c          \
23               keydb.h           \
24               delkey.c          \
25               pkclist.c         \
26               skclist.c         \
27               ringedit.c        \
28               kbnode.c          \
29               kbx.h             \
30               kbxblob.c         \
31               kbxio.c           \
32               kbxfile.c         \
33               main.h            \
34               mainproc.c        \
35               armor.c           \
36               mdfilter.c        \
37               textfilter.c      \
38               cipher.c          \
39               misc.c            \
40               options.h         \
41               openfile.c        \
42               keyid.c           \
43               trustdb.c         \
44               trustdb.h         \
45               tdbdump.c         \
46               tdbio.c           \
47               tdbio.h           \
48               hkp.h             \
49               hkp.c             \
50               packet.h          \
51               parse-packet.c    \
52               passphrase.c      \
53               pubkey-enc.c      \
54               seckey-cert.c     \
55               seskey.c          \
56               import.c          \
57               export.c          \
58               comment.c         \
59               status.c          \
60               status.h          \
61               sign.c            \
62               plaintext.c       \
63               encr-data.c       \
64               encode.c          \
65               revoke.c          \
66               keylist.c         \
67               sig-check.c       \
68               signal.c          \
69               helptext.c
70
71 gpg_SOURCES  = gpg.c            \
72               $(common_source)  \
73               verify.c          \
74               decrypt.c         \
75               keyedit.c         \
76               dearmor.c         \
77               keygen.c
78
79 # fixme: remove unused sources from kbxutil
80 kbxutil_SOURCES = kbxutil.c   \
81               $(common_source)
82
83
84 #gpgd_SOURCES = gpgd.c \
85 #              ks-proto.h \
86 #              ks-proto.c \
87 #              ks-db.c \
88 #              ks-db.h \
89 #              $(common_source)
90
91
92 LDADD =  $(needed_libs)  @ZLIBS@ @INTLLIBS@
93
94
95 $(PROGRAMS): $(needed_libs)
96
97
98 install-data-local:
99         $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)
100         $(INSTALL_DATA) $(srcdir)/options.skel \
101                                 $(DESTDIR)$(pkgdatadir)/options.skel
102