mkfile 1.4 KB

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