SubDir HAIKU_TOP src tools bfs_shell ;SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src add-ons kernel file_systems bfs ] ;# prevent inclusion of HaikuBuildCompatibility.h and BSD headersDEFINES += HAIKU_BUILD_COMPATIBILITY_H __STRICT_ANSI__ ;# set some additional defines{local defines =#BFS_BIG_ENDIAN_ONLYFS_SHELL;if $(TARGET_PACKAGING_ARCH) = x86_gcc2 {# GCC2 doesn't compile BFS correctly with -O2 or moreOPTIM = -O1 ;}defines = [ FDefines $(defines) ] ;local c++flags = -std=c++11 ;SubDirCcFlags $(defines) -Wno-multichar ;SubDirC++Flags $(defines) -Wno-multichar -fno-rtti ;SubDirC++Flags $(defines) $(c++flags) -Wno-multichar -fno-rtti ;}# platform specific librarieslocal fsShellCommandLibs ;if ! $(HOST_PLATFORM_HAIKU_COMPATIBLE) {fsShellCommandLibs = $(HOST_NETWORK_LIBS) ;}UseHeaders [ FDirName $(HAIKU_TOP) headers build ] : true ;if ! $(HOST_PLATFORM_HAIKU_COMPATIBLE) {UseHeaders [ FDirName $(HAIKU_TOP) headers build os ] : true ;UseHeaders [ FDirName $(HAIKU_TOP) headers build os support ] : true ;}UsePrivateHeaders shared storage ;UsePrivateHeaders fs_shell ;UseHeaders [ FDirName $(HAIKU_TOP) headers private ] : true ;UseHeaders [ FDirName $(HAIKU_TOP) src tools fs_shell ] ;local bfsSource =bfs_disk_system.cppBlockAllocator.cppBPlusTree.cppAttribute.cppCheckVisitor.cppDebug.cppDeviceOpener.cppFileSystemVisitor.cppIndex.cppInode.cppJournal.cppQuery.cppQueryParserUtils.cppResizeVisitor.cppVolume.cppkernel_interface.cpp;BuildPlatformMergeObject <build>bfs.o : $(bfsSource) ;BuildPlatformMain <build>bfs_shell:additional_commands.cppcommand_checkfs.cppcommand_resizefs.cpp:<build>bfs.o<build>fs_shell.a $(HOST_LIBSUPC++) $(HOST_LIBSTDC++)$(HOST_LIBROOT) $(fsShellCommandLibs);BuildPlatformMain <build>bfs_fuse::<build>bfs.o<build>fuse_module.a$(HOST_LIBSUPC++) $(HOST_LIBSTDC++)$(HOST_STATIC_LIBROOT) $(fsShellCommandLibs) fuse;SEARCH on [ FGristFiles DeviceOpener.cpp QueryParserUtils.cpp ]+= [ FDirName $(HAIKU_TOP) src add-ons kernel file_systems shared ] ;