shithub: riscv

ref: b4eb667f02c32f007290b68adc95c8fbd9a2c3cd
dir: /sys/src/ape/lib/draw/mkfile/

View raw version
APE=/sys/src/ape
<$APE/config

LIB=/$objtype/lib/ape/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\
	egetrect.$O\
	ellipse.$O\
	emenuhit.$O\
	event.$O\
	fmt.$O\
	font.$O\
	freesubfont.$O\
	getdefont.$O\
	getsubfont.$O\
	icossin.$O\
	icossin2.$O\
	init.$O\
	line.$O\
	mkfont.$O\
	newwindow.$O\
	openfont.$O\
	poly.$O\
	loadimage.$O\
	readimage.$O\
	readsubfont.$O\
	rectclip.$O\
	replclipr.$O\
	rgb.$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/ape/draw.h\
	/sys/include/ape/event.h\
	/sys/include/ape/mouse.h\
	/sys/include/ape/keyboard.h\

UPDATE=\
	mkfile\
	$HFILES\
	${OFILES:%.$O=%.c}\
	${LIB:/$objtype/%=/386/%}\

</sys/src/cmd/mksyslib

CFLAGS=-c $CFLAGS -D_POSIX_SOURCE -D_PLAN9_SOURCE -I../9

%.$O: /sys/src/libdraw/%.c
	$CC $CFLAGS /sys/src/libdraw/$stem.c

colors.$O: /sys/src/cmd/colors.c
	$CC $CFLAGS /sys/src/cmd/colors.c

$O.colors: colors.$O
	$LD -o $target colors.$O