APE=/sys/src/ape
<$APE/config
LIB=/$objtype/lib/ape/libpng.a
OFILES=\
png.$O\
pngerror.$O\
pngget.$O\
pngmem.$O\
pngpread.$O\
pngread.$O\
pngrio.$O\
pngrtran.$O\
pngrutil.$O\
pngset.$O\
pngtrans.$O\
pngwio.$O\
pngwrite.$O\
pngwtran.$O\
pngwutil.$O\
HFILES=\
/sys/include/ape/png.h\
UPDATE=\
mkfile\
$HFILES\
${OFILES:%.$O=%.c}\
${LIB:/$objtype/%=/386/%}\
</sys/src/cmd/mksyslib
CFLAGS=-c
%.$O: /sys/src/cmd/gs/libpng/%.c
$CC $CFLAGS /sys/src/cmd/gs/libpng/$stem.c
$O.pngtest: pngtest.$O $LIB
$LD -o $target $prereq
|