1 ## Process this file with automake to produce Makefile.in
2 ## Use aclocal -I m4; automake --foreign
4 AUTOMAKE_OPTIONS = foreign
5 EXTRA_PROGRAMS = madmutt_dotlock pgpringng pgpewrapng makedoc
9 NNTP_INCLUDES = -I$(top_srcdir)/nntp
12 SUBDIRS = intl m4 po $(XXXXXXXXXXXX_doc) contrib \
13 lib-lib lib-mime lib-crypt lib-hash lib \
14 pop imap $(NNTP_SUBDIR)
16 BUILT_SOURCES = keymap_defs.h version.h
18 bin_PROGRAMS = madmutt madmutt_dotlock pgpringng pgpewrapng smime_keysng
19 madmutt_SOURCES = $(BUILT_SOURCES) \
20 alias.c attach.c base64.c browser.c buffy.c \
21 charset.c color.c compress.c commands.c complete.c \
22 compose.c copy.c curs_lib.c curs_main.c \
24 flags.c filter.c from.c getdomain.c \
25 handler.c hcache.c hdrline.c headers.c help.c history.c hook.c \
26 init.c keymap.c lib.c \
27 main.c mbox.c mbyte.c menu.c mh.c muttlib.c mutt_idna.c mx.c \
28 pager.c pattern.c postpone.c query.c \
29 recvattach.c recvcmd.c rfc1524.c rfc3676.c \
30 score.c send.c sendlib.c sidebar.c signal.c sort.c state.c status.c system.c \
31 thread.c url.c utf8.c wcwidth.c \
32 account.c mutt_socket.c mutt_tunnel.c
34 madmutt_LDADD = @MUTT_LIB_OBJECTS@ @LIBOBJS@ \
35 -Limap -limap -Lpop -lpop $(LIBNNTP) \
36 -Llib-lib -llib -Llib-mime -lmime -Llib-crypt -lcrypt -Llib-hash -lhash \
37 -Llib -lsane $(MUTTLIBS) $(INTLLIBS) $(LIBICONV)
39 madmutt_DEPENDENCIES = @MUTT_LIB_OBJECTS@ @LIBOBJS@ \
40 $(top_builddir)/lib-lib/liblib.a \
41 $(top_builddir)/lib-mime/libmime.a \
42 $(top_builddir)/lib-crypt/libcrypt.a \
43 $(top_builddir)/lib-hash/libhash.a \
44 $(top_builddir)/lib/libsane.a \
46 $(top_builddir)/pop/libpop.a \
47 $(top_builddir)/imap/libimap.a \
48 $(LIBNNTPDEPS) $(INTLDEPS)
50 makedoc_SOURCES = makedoc.c
51 makedoc_LDADD = -Llib-lib -llib
52 makedoc_DEPENDENCIES = $(top_builddir)/lib-lib/liblib.a
56 DEFS=-DPKGDATADIR=\"$(pkgdatadir)\" -DSYSCONFDIR=\"$(sysconfdir)\" \
57 -DBINDIR=\"$(bindir)\" -DMUTTLOCALEDIR=\"$(datadir)/locale\" \
58 -DHAVE_CONFIG_H=1 -DPKGDOCDIR=\"$(docdir)\"
60 INCLUDES=-I. -I$(top_srcdir) $(IMAP_INCLUDES) $(NNTP_INCLUDES) $(GPGME_CFLAGS) -Iintl
62 CPPFLAGS=@CPPFLAGS@ -I$(includedir)
64 EXTRA_madmutt_SOURCES = \
65 account.c mutt_sasl.c mutt_socket.c mutt_ssl.c \
66 mutt_tunnel.c resize.c dotlock.c remailer.c \
67 alias.h browser.h enter.h \
68 mbyte.h remailer.h url.h state.h \
69 mutt_idna.h mutt_libesmtp.c sidebar.h state.h
71 EXTRA_DIST = config.rpath COPYRIGHT GPL OPS OPS.PGP OPS.CRYPT OPS.SMIME TODO \
72 configure acconfig.h \
73 account.h alias.h attach.h recvattach.h handler.h thread.h \
74 buffy.h charset.h compress.h copy.h \
75 dotlock.h functions.def gen_defs \
76 enter.h recvattach.h handler.h thread.h \
77 globals.h history.h init.h keymap.h mutt_crypt.h \
78 mime.h mutt.h mutt_curses.h mutt_menu.h \
79 mutt_sasl.h mutt_socket.h mutt_ssl.h mutt_tunnel.h \
80 mbox.h mh.h mx.h pager.h protos.h rfc1524.h \
81 rfc3676.h sort.h mime.types autogen.sh \
82 _regex.h OPS.MIX remailer.c remailer.h browser.h state.h \
83 mbyte.h lib.h extlib.c pgpewrap.c smime_keys.pl pgplib.h madmuttrc.head madmuttrc \
84 makedoc.c stamp-doc-rc README.SSL smime.h\
85 depcomp mutt_idna.h regex.c mutt_libesmtp.h crypt-gpgme.h
87 madmutt_dotlock_SOURCES = dotlock.c
88 madmutt_dotlock_LDADD = -Llib-lib -llib @LIBOBJS@
89 madmutt_dotlock_DEPENDENCIES = @LIBOBJS@ $(top_builddir)/lib-lib/liblib.a
91 pgpringng_SOURCES = pgppubring.c lib.c extlib.c
92 pgpringng_LDADD = @LIBOBJS@ $(INTLLIBS) \
93 -Llib-lib -llib -Llib-hash -lhash -Llib-crypt -lcrypt -Llib -lsane
94 pgpringng_DEPENDENCIES = @LIBOBJS@ $(INTLDEPS) \
95 $(top_builddir)/lib-lib/liblib.a \
96 $(top_builddir)/lib-hash/libhash.a
98 pgpewrapng_SOURCES = pgpewrap.c
100 pgpewrapng_DEPENDENCIES =
102 CLEANFILES = stamp-doc-rc makedoc \
103 keymap_alldefs.h keymap_defs.h version.h
105 ACLOCAL_AMFLAGS = -I m4
107 LDADD = @LIBOBJS@ @LIBINTL@
111 smime_keysng: $(srcdir)/smime_keys.pl
112 cp $(srcdir)/smime_keys.pl smime_keysng
113 chmod +x smime_keysng
115 Makefile: $(BUILT_SOURCES)
117 keymap_defs.h: $(OPS) $(srcdir)/gen_defs
118 $(srcdir)/gen_defs $(OPS) > keymap_defs.h
120 keymap_alldefs.h: $(srcdir)/OPS $(srcdir)/OPS.PGP $(srcdir)/OPS.MIX $(srcdir)/OPS.CRYPT $(srcdir)/OPS.SMIME $(srcdir)/gen_defs
121 $(srcdir)/gen_defs $(srcdir)/OPS $(srcdir)/OPS.PGP \
122 $(srcdir)/OPS.MIX $(srcdir)/OPS.CRYPT $(srcdir)/OPS.SMIME \
126 echo "#define MUTT_REVISION \"git\"" > version.h
129 if test -f $(DESTDIR)$(bindir)/mutt.dotlock && test -f $(DESTDIR)$(bindir)/madmutt_dotlock ; then \
130 rm -f $(DESTDIR)$(bindir)/mutt.dotlock ; \
131 ln -sf $(DESTDIR)$(bindir)/madmutt_dotlock $(DESTDIR)$(bindir)/mutt.dotlock ; \
133 if test -f $(DESTDIR)$(bindir)/madmutt_dotlock && test x@DOTLOCK_GROUP@ != x ; then \
134 chgrp @DOTLOCK_GROUP@ $(DESTDIR)$(bindir)/madmutt_dotlock && \
135 chmod @DOTLOCK_PERMISSION@ $(DESTDIR)$(bindir)/madmutt_dotlock || \
136 { echo "Can't fix madmutt_dotlock's permissions!" >&2 ; } \
139 install-data-local: madmuttrc
140 $(srcdir)/mkinstalldirs $(DESTDIR)$(sysconfdir)
141 -if [ -f $(DESTDIR)$(pkgdatadir)/madmuttrc ] ; then \
142 mv $(DESTDIR)$(pkgdatadir)/madmuttrc* $(DESTDIR)$(sysconfdir) ; \
143 elif [ -f $(DESTDIR)$(pkgdatadir)/../madmuttrc ] ; then \
144 mv $(DESTDIR)$(pkgdatadir)/../madmuttrc* $(DESTDIR)$(sysconfdir) ; \
145 elif [ ! -f $(DESTDIR)$(sysconfdir)/madmuttrc ] ; then \
146 $(INSTALL) -m 644 madmuttrc $(DESTDIR)$(sysconfdir) ; \
148 -if [ ! -f $(DESTDIR)$(sysconfdir)/madmutt-mime.types ]; then \
149 $(INSTALL) -m 644 $(srcdir)/mime.types $(DESTDIR)$(sysconfdir)/madmutt-mime.types; \
153 # kluge around automake problems.
156 -for file in $(BUILT_SOURCES) ; do rm -f $(distdir)/$$file ; done
159 (cd $(srcdir) && ./build-release )
161 update-doc: stamp-doc-rc
162 (cd doc && $(MAKE) update-doc)
164 madmuttrc: stamp-doc-rc
166 stamp-doc-rc: $(srcdir)/init.h makedoc madmuttrc.head
167 -rm -f madmuttrc stamp-doc-rc
168 $(CPP) $(INCLUDES) $(DEFS) $(CPPFLAGS) -D_MAKEDOC -C \
169 $(srcdir)/init.h | ./makedoc -c | cat madmuttrc.head - > madmuttrc