Blob


1 <$PLAN9/src/mkhdr
3 TARG=jpg\
4 gif\
5 togif\
6 ppm\
7 toppm\
8 png\
9 topng\
10 yuv\
11 ico\
12 toico\
13 bmp\
15 IMFILES=\
16 torgbv.$O\
17 totruecolor.$O\
18 writerawimage.$O\
20 HFILES=imagefile.h\
22 SHORTLIB=draw flate bio 9
23 LDFLAGS=$LDFLAGS -L$X11/lib -lX11
25 <$PLAN9/src/mkmany
27 $O.jpg: $IMFILES readjpg.$O jpg.$O
28 $O.gif: $IMFILES readgif.$O gif.$O
29 $O.togif: writegif.$O onechan.$O togif.$O torgbv.$O multichan.$O
30 $O.ppm: $IMFILES readppm.$O ppm.$O
31 $O.toppm: writeppm.$O multichan.$O toppm.$O
32 $O.png: $IMFILES readpng.$O png.$O multichan.$O
33 $O.topng: writepng.$O topng.$O
34 $O.yuv: $IMFILES readyuv.$O yuv.$O
35 $O.bmp: $IMFILES readbmp.$O bmp.$O
37 torgbv.$O: ycbcr.h rgbv.h
39 ycbcr.h: rgbycc.c
40 9c rgbycc.c
41 9l -o o.rgbycc rgbycc.o -ldraw -l9
42 ./o.rgbycc >ycbcr.h
44 rgbv.h: rgbrgbv.c
45 9c rgbrgbv.c
46 9l -o o.rgbrgbv rgbrgbv.o -ldraw -l9
47 ./o.rgbrgbv >rgbv.h
49 nuke:V: nuke-headers
51 nuke-headers:V:
52 rm -f rgbv.h ycbcr.h
54 CLEANFILES=$CLEANFILES o.rgbycc o.rgbrgbv rgbv.h ycbcr.h