Blob


1 <$PLAN9/src/mkhdr
3 TARG=\
4 smtp\
5 smtpd\
7 OFILES=
9 LIB=../common/libcommon.a
11 HFILES=../common/common.h\
12 ../common/sys.h\
13 smtpd.h\
14 smtp.h\
16 BIN=$PLAN9/bin/upas
17 UPDATE=\
18 greylist.c\
19 mkfile\
20 mxdial.c\
21 rfc822.y\
22 rmtdns.c\
23 smtpd.y\
24 spam.c\
25 $HFILES\
26 ${OFILES:%.$O=%.c}\
27 ${TARG:%=%.c}\
29 <$PLAN9/src/mkmany
30 CFLAGS=$CFLAGS -I../common -D'SPOOL="'$PLAN9'/mail"'
32 $O.smtpd: smtpd.tab.$O rmtdns.$O spam.$O rfc822.tab.$O greylist.$O
33 $O.smtp: rfc822.tab.$O mxdial.$O
35 smtpd.$O: smtpd.h
37 smtp.$O to.$O: smtp.h
39 smtpd.tab.c: smtpd.y smtpd.h
40 9 yacc -o xxx smtpd.y
41 sed 's/yy/zz/g' < xxx > $target
42 rm xxx
44 rfc822.tab.c rfc822.tab.h: rfc822.y smtp.h
45 9 yacc -d -o $target rfc822.y
46 mv y.tab.h rfc822.tab.h
48 clean:V:
49 rm -f *.[$OS] [$OS].$TARG smtpd.tab.c rfc822.tab.c y.tab.? y.debug $TARG
51 ../common/libcommon.a:
52 cd ../common; mk