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 Debug.cpp 49 Index.cpp 50 Inode.cpp 51 Journal.cpp 52 Query.cpp 53 QueryParserUtils.cpp 54 Volume.cpp 55 56 kernel_interface.cpp 57; 58 59BuildPlatformMergeObject <build>bfs.o : $(bfsSource) ; 60 61BuildPlatformMain <build>bfs_shell 62 : 63 additional_commands.cpp 64 command_checkfs.cpp 65 : 66 <build>bfs.o 67 <build>fs_shell.a $(HOST_LIBSUPC++) $(HOST_LIBSTDC++) 68 $(HOST_LIBROOT) $(fsShellCommandLibs) 69; 70 71BuildPlatformMain <build>bfs_fuse 72 : 73 : 74 <build>bfs.o 75 <build>fuse_module.a 76 $(HOST_LIBSUPC++) $(HOST_LIBSTDC++) 77 $(HOST_STATIC_LIBROOT) $(fsShellCommandLibs) fuse 78; 79 80SEARCH on [ FGristFiles QueryParserUtils.cpp ] 81 += [ FDirName $(HAIKU_TOP) src add-ons kernel file_systems shared ] ; 82