Blob
1 <$PLAN9/src/mkhdr3 TARG=\4 smtp\5 smtpd\7 OFILES=9 LIB=../common/libcommon.a11 HFILES=../common/common.h\12 ../common/sys.h\13 smtpd.h\14 smtp.h\16 BIN=$PLAN9/bin/upas17 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/mkmany30 CFLAGS=$CFLAGS -I../common -D'SPOOL="'$PLAN9'/mail"'32 $O.smtpd: smtpd.tab.$O rmtdns.$O spam.$O rfc822.tab.$O greylist.$O33 $O.smtp: rfc822.tab.$O mxdial.$O35 smtpd.$O: smtpd.h37 smtp.$O to.$O: smtp.h39 smtpd.tab.c: smtpd.y smtpd.h40 9 yacc -o xxx smtpd.y41 sed 's/yy/zz/g' < xxx > $target42 rm xxx44 rfc822.tab.c rfc822.tab.h: rfc822.y smtp.h45 9 yacc -d -o $target rfc822.y46 mv y.tab.h rfc822.tab.h48 clean:V:49 rm -f *.[$OS] [$OS].$TARG smtpd.tab.c rfc822.tab.c y.tab.? y.debug $TARG51 ../common/libcommon.a:52 cd ../common; mk