summaryrefslogtreecommitdiff
path: root/sys/src/cmd/upas/smtp/mkfile
blob: ab8bc18108498cdafc235382b4b5027fcd5679ef (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
</$objtype/mkfile

TARG=\
	smtpd\
	smtp\

LIB=../common/libcommon.a$O
OFILES=
HFILES=\
	../common/common.h\
	../common/sys.h\
	smtpd.h\
	smtp.h\
	rfc822.tab.h\

TEST=parsetest

CLEANFILES=rfc822.tab.h rfc822.tab.c smtpd.tab.c

</sys/src/cmd/mkmany
<../mkupas
CFLAGS=$CFLAGS -I../common

$O.smtpd:\
	smtpd.tab.$O\
	spam.$O\
	rfc822.tab.$O\
	greylist.$O\

$O.smtp: rfc822.tab.$O mxdial.$O

smtpd.tab.c: smtpd.y
	yacc -o xxx smtpd.y
	sed 's/yy/zz/g' < xxx > $target
	rm xxx

rfc822.tab.c rfc822.tab.h:D: rfc822.y
	yacc -d -s rfc822 rfc822.y

$O.parsetest: rfc822.tab.$O

parsetest.$O: rfc822.tab.$O