c64055423a8478467db2201a2ef66f55b58dccc1
[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               pref.h            \
36               pref.c            \
37               packet.h          \
38               parse-packet.c    \
39               passphrase.c      \
40               pubkey-enc.c      \
41               seckey-cert.c     \
42               seskey.c          \
43               import.c          \
44               export.c          \
45               comment.c         \
46               status.c          \
47               status.h          \
48               sign.c            \
49               keyedit.c         \
50               plaintext.c       \
51               encr-data.c       \
52               encode.c          \
53               revoke.c          \
54               keylist.c         \
55               sig-check.c       \
56               signal.c
57
58 gpg_SOURCES  = g10.c            \
59               $(common_source)  \
60               verify.c          \
61               decrypt.c         \
62               keygen.c
63
64
65 gpgm_SOURCES = dearmor.c     \
66               $(common_source)
67
68 gpgd_SOURCES = gpgd.c \
69               ks-proto.h \
70               ks-proto.c \
71               $(common_source)
72
73
74 LDADD = @INTLLIBS@ $(needed_libs) @ZLIBS@
75
76 gpgm_LDADD = g10maint.o $(LDADD)
77
78 g10maint.o: g10.c
79         $(COMPILE) -DIS_G10MAINT  -o g10maint.o -c g10.c
80
81
82 $(PROGRAMS): $(needed_libs)
83