shithub: riscv

ref: 19c89f5212bf073baf999fd3320cfe7ffe915f70
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