Plan 9 from Bell Labs’s /usr/web/sources/contrib/stallion/root/sys/src/ape/lib/z/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/libz.a
OFILES=\
	adler32.$O\
	compress.$O\
	crc32.$O\
	deflate.$O\
	gzclose.$O\
	gzlib.$O\
	gzread.$O\
	gzwrite.$O\
	infback.$O\
	inffast.$O\
	inflate.$O\
	inftrees.$O\
	trees.$O\
	uncompr.$O\
	zutil.$O\

HFILES=`{ls *.h}

TESTOFILES=\
	test/example.$O\
	test/minigzip.$O\

TESTPROGS=\
	test/$O.example\
	test/$O.minigzip\

CLEANFILES=$TESTOFILES $TESTPROGS

</sys/src/cmd/mklib

CFLAGS=-I. -c -D_POSIX_SOURCE -D_BSD_EXTENSION -DHAVE_UNISTD_H -DHAVE_STDARG_H

test/$O.%: test/%.$O $LIB
	$LD $LDFLAGS -o $target $prereq

test:V: $TESTPROGS
	echo hello world | ./test/$O.minigzip | ./test/$O.minigzip -d
	./test/$O.example tmpst_$pid

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].