mkfile (894B)
1 <$PLAN9/src/mkhdr 2 3 TARG=jpg\ 4 gif\ 5 togif\ 6 ppm\ 7 toppm\ 8 png\ 9 topng\ 10 yuv\ 11 ico\ 12 toico\ 13 bmp\ 14 15 IMFILES=\ 16 torgbv.$O\ 17 totruecolor.$O\ 18 writerawimage.$O\ 19 20 HFILES=imagefile.h\ 21 22 <$PLAN9/src/mkmany 23 24 $O.jpg: $IMFILES readjpg.$O jpg.$O 25 $O.gif: $IMFILES readgif.$O gif.$O 26 $O.togif: writegif.$O onechan.$O togif.$O torgbv.$O multichan.$O 27 $O.ppm: $IMFILES readppm.$O ppm.$O 28 $O.toppm: writeppm.$O multichan.$O toppm.$O 29 $O.png: $IMFILES readpng.$O png.$O multichan.$O 30 $O.topng: writepng.$O topng.$O 31 $O.yuv: $IMFILES readyuv.$O yuv.$O 32 $O.bmp: $IMFILES readbmp.$O bmp.$O 33 34 torgbv.$O: ycbcr.h rgbv.h 35 36 ycbcr.h: rgbycc.c 37 9c rgbycc.c 38 9l -o o.rgbycc rgbycc.o -ldraw -l9 39 ./o.rgbycc >ycbcr.h 40 41 rgbv.h: rgbrgbv.c 42 9c rgbrgbv.c 43 9l -o o.rgbrgbv rgbrgbv.o -ldraw -l9 44 ./o.rgbrgbv >rgbv.h 45 46 nuke:V: nuke-headers 47 48 nuke-headers:V: 49 rm -f rgbv.h ycbcr.h 50 51 CLEANFILES=$CLEANFILES o.rgbycc o.rgbrgbv rgbv.h ycbcr.h