1# $Id$
2
3bin_PROGRAMS = fdm
4CLEANFILES = parse.c parse.h
5BUILT_SOURCES = parse.c parse.h
6
7EXTRA_DIST = \
8	CHANGES README MANUAL \
9	examples compat/*.[ch] fdm-sanitize \
10	array.h \
11	deliver.h \
12	fdm.h \
13	fetch.h \
14	io.h \
15	match.h
16dist-hook:
17	make clean
18
19CPPFLAGS += \
20	-DSYSCONFFILE="\"$(sysconfdir)/fdm.conf\"" \
21	-DSYSLOCKFILE="\"$(localstatedir)/run/fdm.lock\""
22CFLAGS += -D_GNU_SOURCE -std=gnu99 -O2
23if IS_DEBUG
24CFLAGS += -g
25CFLAGS += -Wno-long-long -Wall -W -Wnested-externs -Wformat=2
26CFLAGS += -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations
27CFLAGS += -Wwrite-strings -Wshadow -Wpointer-arith -Wsign-compare
28CFLAGS += -Wundef -Wbad-function-cast -Winline -Wcast-align
29CFLAGS += -Wdeclaration-after-statement -Wno-pointer-sign
30CPPFLAGS += -DDEBUG
31endif
32YFLAGS += -d
33
34dist_man1_MANS = fdm.1
35dist_man5_MANS = fdm.conf.5
36
37dist_fdm_SOURCES = \
38	attach.c \
39	buffer.c \
40	cache-op.c \
41	child-deliver.c \
42	child-fetch.c \
43	child.c \
44	cleanup.c \
45	command.c \
46	connect.c \
47	db-tdb.c \
48	deliver-add-header.c \
49	deliver-add-to-cache.c \
50	deliver-drop.c \
51	deliver-imap.c \
52	deliver-keep.c \
53	deliver-maildir.c \
54	deliver-mbox.c \
55	deliver-pipe.c \
56	deliver-remove-from-cache.c \
57	deliver-remove-header.c \
58	deliver-rewrite.c \
59	deliver-smtp.c \
60	deliver-stdout.c \
61	deliver-tag.c \
62	deliver-write.c \
63	fdm.c \
64	fetch-imap.c \
65	fetch-imappipe.c \
66	fetch-maildir.c \
67	fetch-mbox.c \
68	fetch-nntp.c \
69	fetch-pop3.c \
70	fetch-pop3pipe.c \
71	fetch-stdin.c \
72	fetch.h \
73	file.c \
74	imap-common.c \
75	io.c \
76	io.h \
77	log.c \
78	lookup-passwd.c \
79	lookup.c \
80	mail-state.c \
81	mail-time.c \
82	mail.c \
83	match-account.c \
84	match-age.c \
85	match-all.c \
86	match-attachment.c \
87	match-command.c \
88	match-in-cache.c \
89	match-matched.c \
90	match-regexp.c \
91	match-size.c \
92	match-string.c \
93	match-tagged.c \
94	match-unmatched.c \
95	match.h \
96	netrc.c \
97	parent-deliver.c \
98	parent-fetch.c \
99	parse-fn.c \
100	pcre.c \
101	pop3-common.c \
102	privsep.c \
103	re.c \
104	replace.c \
105	shm-mmap.c \
106	strb.c \
107	timer.c \
108	xmalloc.c \
109	\
110	parse.y \
111	lex.c
112
113nodist_fdm_SOURCES =
114if NO_B64_NTOP
115nodist_fdm_SOURCES += compat/base64.c
116endif
117if NO_STRLCAT
118nodist_fdm_SOURCES += compat/strlcat.c
119endif
120if NO_STRLCPY
121nodist_fdm_SOURCES += compat/strlcpy.c
122endif
123if NO_STRTONUM
124nodist_fdm_SOURCES += compat/strtonum.c
125endif
126if NO_B64_NTOP
127nodist_fdm_SOURCES += compat/base64.c
128endif
129lex.c: parse.h
130