Plan 9 from Bell Labs’s /usr/web/sources/contrib/fgb/root/sys/src/ape/lib/png/mkfile

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/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

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.