shithub: riscv

ref: 8dfdc38f952b708732e605641bd9cc64b126cbdc
dir: /sys/src/ape/lib/bz2/mkfile/

View raw version
APE=/sys/src/ape
</$APE/config

LIB=/$objtype/lib/ape/libbz2.a

OFILES=\
	blocksort.$O\
	bzassert.$O\
	bzcompress.$O\
	bzdecompress.$O\
	bzfeof.$O\
	bzlib.$O\
	bzread.$O\
	bzversion.$O\
	bzwrite.$O\
	bzzlib.$O\
	compress.$O\
	crctable.$O\
	decompress.$O\
	huffman.$O\
	randtable.$O\

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

</sys/src/cmd/mksyslib

CFLAGS=-c -D_POSIX_SOURCE

%.$O: /sys/src/cmd/bzip2/lib/%.c
	$CC $CFLAGS /sys/src/cmd/bzip2/lib/$stem.c