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