202be57bb9
not checking the rectangle dimensions causes integer overflows and memory corruption. adding a new badrect() function that checks for these cases.
79 lines
1 KiB
Makefile
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
|