SubDir HAIKU_TOP src bin bzip2 ;

# set some additional defines
{
	SubDirCcFlags -Wall -Winline -O2 -fomit-frame-pointer -fno-strength-reduce -D_FILE_OFFSET_BITS=64 -w ;
}

local bzip2_rsrc = [ FGristFiles bzip2.rsrc ] ;
ResComp $(bzip2_rsrc) : [ FGristFiles bzip2.rdef ] ;

BinCommand bzip2 :
	blocksort.c
	huffman.c
	crctable.c
	randtable.c
	compress.c
	decompress.c
	bzlib.c
	bzip2.c
	: : $(bzip2_rsrc)
;

BinCommand bzip2recover :
	bzip2recover.c
	: : $(bzip2_rsrc)
;

{
	MakeLocatePlatform <bin>bzdiff ;
	Shell <bin>bzdiff : bzdiff ;
	MakeLocatePlatform <bin>bzgrep ;
	Shell <bin>bzgrep : bzgrep ;
	MakeLocatePlatform <bin>bzmore ;
	Shell <bin>bzmore : bzmore ;
}
