]> git.lizzy.rs Git - plan9front.git/blob - sys/src/cmd/jpg/mkfile
disk/format: implement long name support
[plan9front.git] / sys / src / cmd / jpg / mkfile
1 </$objtype/mkfile
2
3 TARG=\
4         jpg\
5         tojpg\
6         gif\
7         togif\
8         ppm\
9         toppm\
10         png\
11         topng\
12         tif\
13         totif\
14         yuv\
15         ico\
16         toico\
17         bmp\
18         tga\
19         v210\
20
21 IMFILES=\
22         torgbv.$O\
23         totruecolor.$O\
24         writerawimage.$O\
25
26 HFILES=imagefile.h\
27
28 LIB=
29
30 BIN=/$objtype/bin
31 UPDATE=\
32         mkfile\
33         $HFILES\
34         ${IMFILES:%.$O=%.c}\
35         readjpg.c\
36         readgif.c\
37         writegif.c\
38         onechan.c\
39         readppm.c\
40         multichan.c\
41         readpng.c\
42         writepng.c\
43         rgbycc.c\
44         rgbrgbv.c\
45         readtga.c\
46         ${TARG:%=%.c}\
47
48 </sys/src/cmd/mkmany
49 c=`{sed -n 's/^O=//p' /$cputype/mkfile}
50
51 $O.tga:         $IMFILES readtga.$O tga.$O
52 $O.jpg:         $IMFILES readjpg.$O jpg.$O
53 $O.tojpg:       writejpg.$O multichan.$O tojpg.$O
54 $O.gif:         $IMFILES readgif.$O gif.$O
55 $O.togif:       writegif.$O onechan.$O togif.$O torgbv.$O
56 $O.ppm:         $IMFILES readppm.$O ppm.$O
57 $O.toppm:       writeppm.$O multichan.$O toppm.$O
58 $O.png:         torgbv.$O writerawimage.$O readpng.$O png.$O
59 $O.topng:       writepng.$O topng.$O
60 $O.tif:         torgbv.$O writerawimage.$O readtif.$O tif.$O
61 $O.totif:       writetif.$O totif.$O
62 $O.yuv:         $IMFILES readyuv.$O yuv.$O
63 $O.bmp:         $IMFILES readbmp.$O bmp.$O
64 $O.v210:        $IMFILES readv210.$O v210.$O
65 $O.ico:         readpng.$O ico.$O
66
67 torgbv.$O:      ycbcr.h rgbv.h
68
69 ycbcr.h:        rgbycc.c
70         $c^c rgbycc.c
71         $c^l -o $c.rgbycc rgbycc.$c
72         ./$c.rgbycc > ycbcr.h
73
74 rgbv.h: rgbrgbv.c
75         $c^c rgbrgbv.c
76         $c^l -o $c.rgbrgbv rgbrgbv.$c
77         ./$c.rgbrgbv > rgbv.h
78
79 nuke:V: nuke-headers
80
81 nuke-headers:V:
82         rm -f rgbv.h ycbcr.h