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
11 SUBDIRS = tools intl m4 po \
12 lib-lua lib-mime lib-lib lib-mx lib-hash lib-sys lib-ui \
13 pop imap $(NNTP_SUBDIR)
15 BUILT_SOURCES = keymap_defs.h charset.gperf
16 DISTCLEANFILES = $(BUILT_SOURCES)
18 bin_PROGRAMS = madmutt madmutt_dotlock
19 madmutt_SOURCES = $(BUILT_SOURCES) \
20 alias.c attach.c base64.c browser.c buffy.c charset.c commands.c \
21 compose.c copy.c crypt.c editmsg.c init.c keymap.c flags.c from.c \
22 handler.c headers.c help.c hook.c main.c muttlib.c mutt_idna.c \
23 pager.c pattern.c postpone.c recvattach.c recvcmd.c score.c send.c \
24 sendlib.c send_smtp.c sort.c state.c thread.c account.c remailer.c \
27 madmutt_LDADD = $(top_builddir)/lib-mime/libmime.a \
28 $(top_builddir)/lib-mx/libmx.a \
29 $(top_builddir)/imap/libimap.a \
30 $(top_builddir)/pop/libpop.a \
32 $(top_builddir)/lib-hash/libhash.a \
33 $(top_builddir)/lib-sys/libsys.a \
34 $(top_builddir)/lib-ui/libui.a \
35 $(top_builddir)/lib-lua/liblua.a \
36 $(top_builddir)/lib-lib/liblib.a \
37 $(MUTTLIBS) $(INTLLIBS) $(LIBICONV)
39 madmutt_DEPENDENCIES = $(top_builddir)/lib-lib/liblib.a \
40 $(top_builddir)/lib-mime/libmime.a \
41 $(top_builddir)/lib-hash/libhash.a \
42 $(top_builddir)/lib-sys/libsys.a \
43 $(top_builddir)/lib-ui/libui.a \
44 $(top_builddir)/lib-lua/liblua.a \
45 $(top_builddir)/lib-mx/libmx.a \
47 $(top_builddir)/pop/libpop.a \
48 $(top_builddir)/imap/libimap.a \
49 $(LIBNNTPDEPS) $(INTLDEPS)
53 DEFS=-DPKGDATADIR=\"$(pkgdatadir)\" -DSYSCONFDIR=\"$(sysconfdir)\" \
54 -DBINDIR=\"$(bindir)\" -DMUTTLOCALEDIR=\"$(datadir)/locale\" \
55 -DHAVE_CONFIG_H=1 -DPKGDOCDIR=\"$(docdir)\"
57 INCLUDES=-I$(top_srcdir) $(GPGME_CFLAGS) -Iintl
59 CPPFLAGS=@CPPFLAGS@ -I$(includedir)
61 EXTRA_DIST = config.rpath COPYRIGHT GPL OPS TODO \
62 configure account.h alias.h attach.h recvattach.h handler.h thread.h \
63 alias.h browser.h remailer.h state.h mutt_idna.h state.h buffy.h \
64 charset.h copy.h dotlock.h functions.def gen_defs recvattach.h handler.h \
65 thread.h globals.h init.h keymap.h mime.h mutt.h mutt_sasl.h pager.h \
66 protos.h sort.h autogen.sh remailer.h browser.h state.h README.SSL \
67 depcomp mutt_idna.h send_smtp.h
69 madmutt_dotlock_SOURCES = dotlock.c
70 madmutt_dotlock_LDADD = $(top_builddir)/lib-lib/liblib.a
71 madmutt_dotlock_DEPENDENCIES = $(top_builddir)/lib-lib/liblib.a
73 CLEANFILES = keymap_defs.h
75 ACLOCAL_AMFLAGS = -I m4
79 charset.gperf: charset.def
83 $(srcdir)/gen_defs $^ > keymap_defs.h
86 if test -f $(DESTDIR)$(bindir)/mutt.dotlock && test -f $(DESTDIR)$(bindir)/madmutt_dotlock ; then \
87 rm -f $(DESTDIR)$(bindir)/mutt.dotlock ; \
88 ln -sf $(DESTDIR)$(bindir)/madmutt_dotlock $(DESTDIR)$(bindir)/mutt.dotlock ; \
90 if test -f $(DESTDIR)$(bindir)/madmutt_dotlock && test x@DOTLOCK_GROUP@ != x ; then \
91 chgrp @DOTLOCK_GROUP@ $(DESTDIR)$(bindir)/madmutt_dotlock && \
92 chmod @DOTLOCK_PERMISSION@ $(DESTDIR)$(bindir)/madmutt_dotlock || \
93 { echo "Can't fix madmutt_dotlock's permissions!" >&2 ; } \
96 include tools/cpkg2c.mk
97 -include tools/cflags.mk
100 @sloccount $(wildcard *.h *.c) $(wildcard lib-*/) lib imap nntp pop | grep 'ansic[=:]'