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