Plan 9 from Bell Labs’s /usr/web/sources/patch/maybe/ape-updates/mkfile.14

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


APE=/sys/src/ape
<$APE/config

LIB=/$objtype/lib/ape/libdraw.a

OFILES=\
	alloc.$O\
	allocimagemix.$O\
	arith.$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=-TVwc $CFLAGS -D_POSIX_SOURCE -D_PLAN9_SOURCE -I. -I../9

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

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

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.