mkfile 981 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. </$objtype/mkfile
  2. TARG=jpg\
  3. gif\
  4. togif\
  5. ppm\
  6. toppm\
  7. png\
  8. topng\
  9. IMFILES=\
  10. torgbv.$O\
  11. totruecolor.$O\
  12. writerawimage.$O\
  13. HFILES=imagefile.h\
  14. LIB=
  15. BIN=/$objtype/bin
  16. UPDATE=\
  17. mkfile\
  18. $HFILES\
  19. ${IMFILES:%.$O=%.c}\
  20. readjpg.c\
  21. readgif.c\
  22. writegif.c\
  23. onechan.c\
  24. readppm.c\
  25. multichan.c\
  26. readpng.c\
  27. writepng.c\
  28. rgbycc.c\
  29. rgbrgbv.c\
  30. ${TARG:%=%.c}\
  31. ${TARG:%=/386/bin/%}\
  32. </sys/src/cmd/mkmany
  33. c=`{sed -n 's/^O=//p' /$cputype/mkfile}
  34. $O.jpg: $IMFILES readjpg.$O jpg.$O
  35. $O.gif: $IMFILES readgif.$O gif.$O
  36. $O.togif: writegif.$O onechan.$O togif.$O torgbv.$O
  37. $O.ppm: $IMFILES readppm.$O ppm.$O
  38. $O.toppm: writeppm.$O multichan.$O toppm.$O
  39. $O.png: $IMFILES readpng.$O png.$O
  40. $O.topng: writepng.$O topng.$O
  41. torgbv.$O: ycbcr.h rgbv.h
  42. ycbcr.h: rgbycc.c
  43. $c^c rgbycc.c
  44. $c^l -o $c.rgbycc rgbycc.$c
  45. $c.rgbycc > ycbcr.h
  46. rgbv.h: rgbrgbv.c
  47. $c^c rgbrgbv.c
  48. $c^l -o $c.rgbrgbv rgbrgbv.$c
  49. $c.rgbrgbv > rgbv.h
  50. nuke:V: nuke-headers
  51. nuke-headers:V:
  52. rm -f rgbv.h ycbcr.h