mkfile (832B)
1 <$PLAN9/src/mkhdr 2 3 TARG=\ 4 smtp\ 5 smtpd\ 6 7 OFILES= 8 9 LIB=../common/libcommon.a 10 11 HFILES=../common/common.h\ 12 ../common/sys.h\ 13 smtpd.h\ 14 smtp.h\ 15 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}\ 28 29 <$PLAN9/src/mkmany 30 CFLAGS=$CFLAGS -I../common -D'SPOOL="'$PLAN9'/mail"' 31 32 $O.smtpd: smtpd.tab.$O rmtdns.$O spam.$O rfc822.tab.$O greylist.$O 33 $O.smtp: rfc822.tab.$O mxdial.$O 34 35 smtpd.$O: smtpd.h 36 37 smtp.$O to.$O: smtp.h 38 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 43 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 47 48 clean:V: 49 rm -f *.[$OS] [$OS].$TARG smtpd.tab.c rfc822.tab.c y.tab.? y.debug $TARG 50 51 ../common/libcommon.a: 52 cd ../common; mk 53