Plan 9 from Bell Labs’s /usr/web/sources/contrib/lucio/pub/zlib/mkfile

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


</$objtype/mkfile

LIB=libz.a

OFILES=\
	adler32.$O \
	compress.$O \
	crc32.$O \
	deflate.$O \
	gzio.$O \
	infback.$O \
	inffast.$O \
	inflate.$O \
	inftrees.$O \
	trees.$O \
	uncompr.$O \
	zutil.$O \

HFILES=\
	zlib.h \
	zconf.h \

CLEANFILES=\
	$O.example \
	$O.minigzip \
	
</sys/src/pub/mkpublib

CFLAGS= -FVw -p -D_PLAN_9 -I/sys/include/ape -I/$objtype/include/ape $CFLAGS

OHFILES=${HFILES:%.h=$PUBINC/%.h}
install:V:	$OHFILES

$O.example: example.$O $LIB$O
	$LD $LDFLAGS -o $O.example example.$O $LIB$O

$O.minigzip: minigzip.$O $LIB$O
	$LD $LDFLAGS -o $O.minigzip minigzip.$O $LIB$O

test: $O.example $O.minigzip
	echo hello world | $O.minigzip | $O.minigzip -d
	$O.example

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.