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 adler32.c 18 crc32.c 19 inffast.c 20 inflate.c 21 inftrees.c 22 uncompr.c 23 zutil.c 24 ; 25 26LOCATE on [ FGristFiles $(zlibSources) ] = $(zlibSourceDirectory) ; 27Depends [ FGristFiles $(zlibSources) ] 28 : [ BuildFeatureAttribute zlib : sources ] ; 29 30BootStaticLibrary boot_zlib : 31 $(zlibSources) 32 : -fno-pic 33 ; 34 35 36Includes [ FGristFiles tarfs.cpp ] : [ BuildFeatureAttribute zlib : sources ] ; 37 # Strictly speaking it should be "headers", but the sources contain the 38 # headers as well and we have already added the sources directory to the 39 # header search path for the subdirectory. Should building boot_zlib be 40 # moved to its own directory, this should better be changes as well. 41 42BootStaticLibrary boot_tarfs : 43 tarfs.cpp 44 : -fno-pic 45 ; 46