aaed0ff2387a08cf3b25d9ed863ae43e9a22a549
[gnupg.git] / g10 / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 INCLUDES = -I$(top_srcdir)/include
4 EXTRA_DIST = OPTIONS  pubring.asc
5 OMIT_DEPENDENCIES = zlib.h zconf.h
6 BUILT_SOURCES = g10maint.c
7 needed_libs = ../cipher/libcipher.a ../mpi/libmpi.a ../util/libutil.a
8
9 bin_PROGRAMS = gpg gpgm
10
11 common_source =  \
12               build-packet.c    \
13               compress.c        \
14               filter.h          \
15               free-packet.c     \
16               getkey.c          \
17               keydb.h           \
18               pkclist.c         \
19               skclist.c         \
20               ringedit.c        \
21               kbnode.c          \
22               main.h            \
23               mainproc.c        \
24               armor.c           \
25               mdfilter.c        \
26               textfilter.c      \
27               cipher.c          \
28               elg.c             \
29               rsa.c             \
30               options.h         \
31               openfile.c        \
32               keyid.c           \
33               trustdb.c         \
34               trustdb.h         \
35               packet.h          \
36               parse-packet.c    \
37               passphrase.c      \
38               pubkey-enc.c      \
39               seckey-cert.c     \
40               seskey.c          \
41               import.c          \
42               export.c          \
43               comment.c         \
44               status.c          \
45               status.h          \
46               sign.c            \
47               plaintext.c       \
48               encr-data.c       \
49               encode.c          \
50               revoke.c          \
51               sig-check.c
52
53 gpg_SOURCES  = g10.c            \
54               $(common_source)  \
55               keygen.c
56
57
58 gpgm_SOURCES = g10maint.c   \
59               dearmor.c     \
60               keylist.c     \
61               $(common_source)
62
63 LDADD = @INTLLIBS@ $(needed_libs) @ZLIBS@
64
65 g10maint.c : g10.c
66             $(CPP) $(DEFS) $(INCLUDES) -DIS_G10MAINT  $<  > $@ || rm $@
67
68 $(PROGRAMS): $(needed_libs)
69