xref: /haiku/src/system/kernel/lib/zlib/Jamfile (revision 04171cfc5c10c98b9ba3c7233a271f6165cdd36f)
1SubDir HAIKU_TOP src system kernel lib zlib ;
2
3local zlibSourceDirectory = [ BuildFeatureAttribute zlib : sources : path ] ;
4UseHeaders $(zlibSourceDirectory) ;
5UseHeaders $(zlibSourceDirectory) : true ;
6
7local zlibSources =
8	adler32.c
9	crc32.c
10	inffast.c
11	inflate.c
12	inftrees.c
13	uncompr.c
14	zutil.c
15	;
16
17LOCATE on [ FGristFiles $(zlibSources) ] = $(zlibSourceDirectory) ;
18Depends [ FGristFiles $(zlibSources) ]
19	: [ BuildFeatureAttribute zlib : sources ] ;
20
21# Build zlib with PIC, such that it can be used by kernel add-ons (filesystems).
22KernelStaticLibrary kernel_libz.a :
23	$(zlibSources)
24	;
25