1 # Makefile for fetchmail
6 AM_CPPFLAGS= @CPFLAGS@ -I$(top_srcdir)/intl
10 BUILT_SOURCES= rcfile_y.h
12 bin_PROGRAMS= fetchmail
13 dist_bin_SCRIPTS= fetchmailconf
14 dist_noinst_SCRIPTS= html2txt.sh specgen.sh
15 dist_man1_MANS= fetchmail.man
17 # for gettext (used by fetchmail.c, NOT by GNU gettext)
18 localedir= $(datadir)/locale
19 DEFS= @DEFS@ -DLOCALEDIR=\"$(localedir)\"
21 noinst_LIBRARIES= libfm.a
22 libfm_a_SOURCES= xmalloc.c base64.c rfc822.c report.c
23 libfm_a_LIBADD= $(EXTRAOBJ)
24 libfm_a_DEPENDENCIES= $(EXTRAOBJ)
25 LDADD = libfm.a @LIBINTL@ $(LIBOBJS)
26 DEPENDENCIES= libfm.a $(LIBOBJS)
28 fetchmail_SOURCES= fetchmail.h getopt.h \
29 i18n.h kerberos.h md5.h mx.h netrc.h ntlm.h \
30 smbbyteorder.h smbdes.h smbmd4.h smbencrypt.h smtp.h \
32 socket.c getpass.c pop2.c pop3.c imap.c etrn.c \
33 odmr.c fetchmail.c env.c idle.c options.c daemon.c \
34 driver.c transact.c sink.c smtp.c \
35 uid.c mxget.c md5ify.c cram.c kerberos.c gssapi.c \
36 opie.c rpa.c interface.c netrc.c \
37 unmime.c conf.c checkalias.c smbdes.c smbencrypt.c \
38 smbmd4.c smbutil.c ipv6-connect.c lock.c \
41 check_PROGRAMS= rfc822 unmime netrc
43 rfc822_SOURCES= rfc822.c
46 unmime_SOURCES= unmime.c
47 unmime_CFLAGS= -DSTANDALONE -DHAVE_CONFIG_H -I$(builddir)
49 netrc_SOURCES= netrc.c xmalloc.c report.c
50 netrc_CFLAGS= -DSTANDALONE -DHAVE_CONFIG_H -I$(builddir)
52 # For some losing Unix makes.
56 fetchmail.spec: Makefile.in specgen.sh
57 $(srcdir)/specgen.sh $(VERSION) >fetchmail.spec
59 DISTDOCS= FAQ FEATURES NOTES fetchmail-man.html fetchmail-FAQ.html \
60 design-notes.html todo.html fetchmail-features.html \
61 README.SSL README.NTLM
63 # extra directories to ship
64 distdirs = rh-config contrib beos
66 EXTRA_DIST= $(DISTDOCS) fetchmail.spec $(distdirs)
68 FAQ: fetchmail-FAQ.html
69 AWK=$(AWK) $(SHELL) $(srcdir)/html2txt.sh $(srcdir)/fetchmail-FAQ.html >$@ || { rm -f $@ ; exit 1 ; }
71 FEATURES: fetchmail-features.html
72 AWK=$(AWK) $(SHELL) $(srcdir)/html2txt.sh $(srcdir)/fetchmail-features.html >$@ || { rm -f $@ ; exit 1 ; }
74 NOTES: design-notes.html
75 AWK=$(AWK) $(SHELL) $(srcdir)/html2txt.sh $(srcdir)/design-notes.html >$@ || { rm -f $@ ; exit 1 ; }
78 AWK=$(AWK) $(SHELL) $(srcdir)/html2txt.sh $(srcdir)/todo.html >$@ || { rm -f $@ ; exit 1 ; }
80 # man2html no longer chokes and dies on this man page,
81 # but manServer.pl does a much better job.
82 fetchmail-man.html: fetchmail.man
83 $(srcdir)/dist-tools/manServer.pl fetchmail.man >$@ \
84 || { rm -f $@ ; exit 1 ; }
87 cd $(distdir) && find $(distdirs) intl po -name .svn -type d -prune -exec rm -rf '{}' ';'
88 cd $(distdir) && find $(distdirs) intl po -name '*~' -exec rm -f '{}' ';'
90 # The following sets edit modes for GNU EMACS.
92 # compile-command:"configure"