]> Pileus Git - ~andy/fetchmail/blob - Makefile.am
Fix HESIOD compile failure on FreeBSD 5-CURRENT,
[~andy/fetchmail] / Makefile.am
1 # Makefile for fetchmail
2
3 SUBDIRS=                intl m4 m4-local po
4
5 AM_CFLAGS=              @CEFLAGS@
6 AM_CPPFLAGS=            @CPFLAGS@ -I$(top_srcdir)/intl
7 AM_LDFLAGS=             @LDEFLAGS@
8 ACLOCAL_AMFLAGS=        -I m4 -I m4-local
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
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
40
41 check_PROGRAMS= rfc822 unmime netrc
42
43 rfc822_SOURCES= rfc822.c
44 rfc822_CFLAGS=  -DMAIN
45
46 unmime_SOURCES= unmime.c
47 unmime_CFLAGS=  -DSTANDALONE -DHAVE_CONFIG_H -I$(builddir)
48
49 netrc_SOURCES=  netrc.c xmalloc.c report.c
50 netrc_CFLAGS=   -DSTANDALONE -DHAVE_CONFIG_H -I$(builddir)
51
52 # For some losing Unix makes.
53 SHELL = /bin/sh
54 @SET_MAKE@
55
56 fetchmail.spec: Makefile.in specgen.sh
57         $(srcdir)/specgen.sh $(VERSION) >fetchmail.spec
58
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
62
63 # extra directories to ship
64 distdirs = rh-config contrib beos
65
66 EXTRA_DIST= $(DISTDOCS) fetchmail.spec $(distdirs)
67
68 FAQ: fetchmail-FAQ.html
69         AWK=$(AWK) $(SHELL) $(srcdir)/html2txt.sh $(srcdir)/fetchmail-FAQ.html >$@ || { rm -f $@ ; exit 1 ; }
70
71 FEATURES: fetchmail-features.html
72         AWK=$(AWK) $(SHELL) $(srcdir)/html2txt.sh $(srcdir)/fetchmail-features.html >$@ || { rm -f $@ ; exit 1 ; }
73
74 NOTES: design-notes.html
75         AWK=$(AWK) $(SHELL) $(srcdir)/html2txt.sh $(srcdir)/design-notes.html >$@ || { rm -f $@ ; exit 1 ; }
76
77 TODO: todo.html
78         AWK=$(AWK) $(SHELL) $(srcdir)/html2txt.sh $(srcdir)/todo.html >$@ || { rm -f $@ ; exit 1 ; }
79
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 ; }
85
86 dist-hook:
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 '{}' ';'
89
90 # The following sets edit modes for GNU EMACS.
91 # Local Variables:
92 # compile-command:"configure"
93 # End: