aboutsummaryrefslogtreecommitdiff
path: root/src/builtin/Makefile.am
blob: e9ee8e20ebc2d03a0bea62424d64517c7e754931 (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
# This file is part of Mailfromd.
# Copyright (C) 2005-2018 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\
 burst.bi\
 callout.bi\
 ctype.bi\
 curhdr.bi\
 db.bi\
 debug.bi\
 dns.bi\
 dspam.bi\
 email.bi\
 from.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\
 prereq.bi\
 progress.bi\
 rate.bi\
 rcpt.bi\
 sa.bi\
 sieve.bi\
 spf.bi\
 sprintf.bi\
 string.bi\
 syslog.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

AM_CPPFLAGS = \
 $(MAILUTILS_INCLUDES)\
 $(MU_COMMON_INCLUDES)\
 -I$(top_srcdir)/lib\
 $(MILTER_INCLUDES)\
 -I$(top_srcdir)/src\
 -I$(top_srcdir)\
 $(DSPAM_CFLAGS)

builtin.h: Makefile.am builtin.def init.m4

$(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 $(top_srcdir)/src/builtin/snarf.m4 $< > $@ 

.def.h:
	$(AM_V_GEN) $(M4) --prefix $(top_srcdir)/src/builtin/init.m4 $(BI_FILES) $< > $@

Return to:

Send suggestions and report system problems to the System administrator.