Plan 9 from Bell Labs’s /usr/web/sources/contrib/fgb/root/sys/src/ape/lib/tiff/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/libtiff.a

OFILES=\
# libtiff \
	tif_aux.$O\
	tif_close.$O\
	tif_codec.$O\
	tif_color.$O\
	tif_compress.$O\
	tif_dir.$O\
	tif_dirinfo.$O\
	tif_dirread.$O\
	tif_dirwrite.$O\
	tif_dumpmode.$O\
	tif_error.$O\
	tif_extension.$O\
	tif_fax3.$O\
	tif_fax3sm.$O\
	tif_flush.$O\
	tif_getimage.$O\
	tif_jpeg.$O\
	tif_luv.$O\
	tif_lzw.$O\
	tif_next.$O\
	tif_ojpeg.$O\
	tif_open.$O\
	tif_packbits.$O\
	tif_pixarlog.$O\
	tif_predict.$O\
	tif_print.$O\
	tif_read.$O\
	tif_strip.$O\
	tif_swab.$O\
	tif_thunder.$O\
	tif_tile.$O\
	tif_unix.$O\
	tif_version.$O\
	tif_warning.$O\
	tif_write.$O\
	tif_zip.$O\
# port \
	dummy.$O\
	lfind.$O\

TARG=\
	bmp2tiff\
	fax2ps\
	fax2tiff\
	gif2tiff\
	pal2rgb\
	ppm2tiff\
	ras2tiff\
	raw2tiff\
	rgb2ycbcr\
	thumbnail\
	tiff2bw\
	tiff2pdf\
	tiff2ps\
	tiff2rgba\
	tiffcmp\
	tiffcp\
	tiffdither\
	tiffdump\
	tiffinfo\
	tiffmedian\
	tiffset\
	tiffsplit\
	ycbcr\

TOOLS=${TARG:%=$O.%}

HFILES=\
	/sys/include/ape/tiffio.h\

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

CLEANFILES=$TOOLS

</sys/src/cmd/mksyslib

CFLAGS=-c -Ilib -D_POSIX_SOURCE -DHAVE_CONFIG_H 

%.$O: lib/%.c
	$CC $CFLAGS lib/$stem.c

%.$O: port/%.c
	$CC $CFLAGS port/$stem.c

%.$O: tools/%.c
	$CC $CFLAGS -B tools/$stem.c

$O.%: %.$O $LIB
	$LD -o $target $prereq

tools: $LIB
	mk $TOOLS

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.