OK, turing.

<- leave blank

Sat Aug 1 19:57:37 EDT 2020

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

#LIB=/$objtype/lib/ape/libpixman.a
LIB=libpixman.a

OFILES=\
# pixman \
	pixman-access-accessors.$O\
	pixman-access.$O\
	pixman-bits-image.$O\
	pixman-combine-float.$O\
	pixman-combine32.$O\
	pixman-conical-gradient.$O\
	pixman-edge-accessors.$O\
	pixman-edge.$O\
	pixman-filter.$O\
	pixman-general.$O\
	pixman-glyph.$O\
	pixman-gradient-walker.$O\
	pixman-image.$O\
	pixman-implementation.$O\
	pixman-linear-gradient.$O\
	pixman-mmx.$O\
	pixman-noop.$O\
	pixman-ppc.$O\
	pixman-radial-gradient.$O\
	pixman-region16.$O\
	pixman-region32.$O\
	pixman-solid-fill.$O\
	pixman-timer.$O\
	pixman-trap.$O\
	pixman-utils.$O\
	pixman-x86.$O\
	pixman.$O\

# pixman-vmx.$O\
# pixman-sse2.$O\
# pixman-ssse3.$O\
# pixman-region.$O\
# pixman-fast-path.$O\ #uses inline fn and dirty stuff

CLEANFILES=$CLEANFILES\
	/sys/include/ape/pixman.h

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

</sys/src/cmd/mksyslib

CFLAGS=-c -D_POSIX_SOURCE -D_BSD_EXTENSION -D_C99_SNPRINTF_EXTENSION -Iconfig.h
-I.  -D_SUSV2_SOURCE -DHAVE_CONFIG_H -DPIXMAN_NO_TLS

%.$O: pixman/%.c
	$CC $CFLAGS -o $target pixman/$stem.c

$O.fetch-test: fetch-test.$O $LIB
	$LD -o $target $prereq

install:V:
	cp libpixman.a /$objtype/lib/ape/libpixman.a
	cp pixman/pixman.h /sys/include/ape/pixman.h

nuke:V:
	rm -f /$objtype/lib/ape/libpixman.a
	rm -f /sys/include/ape/pixman.h