9018c1450a40dc6ac3e4b22a9a79feba25ee2591
[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 = -static @LDFLAGS@ @DYNLINK_LDFLAGS@
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.la ../gcrypt/libgcrypt.la ../jnlib/libjnlib.la ../util/libutil.la
10
11 #noinst_PROGRAMS = gpgd
12 bin_PROGRAMS = gpg
13
14 common_source =  \
15               build-packet.c    \
16               compress.c        \
17               basicdefs.h       \
18               filter.h          \
19               free-packet.c     \
20               getkey.c          \
21               keydb.h           \
22               delkey.c          \
23               pkclist.c         \
24               skclist.c         \
25               ringedit.c        \
26               kbnode.c          \
27               kbx.h             \
28               kbxblob.c         \
29               kbxfile.c         \
30               main.h            \
31               mainproc.c        \
32               armor.c           \
33               mdfilter.c        \
34               textfilter.c      \
35               cipher.c          \
36               misc.c            \
37               options.h         \
38               openfile.c        \
39               keyid.c           \
40               trustdb.c         \
41               trustdb.h         \
42               tdbdump.c         \
43               tdbio.c           \
44               tdbio.h           \
45               hkp.h             \
46               hkp.c             \
47               packet.h          \
48               parse-packet.c    \
49               passphrase.c      \
50               pubkey-enc.c      \
51               seckey-cert.c     \
52               seskey.c          \
53               import.c          \
54               export.c          \
55               comment.c         \
56               status.c          \
57               status.h          \
58               sign.c            \
59               plaintext.c       \
60               encr-data.c       \
61               encode.c          \
62               revoke.c          \
63               keylist.c         \
64               sig-check.c       \
65               signal.c          \
66               helptext.c
67
68 gpg_SOURCES  = gpg.c            \
69               $(common_source)  \
70               verify.c          \
71               decrypt.c         \
72               keyedit.c         \
73               dearmor.c         \
74               keygen.c
75
76 #gpgd_SOURCES = gpgd.c \
77 #              ks-proto.h \
78 #              ks-proto.c \
79 #              ks-db.c \
80 #              ks-db.h \
81 #              $(common_source)
82
83
84 LDADD =  $(needed_libs) @ZLIBS@ @INTLLIBS@
85
86
87 $(PROGRAMS): $(needed_libs)
88
89
90 install-data-local:
91         $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)
92         $(INSTALL_DATA) $(srcdir)/options.skel \
93                                 $(DESTDIR)$(pkgdatadir)/options.skel
94