mkfile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. </$objtype/mkfile
  2. HFILES=\
  3. /sys/include/httpd.h\
  4. httpsrv.h\
  5. TARG=\
  6. httpd\
  7. imagemap\
  8. man2html\
  9. save\
  10. netlib_find\
  11. netlib_history\
  12. webls\
  13. wikipost\
  14. XTARG=\
  15. httpd\
  16. imagemap\
  17. netlib_find\
  18. netlib_history\
  19. man2html\
  20. save\
  21. wikipost\
  22. LIB=libhttps.a.$O
  23. LIBS=libhttps.a.$O
  24. LIBSOFILES=\
  25. anonymous.$O\
  26. content.$O\
  27. emem.$O\
  28. hints.$O\
  29. init.$O\
  30. log.$O\
  31. redirect.$O\
  32. sendfd.$O\
  33. authorize.$O\
  34. BIN=/$objtype/bin/ip/httpd
  35. UPDATE=\
  36. $HFILES\
  37. ${LIBSOFILES:%.$O=%.c}\
  38. ${XTARG:%=%.c}\
  39. </sys/src/cmd/mkmany
  40. trial: $O.netlib_history
  41. # should first mount -b /srv/histnetlib /usr/web/historic
  42. echo '
  43. ' | $O.netlib_history GET HTTP/1.0 xxx 'file=fp%2Fdtoa.c.gz'
  44. trial2: $O.netlib_find
  45. echo "\n" | $O.netlib_find GET HTTP/1.0 xxx 'db=1&pat=Hearing' > /tmp/search
  46. sed 17q /tmp/search
  47. $LIBS(%.$O):N: %.$O
  48. $LIBS: ${LIBSOFILES:%=$LIBS(%)}
  49. names = `{echo $newprereq |sed 's/ /\n/g' |sed -n 's/'$LIBS'\(([^)]+)\)/\1/gp'}
  50. ar vu $LIBS $names
  51. rm $names
  52. re:N: v.re
  53. v.re redirect.urls
  54. none:VQ:
  55. echo usage: mk all, install, installall, '$O'.cmd, cmd.install, or cmd.installall
  56. echo usage: mk safeinstall, safeinstallall, cmd.safeinstallall, or cmd.safeinstallall
  57. $O.9down: 9down.$O whois.$O classify.$O $LIB
  58. $LD -o $target $prereq
  59. $O.test9down: 9down4e.$O whois.$O classify.$O $LIB
  60. $LD -o $target $prereq
  61. $O.testclassify: testclassify.$O whois.$O classify.$O $LIB
  62. $LD -o $target $prereq