1 # Makefile for fetchmail
6 AM_CPPFLAGS= @CPFLAGS@ -I$(top_srcdir)/intl -I$(top_builddir)/intl
8 ACLOCAL_AMFLAGS= -I m4 -I .
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 rfc2047e.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 \
39 rcfile_l.l rcfile_y.y ucs/norm_charmap.c
41 check_PROGRAMS= rfc822 unmime netrc rfc2047e
43 rfc2047e_CFLAGS= -DTEST
47 unmime_SOURCES= unmime.c
48 unmime_CFLAGS= -DSTANDALONE -DHAVE_CONFIG_H -I$(builddir)
50 netrc_SOURCES= netrc.c xmalloc.c report.c
51 netrc_CFLAGS= -DSTANDALONE -DHAVE_CONFIG_H -I$(builddir)
53 # For some losing Unix makes.
57 fetchmail.spec: Makefile.in specgen.sh
58 $(srcdir)/specgen.sh $(VERSION) >fetchmail.spec
60 DISTDOCS= FAQ FEATURES NOTES fetchmail-man.html fetchmail-FAQ.html \
61 design-notes.html todo.html fetchmail-features.html \
62 README.SSL README.NTLM
64 # extra directories to ship
65 distdirs = rh-config contrib beos
67 EXTRA_DIST= $(DISTDOCS) fetchmail.spec $(distdirs) ucs/README.svn
69 FAQ: fetchmail-FAQ.html
70 AWK=$(AWK) $(SHELL) $(srcdir)/html2txt.sh $(srcdir)/fetchmail-FAQ.html >$@ || { rm -f $@ ; exit 1 ; }
72 FEATURES: fetchmail-features.html
73 AWK=$(AWK) $(SHELL) $(srcdir)/html2txt.sh $(srcdir)/fetchmail-features.html >$@ || { rm -f $@ ; exit 1 ; }
75 NOTES: design-notes.html
76 AWK=$(AWK) $(SHELL) $(srcdir)/html2txt.sh $(srcdir)/design-notes.html >$@ || { rm -f $@ ; exit 1 ; }
79 AWK=$(AWK) $(SHELL) $(srcdir)/html2txt.sh $(srcdir)/todo.html >$@ || { rm -f $@ ; exit 1 ; }
81 # man2html no longer chokes and dies on this man page,
82 # but manServer.pl does a much better job.
83 fetchmail-man.html: fetchmail.man
84 env - PATH=$$PATH $(srcdir)/dist-tools/manServer.pl fetchmail.man >$@ \
85 || { rm -f $@ ; exit 1 ; }
88 cd $(distdir) && find $(distdirs) intl po -name .svn -type d -prune -exec rm -rf '{}' ';'
89 cd $(distdir) && find $(distdirs) intl po -name '*~' -exec rm -f '{}' ';'
91 # The following sets edit modes for GNU EMACS.
93 # compile-command:"configure"