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