blob: 9d5bf940d64b61d69b4734810ad78cc3a1e061e2 (
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
|
<$PLAN9/src/mkhdr
TARG=\
smtp\
smtpd\
OFILES=
LIB=../common/libcommon.a
HFILES=../common/common.h\
../common/sys.h\
smtpd.h\
smtp.h\
BIN=$PLAN9/bin/upas
UPDATE=\
greylist.c\
mkfile\
mxdial.c\
rfc822.y\
rmtdns.c\
smtpd.y\
spam.c\
$HFILES\
${OFILES:%.$O=%.c}\
${TARG:%=%.c}\
<$PLAN9/src/mkmany
CFLAGS=$CFLAGS -I../common -D'SPOOL="'$PLAN9'/mail"'
$O.smtpd: smtpd.tab.$O rmtdns.$O spam.$O rfc822.tab.$O greylist.$O
$O.smtp: rfc822.tab.$O mxdial.$O
smtpd.$O: smtpd.h
smtp.$O to.$O: smtp.h
smtpd.tab.c: smtpd.y smtpd.h
9 yacc -o xxx smtpd.y
sed 's/yy/zz/g' < xxx > $target
rm xxx
rfc822.tab.c rfc822.tab.h: rfc822.y smtp.h
9 yacc -d -o $target rfc822.y
mv y.tab.h rfc822.tab.h
clean:V:
rm -f *.[$OS] [$OS].$TARG smtpd.tab.c rfc822.tab.c y.tab.? y.debug $TARG
../common/libcommon.a:
cd ../common; mk
|