xref: /haiku/src/system/kernel/lib/zlib/Jamfile (revision 97f11716bfaa0f385eb0e28a52bf56a5023b9e99)
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
7*1fca5811SAugustin CavalierSubDirCcFlags -Wno-error=missing-prototypes ;
8*1fca5811SAugustin Cavalier
97c6bff17SIngo Weinholdlocal zlibSources =
1025a7b01dSIngo Weinhold	adler32.c
1125a7b01dSIngo Weinhold	crc32.c
12b3263ad3SIngo Weinhold	inffast.c
13b3263ad3SIngo Weinhold	inflate.c
14b3263ad3SIngo Weinhold	inftrees.c
15b3263ad3SIngo Weinhold	uncompr.c
1625a7b01dSIngo Weinhold	zutil.c
177c6bff17SIngo Weinhold	;
187c6bff17SIngo Weinhold
197c6bff17SIngo WeinholdLOCATE on [ FGristFiles $(zlibSources) ] = $(zlibSourceDirectory) ;
207c6bff17SIngo WeinholdDepends [ FGristFiles $(zlibSources) ]
217c6bff17SIngo Weinhold	: [ BuildFeatureAttribute zlib : sources ] ;
227c6bff17SIngo Weinhold
2364c4bd1dSOliver Tappe# Build zlib with PIC, such that it can be used by kernel add-ons (filesystems).
240cb3f709SOliver TappeKernelStaticLibrary kernel_libz.a :
257c6bff17SIngo Weinhold	$(zlibSources)
2625a7b01dSIngo Weinhold	;
27