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