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