summaryrefslogtreecommitdiffstats
path: root/maildrop/Makefile.am
blob: 154cebedb3110afa044f0586a4d5b5a639413d20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
#
# Copyright 1998 - 2009 Double Precision, Inc.  See COPYING for
# distribution information.


AM_CPPFLAGS := @AUTHINCLUDE@ `pcre2-config --cflags`

DISTCLEANFILES=uidgid testmailbot.*
CLEANFILES=maildrop.html maildrop.1 maildropfilter.7 maildropfilter.html

DBLIB=@dblibrary@

BUILT_SOURCES=	maildrop.html.in maildrop.1.in \
		maildropfilter.html.in maildropfilter.7.in \
		maildropgdbm.html maildropgdbm.7 \
		maildropex.html maildropex.7 \
		makedat.html makedat.1 \
		mailbot.html mailbot.1 \
		reformail.html reformail.1

noinst_LTLIBRARIES = libmdcommon.la


libmdcommon_la_SOURCES=alarm.C alarm.h alarmsleep.C alarmsleep.h alarmtimer.C \
	alarmtimer.h buffer.C buffer.h dotlock.C dotlock.h \
	dotlockrefresh.C dotlockrefresh.h exittrap.C exittrap.h funcs.C \
	funcs.h maildrop.C maildrop.h mio.C mio.h setgroupid.c setgroupid.h \
	tempfile.C tempfile.h
libmdcommon_la_LIBADD=../maildir/libmaildir.la \
	../rfc2045/librfc2045.la \
	../rfc822/librfc822.la \
	../numlib/libnumlib.la ../liblock/liblock.la \
	$(DBLIB) -lcourier-unicode
libmdcommon_la_LDFLAGS=-static


maildrop_SOURCES=deliver.C deliverdotlock.C deliverdotlock.h \
	dotlockmaildrop.C filelock.C filelock.h filter.C formatmbox.C \
	formatmbox.h globaltimer.C globaltimer.h lexer.C lexer.h log.C log.h \
	maildir.C maildir.h main.C message.C message.h messageinfo.C \
	messageinfo.h mytime.h mywait.h pipefds.C pipefds.h \
	recipe.C recipe.h recipenode.C recipenode.h recipeparse.C reeval.C \
	reeval.h regexpnode.h rematch.C rematch.h rematchmsg.C rematchmsg.h \
	rematchstr.C rematchstr.h search.C search.h token.C \
	token.h varlist.C varlist.h dovecotauth.c dovecotauth.h

maildrop_DEPENDENCIES = libmdcommon.la

maildrop_LDADD = libmdcommon.la @AUTHLDADD@
maildrop_LDFLAGS= `pcre2-config --libs8`

reformail_SOURCES=reformail.C
reformail_LDADD = libmdcommon.la
reformail_DEPENDENCIES = $(reformail_LDADD)

noinst_PROGRAMS=maildrop reformail mailbot

mailbot_SOURCES=mailbot.c
mailbot_DEPENDENCIES=../rfc2045/librfc2045.la ../maildir/libmaildir.la \
	../rfc822/librfc822.la ../liblock/liblock.la \
	../numlib/libnumlib.la $(DBLIB)
mailbot_LDADD=../rfc2045/librfc2045.la ../maildir/libmaildir.la \
	../rfc822/librfc822.la ../liblock/liblock.la \
	../numlib/libnumlib.la $(DBLIB) -lcourier-unicode
mailbot_LDFLAGS = -static

EXTRA_DIST = maildroptips.html $(BUILT_SOURCES)\
	maildrop.lsm testsuite.txt.idn testsuite2

check-am:
	@chmod +x testsuite
	./testsuite | cmp -s - $(srcdir)/testsuite.txt.idn
	@SHELL@ $(srcdir)/testsuite2

noinst_DATA=maildrop.html maildrop.1 maildropfilter.html maildropfilter.7 \
	maildropgdbm.html maildropgdbm.7

if HAVE_SGML
maildrop.html.in: maildrop.sgml ../docbook/sgml2html
	../docbook/sgml2html maildrop.sgml maildrop.html.in "--stringparam man.base.url.for.relative.links http://www.courier-mta.org/maildrop/"

maildrop.1.in: maildrop.sgml ../docbook/sgml2man
	../docbook/sgml2man maildrop.sgml maildrop.1.in "--stringparam man.base.url.for.relative.links http://www.courier-mta.org/maildrop/"
	mv maildrop.1 maildrop.1.in

maildropfilter.html.in: maildropfilter.sgml ../docbook/sgml2html
	../docbook/sgml2html maildropfilter.sgml maildropfilter.html.in "--stringparam man.base.url.for.relative.links http://www.courier-mta.org/maildrop/"

maildropfilter.7.in: maildropfilter.sgml ../docbook/sgml2html
	../docbook/sgml2man maildropfilter.sgml maildropfilter.7.in "--stringparam man.base.url.for.relative.links http://www.courier-mta.org/maildrop/"
	mv maildropfilter.7 maildropfilter.7.in

maildropgdbm.html: maildropgdbm.sgml ../docbook/sgml2html
	../docbook/sgml2html maildropgdbm.sgml maildropgdbm.html "--stringparam man.base.url.for.relative.links http://www.courier-mta.org/maildrop/"

maildropgdbm.7: maildropgdbm.sgml ../docbook/sgml2html
	../docbook/sgml2man maildropgdbm.sgml maildropgdbm.7 "--stringparam man.base.url.for.relative.links http://www.courier-mta.org/maildrop/"

maildropex.html: maildropex.sgml ../docbook/sgml2html
	../docbook/sgml2html maildropex.sgml maildropex.html "--stringparam man.base.url.for.relative.links http://www.courier-mta.org/maildrop/"

maildropex.7: maildropex.sgml ../docbook/sgml2html
	../docbook/sgml2man maildropex.sgml maildropex.7 "--stringparam man.base.url.for.relative.links http://www.courier-mta.org/maildrop/"

mailbot.html: mailbot.sgml ../docbook/sgml2html
	../docbook/sgml2html mailbot.sgml mailbot.html "--stringparam man.base.url.for.relative.links http://www.courier-mta.org/maildrop/"

mailbot.1: mailbot.sgml ../docbook/sgml2html
	../docbook/sgml2man mailbot.sgml mailbot.1 "--stringparam man.base.url.for.relative.links http://www.courier-mta.org/maildrop/"

reformail.html: reformail.sgml ../docbook/sgml2html
	../docbook/sgml2html reformail.sgml reformail.html "--stringparam man.base.url.for.relative.links http://www.courier-mta.org/maildrop/"

reformail.1: reformail.sgml ../docbook/sgml2html
	../docbook/sgml2man reformail.sgml reformail.1 "--stringparam man.base.url.for.relative.links http://www.courier-mta.org/maildrop/"

makedat.html: makedat.sgml ../docbook/sgml2html
	../docbook/sgml2html makedat.sgml makedat.html "--stringparam man.base.url.for.relative.links http://www.courier-mta.org/maildrop/"

makedat.1: makedat.sgml ../docbook/sgml2html
	../docbook/sgml2man makedat.sgml makedat.1 "--stringparam man.base.url.for.relative.links http://www.courier-mta.org/maildrop/"

endif

maildrop.html: maildrop.html.in
	./config.status --file=$@

maildrop.1: maildrop.1.in
	./config.status --file=$@

maildropfilter.html: maildropfilter.html.in
	./config.status --file=$@

maildropfilter.7: maildropfilter.7.in
	./config.status --file=$@