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 headers DEFINES += HAIKU_BUILD_COMPATIBILITY_H __STRICT_ANSI__ ; # set some additional defines { local defines = #BFS_BIG_ENDIAN_ONLY FS_SHELL ; if $(TARGET_PACKAGING_ARCH) = x86_gcc2 { # GCC2 doesn't compile BFS correctly with -O2 or more OPTIM = -O1 ; } defines = [ FDefines $(defines) ] ; local c++flags = ; if $(HOST_GCC_VERSION[1]) >= 3 { 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 libraries local 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.cpp BlockAllocator.cpp BPlusTree.cpp Attribute.cpp CheckVisitor.cpp Debug.cpp DeviceOpener.cpp FileSystemVisitor.cpp Index.cpp Inode.cpp Journal.cpp Query.cpp QueryParserUtils.cpp ResizeVisitor.cpp Volume.cpp kernel_interface.cpp ; BuildPlatformMergeObject bfs.o : $(bfsSource) ; BuildPlatformMain bfs_shell : additional_commands.cpp command_checkfs.cpp command_resizefs.cpp : bfs.o fs_shell.a $(HOST_LIBSUPC++) $(HOST_LIBSTDC++) $(HOST_LIBROOT) $(fsShellCommandLibs) ; BuildPlatformMain bfs_fuse : : bfs.o 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 ] ;