SubDir HAIKU_TOP src system kernel lib zlib ; local zlibSourceDirectory = [ BuildFeatureAttribute zlib : sources : path ] ; UseHeaders $(zlibSourceDirectory) ; UseHeaders $(zlibSourceDirectory) : true ; local zlibSources = inflate.c inffast.c inftrees.c adler32.c crc32.c zutil.c ; LOCATE on [ FGristFiles $(zlibSources) ] = $(zlibSourceDirectory) ; Depends [ FGristFiles $(zlibSources) ] : [ BuildFeatureAttribute zlib : sources ] ; KernelStaticLibrary kernel_libz.a : $(zlibSources) : -fno-pic ;