1SubDir HAIKU_TOP src system boot loader file_systems tarfs ; 2 3UsePrivateHeaders [ FDirName kernel disk_device_manager ] ; 4UsePrivateHeaders kernel shared storage ; 5 6local zlibSourceDirectory = [ BuildFeatureAttribute zlib : sources : path ] ; 7UseHeaders $(zlibSourceDirectory) ; 8UseHeaders $(zlibSourceDirectory) : true ; 9 10local defines = [ FDefines _BOOT_MODE ] ; 11SubDirCcFlags $(defines) ; 12SubDirC++Flags -fno-rtti $(defines) ; 13 14 15local zlibSources = 16 adler32.c 17 crc32.c 18 inffast.c 19 inflate.c 20 inftrees.c 21 uncompr.c 22 zutil.c 23 ; 24 25local platform ; 26for platform in [ MultiBootSubDirSetup ] { 27 on $(platform) { 28 UsePrivateHeaders [ FDirName kernel boot platform $(TARGET_BOOT_PLATFORM) ] ; 29 30 LOCATE on [ FGristFiles $(zlibSources) ] = $(zlibSourceDirectory) ; 31 Depends [ FGristFiles $(zlibSources) ] 32 : [ BuildFeatureAttribute zlib : sources ] ; 33 34 BootStaticLibrary [ MultiBootGristFiles boot_zlib ] : 35 $(zlibSources) 36 ; 37 38 39 Includes [ FGristFiles tarfs.cpp ] : [ BuildFeatureAttribute zlib : sources ] ; 40 # Strictly speaking it should be "headers", but the sources contain the 41 # headers as well and we have already added the sources directory to the 42 # header search path for the subdirectory. Should building boot_zlib be 43 # moved to its own directory, this should better be changes as well. 44 45 BootStaticLibrary [ MultiBootGristFiles boot_tarfs ] : 46 tarfs.cpp 47 ; 48 } 49} 50