mkfile 801 B

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