blob: 297b389a492f86dabc5b71fb7f9a1774644cf177 (
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
|
# This file is part of Mailfromd.
# Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Sergey Poznyakoff
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
noinst_LIBRARIES = libbuiltin.a
noinst_HEADERS = builtin.h msg.h
BI_FILES=\
body.bi\
callout.bi\
ctype.bi\
curhdr.bi\
db.bi\
dns.bi\
email.bi\
geoip.bi\
gethostname.bi\
getopt.bi\
getpw.bi\
gettext.bi\
header.bi\
io.bi\
ipaddr.bi\
macro.bi\
mail.bi\
mbox.bi\
mmq.bi\
msg.bi\
mudebug.bi\
progress.bi\
rate.bi\
rcpt.bi\
sa.bi\
sieve.bi\
spf.bi\
sprintf.bi\
string.bi\
system.bi\
other.bi\
vars.bi\
qrnt.bi
libbuiltin_a_SOURCES = builtin.c $(BI_FILES:.bi=.c)
EXTRA_DIST = \
$(BI_FILES)\
builtin.def\
builtin.h\
init.m4\
snarf.m4
BUILT_SOURCES=\
$(BI_FILES:.bi=.c)\
builtin.h
INCLUDES = \
$(MAILUTILS_INCLUDES)\
$(MU_COMMON_INCLUDES)\
-I$(top_srcdir)/lib\
-I$(top_srcdir)/gnu\
-I../gnu\
$(MILTER_INCLUDES)\
-I$(top_srcdir)/src
builtin.h: Makefile.am
$(BI_FILES:.bi=.c): snarf.m4 init.m4
SUFFIXES = .bi .c .def .h .mfi .mf
M4=m4
.bi.c:
$(AM_V_GEN)$(M4) --prefix -s -DSOURCE="$<" $(top_srcdir)/src/builtin/snarf.m4 $< > $@-t && \
sed '1{/#line/d;}' $@-t > $@ && \
rm $@-t
.def.h:
$(AM_V_GEN) $(M4) --prefix $(top_srcdir)/src/builtin/init.m4 $(BI_FILES) $< > $@
|