xref: /haiku/src/system/kernel/lib/zlib/Jamfile (revision 64c4bd1dc27229a307186bb2f10483b9e6c2a449)
125a7b01dSIngo WeinholdSubDir HAIKU_TOP src system kernel lib zlib ;
225a7b01dSIngo Weinhold
37c6bff17SIngo Weinholdlocal zlibSourceDirectory = [ BuildFeatureAttribute zlib : sources : path ] ;
47c6bff17SIngo WeinholdUseHeaders $(zlibSourceDirectory) ;
57c6bff17SIngo WeinholdUseHeaders $(zlibSourceDirectory) : true ;
625a7b01dSIngo Weinhold
77c6bff17SIngo Weinholdlocal zlibSources =
825a7b01dSIngo Weinhold	inflate.c
925a7b01dSIngo Weinhold	inffast.c
1025a7b01dSIngo Weinhold	inftrees.c
1125a7b01dSIngo Weinhold	adler32.c
1225a7b01dSIngo Weinhold	crc32.c
1325a7b01dSIngo Weinhold	zutil.c
147c6bff17SIngo Weinhold	;
157c6bff17SIngo Weinhold
167c6bff17SIngo WeinholdLOCATE on [ FGristFiles $(zlibSources) ] = $(zlibSourceDirectory) ;
177c6bff17SIngo WeinholdDepends [ FGristFiles $(zlibSources) ]
187c6bff17SIngo Weinhold	: [ BuildFeatureAttribute zlib : sources ] ;
197c6bff17SIngo Weinhold
20*64c4bd1dSOliver Tappe# Build zlib with PIC, such that it can be used by kernel add-ons (filesystems).
210cb3f709SOliver TappeKernelStaticLibrary kernel_libz.a :
227c6bff17SIngo Weinhold	$(zlibSources)
2325a7b01dSIngo Weinhold	;
24