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