]> Pileus Git - ~andy/fetchmail/blob - Makefile.am
Provide iana_charset, a normalized IANA charmap name.
[~andy/fetchmail] / Makefile.am
1 # Makefile for fetchmail
2
3 SUBDIRS=                intl m4 po
4
5 AM_CFLAGS=              @CEFLAGS@
6 AM_CPPFLAGS=            @CPFLAGS@ -I$(top_srcdir)/intl -I$(top_builddir)/intl
7 AM_LDFLAGS=             @LDEFLAGS@
8 ACLOCAL_AMFLAGS=        -I m4 -I .
9 AM_YFLAGS=              -d
10 BUILT_SOURCES=          rcfile_y.h
11
12 bin_PROGRAMS=           fetchmail
13 dist_bin_SCRIPTS=       fetchmailconf
14 dist_noinst_SCRIPTS=    html2txt.sh specgen.sh
15 dist_man1_MANS=         fetchmail.man
16
17 # for gettext (used by fetchmail.c, NOT by GNU gettext)
18 localedir=              $(datadir)/locale
19 DEFS=                   @DEFS@ -DLOCALEDIR=\"$(localedir)\"
20
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)
27
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 \
31                 socket.h tunable.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
40
41 check_PROGRAMS= rfc822 unmime netrc rfc2047e
42
43 rfc2047e_CFLAGS=        -DTEST
44
45 rfc822_CFLAGS=  -DMAIN
46
47 unmime_SOURCES= unmime.c
48 unmime_CFLAGS=  -DSTANDALONE -DHAVE_CONFIG_H -I$(builddir)
49
50 netrc_SOURCES=  netrc.c xmalloc.c report.c
51 netrc_CFLAGS=   -DSTANDALONE -DHAVE_CONFIG_H -I$(builddir)
52
53 # For some losing Unix makes.
54 SHELL = /bin/sh
55 @SET_MAKE@
56
57 fetchmail.spec: Makefile.in specgen.sh
58         $(srcdir)/specgen.sh $(VERSION) >fetchmail.spec
59
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
63
64 # extra directories to ship
65 distdirs = rh-config contrib beos
66
67 EXTRA_DIST= $(DISTDOCS) fetchmail.spec $(distdirs) ucs/README.svn
68
69 FAQ: fetchmail-FAQ.html
70         AWK=$(AWK) $(SHELL) $(srcdir)/html2txt.sh $(srcdir)/fetchmail-FAQ.html >$@ || { rm -f $@ ; exit 1 ; }
71
72 FEATURES: fetchmail-features.html
73         AWK=$(AWK) $(SHELL) $(srcdir)/html2txt.sh $(srcdir)/fetchmail-features.html >$@ || { rm -f $@ ; exit 1 ; }
74
75 NOTES: design-notes.html
76         AWK=$(AWK) $(SHELL) $(srcdir)/html2txt.sh $(srcdir)/design-notes.html >$@ || { rm -f $@ ; exit 1 ; }
77
78 TODO: todo.html
79         AWK=$(AWK) $(SHELL) $(srcdir)/html2txt.sh $(srcdir)/todo.html >$@ || { rm -f $@ ; exit 1 ; }
80
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 ; }
86
87 dist-hook:
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 '{}' ';'
90
91 # The following sets edit modes for GNU EMACS.
92 # Local Variables:
93 # compile-command:"configure"
94 # End: