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