aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/jpg/mkfile
blob: 938afbd1d255dc6a754f6ed0be99a375cd7f4272 (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
<$PLAN9/src/mkhdr

TARG=jpg\
	gif\
	togif\
	ppm\
	toppm\
	png\
	topng\
	yuv\
	ico\
	toico\
	bmp\

IMFILES=\
	torgbv.$O\
	totruecolor.$O\
	writerawimage.$O\

HFILES=imagefile.h\

<$PLAN9/src/mkmany

$O.jpg:		$IMFILES readjpg.$O jpg.$O
$O.gif:		$IMFILES readgif.$O gif.$O
$O.togif:	writegif.$O onechan.$O togif.$O torgbv.$O multichan.$O
$O.ppm:		$IMFILES readppm.$O ppm.$O
$O.toppm:	writeppm.$O multichan.$O toppm.$O
$O.png:		$IMFILES readpng.$O png.$O multichan.$O
$O.topng:	writepng.$O topng.$O
$O.yuv:		$IMFILES readyuv.$O yuv.$O
$O.bmp:		$IMFILES readbmp.$O bmp.$O

torgbv.$O:	ycbcr.h rgbv.h

ycbcr.h:	rgbycc.c
	9c rgbycc.c
	9l -o o.rgbycc rgbycc.o -ldraw -l9
	./o.rgbycc >ycbcr.h

rgbv.h:	rgbrgbv.c
	9c rgbrgbv.c
	9l -o o.rgbrgbv rgbrgbv.o -ldraw -l9
	./o.rgbrgbv >rgbv.h

nuke:V:	nuke-headers

nuke-headers:V:
	rm -f rgbv.h ycbcr.h

CLEANFILES=$CLEANFILES o.rgbycc o.rgbrgbv rgbv.h ycbcr.h