SubDir HAIKU_TOP src add-ons kernel file_systems packagefs ;UsePrivateKernelHeaders ;UsePrivateHeaders package shared storage support file_systems ;UseBuildFeatureHeaders zlib ;Includes [ FGristFiles ZlibCompressionAlgorithm.cpp ]: [ BuildFeatureAttribute zlib : headers ] ;local zstdKernelLib ;if [ FIsBuildFeatureEnabled zstd ] {SubDirC++Flags -DZSTD_ENABLED -DZSTD_STATIC_LINKING_ONLY ;UseBuildFeatureHeaders zstd ;Includes [ FGristFiles ZstdCompressionAlgorithm.cpp ]: [ BuildFeatureAttribute zstd : headers ] ;zstdKernelLib = kernel_libzstd.a ;}local subDirs =indicesnodespackagepackage_linksresolvablesutilvolume;SEARCH_SOURCE += $(subDirs:D=$(SUBDIR)) ;HAIKU_PACKAGE_FS_SOURCES =AttributeCookie.cppAttributeDirectoryCookie.cppAttributeIndex.cppAutoPackageAttributeDirectoryCookie.cppAutoPackageAttributes.cppCachedDataReader.cppDependency.cppDirectory.cppEmptyAttributeDirectoryCookie.cppIndex.cppIndexedAttributeOwner.cppkernel_interface.cppLastModifiedIndex.cppNameIndex.cppNode.cppNodeListener.cppOldUnpackingNodeAttributes.cppQuery.cppPackage.cppPackageDirectory.cppPackageFile.cppPackageFSRoot.cppPackageLeafNode.cppPackageLinkDirectory.cppPackageLinksDirectory.cppPackageLinksListener.cppPackageLinkSymlink.cppPackageNode.cppPackageNodeAttribute.cppPackagesDirectory.cppPackageSettings.cppPackageSymlink.cppResolvable.cppResolvableFamily.cppSizeIndex.cppString.cppStringConstants.cppStringPool.cppUnpackingAttributeCookie.cppUnpackingAttributeDirectoryCookie.cppUnpackingDirectory.cppUnpackingLeafNode.cppUnpackingNode.cppVersion.cppVolume.cpp;HAIKU_PACKAGE_FS_SHARED_SOURCES =QueryParserUtils.cppDebugSupport.cpp;HAIKU_PACKAGE_FS_PACKAGE_READER_SOURCES =DataReader.cppErrorOutput.cppFDDataReader.cppHPKGDefs.cppPackageContentHandler.cppPackageData.cppPackageDataReader.cppPackageEntry.cppPackageEntryAttribute.cppPackageFileHeapAccessorBase.cppPackageFileHeapReader.cppPackageReaderImpl.cppReaderImplBase.cpp;local libSharedSources =NaturalCompare.cpp;local storageKitSources =FdIO.cpp;local supportKitSources =CompressionAlgorithm.cppZlibCompressionAlgorithm.cppZstdCompressionAlgorithm.cpp;KernelAddon packagefs:$(HAIKU_PACKAGE_FS_SOURCES)$(HAIKU_PACKAGE_FS_SHARED_SOURCES)$(HAIKU_PACKAGE_FS_PACKAGE_READER_SOURCES)$(libSharedSources)$(storageKitSources)$(supportKitSources): kernel_libz.a $(zstdKernelLib);SEARCH on [ FGristFiles $(HAIKU_PACKAGE_FS_SHARED_SOURCES) ]+= [ FDirName $(HAIKU_TOP) src add-ons kernel file_systems shared ] ;SEARCH on [ FGristFiles $(HAIKU_PACKAGE_FS_PACKAGE_READER_SOURCES) ]+= [ FDirName $(HAIKU_TOP) src kits package hpkg ] ;SEARCH on [ FGristFiles $(libSharedSources) ]+= [ FDirName $(HAIKU_TOP) src build libshared ] ;SEARCH on [ FGristFiles $(storageKitSources) ]+= [ FDirName $(HAIKU_TOP) src kits storage ] ;SEARCH on [ FGristFiles $(supportKitSources) ]+= [ FDirName $(HAIKU_TOP) src kits support ] ;