mkfile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. </$objtype/mkfile
  2. LIBOFILES=\
  3. arena.$O\
  4. arenas.$O\
  5. bloom.$O\
  6. buildbuck.$O\
  7. clump.$O\
  8. config.$O\
  9. conv.$O\
  10. dcache.$O\
  11. disksched.$O\
  12. dump.$O\
  13. graph.$O\
  14. hdisk.$O\
  15. hproc.$O\
  16. httpd.$O\
  17. icache.$O\
  18. icachewrite.$O\
  19. ifile.$O\
  20. index.$O\
  21. lump.$O\
  22. lumpcache.$O\
  23. lumpqueue.$O\
  24. part.$O\
  25. png.$O\
  26. round.$O\
  27. score.$O\
  28. sortientry.$O\
  29. stats.$O\
  30. syncarena.$O\
  31. syncindex0.$O\
  32. trace.$O\
  33. unwhack.$O\
  34. utils.$O\
  35. unittoull.$O\
  36. whack.$O\
  37. xml.$O\
  38. zblock.$O\
  39. zeropart.$O\
  40. SLIB=libvs.a$O
  41. LIB=$SLIB # /$objtype/lib/libventi.a
  42. HFILES= dat.h\
  43. fns.h\
  44. stdinc.h\
  45. /sys/include/venti.h\
  46. /sys/include/httpd.h\
  47. TARG=\
  48. venti\
  49. buildindex\
  50. checkarenas\
  51. checkindex\
  52. clumpstats\
  53. conf\
  54. findscore\
  55. fixarenas\
  56. fmtarenas\
  57. fmtbloom\
  58. fmtindex\
  59. fmtisect\
  60. mirrorarenas\
  61. printarena\
  62. printarenapart\
  63. rdarena\
  64. syncindex\
  65. verifyarena\
  66. wrarena\
  67. OFILES=
  68. BIN=/$objtype/bin/venti
  69. it:V: $O.venti
  70. CLEANFILES=$CLEANFILES $SLIB
  71. </sys/src/cmd/mkmany
  72. CFLAGS=$CFLAGS -I.
  73. $SLIB: $LIBOFILES
  74. ar rvc $SLIB $LIBOFILES
  75. # xml.c:D: mkxml dat.h
  76. # ./mkxml dat.h > xml.c
  77. acid:D: lumpcache.acid
  78. cat $prereq >$target
  79. $O.conf:D: conf.rc
  80. {
  81. echo '#!/bin/rc'
  82. echo '# THIS FILE IS AUTOMATICALLY GENERATED'
  83. echo '# FROM /sys/src/cmd/venti/conf.rc. DO NOT EDIT.'
  84. echo
  85. sed 1d conf.rc
  86. } >$target && chmod +x $target