1SubDir HAIKU_TOP src tools bfs_shell ; 2 3SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src add-ons kernel file_systems bfs ] ; 4 5# prevent inclusion of HaikuBuildCompatibility.h 6DEFINES += HAIKU_BUILD_COMPATIBILITY_H ; 7 8# set some additional defines 9{ 10 local defines = 11 #BFS_BIG_ENDIAN_ONLY 12 FS_SHELL 13 ; 14 15 if $(DEBUG) = 0 { 16 # the gcc on BeOS doesn't compile BFS correctly with -O2 or more 17 OPTIM = -O1 ; 18 } 19 20 defines = [ FDefines $(defines) ] ; 21 SubDirCcFlags $(defines) -Wno-multichar ; 22 SubDirC++Flags $(defines) -Wno-multichar -fno-rtti ; 23} 24 25# platform specific libraries 26local fsShellCommandLibs ; 27if ! $(HOST_PLATFORM_BEOS_COMPATIBLE) { 28 fsShellCommandLibs = $(HOST_NETWORK_LIBS) ; 29} 30 31UseHeaders [ FDirName $(HAIKU_TOP) headers build ] : true ; 32 33if ! $(HOST_PLATFORM_BEOS_COMPATIBLE) { 34 UseHeaders [ FDirName $(HAIKU_TOP) headers build os ] : true ; 35 UseHeaders [ FDirName $(HAIKU_TOP) headers build os support ] : true ; 36} 37 38UsePrivateHeaders shared storage ; 39UsePrivateHeaders fs_shell ; 40UseHeaders [ FDirName $(HAIKU_TOP) headers private ] : true ; 41UseHeaders [ FDirName $(HAIKU_TOP) src tools fs_shell ] ; 42 43local bfsSource = 44 bfs_disk_system.cpp 45 BlockAllocator.cpp 46 BPlusTree.cpp 47 Attribute.cpp 48 CheckVisitor.cpp 49 Debug.cpp 50 FileSystemVisitor.cpp 51 Index.cpp 52 Inode.cpp 53 Journal.cpp 54 Query.cpp 55 QueryParserUtils.cpp 56 Volume.cpp 57 58 kernel_interface.cpp 59; 60 61BuildPlatformMergeObject <build>bfs.o : $(bfsSource) ; 62 63BuildPlatformMain <build>bfs_shell 64 : 65 additional_commands.cpp 66 command_checkfs.cpp 67 : 68 <build>bfs.o 69 <build>fs_shell.a $(HOST_LIBSUPC++) $(HOST_LIBSTDC++) 70 $(HOST_LIBROOT) $(fsShellCommandLibs) 71; 72 73BuildPlatformMain <build>bfs_fuse 74 : 75 : 76 <build>bfs.o 77 <build>fuse_module.a 78 $(HOST_LIBSUPC++) $(HOST_LIBSTDC++) 79 $(HOST_STATIC_LIBROOT) $(fsShellCommandLibs) fuse 80; 81 82SEARCH on [ FGristFiles QueryParserUtils.cpp ] 83 += [ FDirName $(HAIKU_TOP) src add-ons kernel file_systems shared ] ; 84