nearly ready for 0.3.0
[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 -I../intl
4 EXTRA_DIST = OPTIONS  pubring.asc
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 gpgm
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               pkclist.c         \
20               skclist.c         \
21               ringedit.c        \
22               kbnode.c          \
23               main.h            \
24               mainproc.c        \
25               armor.c           \
26               mdfilter.c        \
27               textfilter.c      \
28               cipher.c          \
29               misc.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               keyedit.c         \
48               plaintext.c       \
49               encr-data.c       \
50               encode.c          \
51               revoke.c          \
52               keylist.c         \
53               sig-check.c       \
54               signal.c
55
56 gpg_SOURCES  = g10.c            \
57               $(common_source)  \
58               verify.c          \
59               decrypt.c         \
60               keygen.c
61
62
63 gpgm_SOURCES = dearmor.c     \
64               $(common_source)
65
66 gpgd_SOURCES = gpgd.c \
67               ks-proto.h \
68               ks-proto.c \
69               $(common_source)
70
71
72 LDADD = @INTLLIBS@ $(needed_libs) @ZLIBS@
73
74 gpgm_LDADD = g10maint.o $(LDADD)
75
76 g10maint.o: g10.c
77         $(COMPILE) -DIS_G10MAINT  -o g10maint.o -c g10.c
78
79
80 $(PROGRAMS): $(needed_libs)
81