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 20KernelStaticLibrary kernel_libz.a : 21 $(zlibSources) 22 : -fno-pic 23 ; 24