plan9fox/sys/src/libdraw/mkfile
cinap_lenrek 202be57bb9 draw: add badrect() function to reject zero, negative size or orverly huge rectangles
not checking the rectangle dimensions causes integer overflows
and memory corruption. adding a new badrect() function that checks
for these cases.
2013-06-16 19:01:46 +02:00

79 lines
1 KiB
Makefile

</$objtype/mkfile
LIB=/$objtype/lib/libdraw.a
OFILES=\
alloc.$O\
allocimagemix.$O\
arith.$O\
badrect.$O\
bezier.$O\
border.$O\
buildfont.$O\
bytesperline.$O\
chan.$O\
cloadimage.$O\
computil.$O\
creadimage.$O\
debug.$O\
defont.$O\
draw.$O\
drawrepl.$O\
eenter.$O\
egetrect.$O\
ellipse.$O\
emenuhit.$O\
enter.$O\
event.$O\
fmt.$O\
font.$O\
freesubfont.$O\
getdefont.$O\
getrect.$O\
getsubfont.$O\
icossin.$O\
icossin2.$O\
init.$O\
keyboard.$O\
line.$O\
menuhit.$O\
mkfont.$O\
mouse.$O\
newwindow.$O\
openfont.$O\
poly.$O\
loadimage.$O\
readcolmap.$O\
readimage.$O\
readsubfont.$O\
rectclip.$O\
replclipr.$O\
rgb.$O\
scroll.$O\
string.$O\
stringbg.$O\
stringsubfont.$O\
stringwidth.$O\
subfont.$O\
subfontcache.$O\
subfontname.$O\
unloadimage.$O\
window.$O\
writecolmap.$O\
writeimage.$O\
writesubfont.$O\
HFILES=\
/sys/include/draw.h\
/sys/include/event.h\
/sys/include/mouse.h\
/sys/include/keyboard.h
UPDATE=\
mkfile\
$HFILES\
${OFILES:%.$O=%.c}\
${LIB:/$objtype/%=/386/%}\
</sys/src/cmd/mksyslib