1SubDir HAIKU_TOP src tests add-ons kernel file_systems btrfs btrfs_shell ; 2 3SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src add-ons kernel file_systems btrfs ] ; 4 5# prevent inclusion of HaikuBuildCompatibility.h and _BSD_SOURCE headers 6DEFINES += HAIKU_BUILD_COMPATIBILITY_H __STRICT_ANSI__ ; 7 8# set some additional defines 9{ 10 local defines = 11 FS_SHELL 12 Z_SOLO # prevent inclusion of system headers from zlib.h 13 TRACE_BTRFS # ENABLE DEBUGGING 14 USER=1 15 ; 16 17 defines = [ FDefines $(defines) ] ; 18 SubDirCcFlags $(defines) -Wno-multichar ; 19 SubDirC++Flags $(defines) -Wno-multichar -fno-rtti ; 20 HOST_LINKFLAGS += -lz ; # zlib link 21} 22 23 24# platform specific libraries 25local fsShellCommandLibs ; 26if ! $(HOST_PLATFORM_HAIKU_COMPATIBLE) { 27 fsShellCommandLibs = $(HOST_NETWORK_LIBS) ; 28} 29 30 31UseHeaders [ FDirName $(HAIKU_TOP) headers build ] : true ; 32UseHeaders [ FDirName $(HAIKU_TOP) headers build os ] : true ; 33UseHeaders [ FDirName $(HAIKU_TOP) headers build os support ] : true ; 34 35UsePrivateKernelHeaders ; 36UsePrivateHeaders shared storage fs_shell ; 37UsePrivateHeaders file_systems ; 38UseHeaders [ FDirName $(HAIKU_TOP) headers private ] : true ; 39UseHeaders [ FDirName $(HAIKU_TOP) src tools fs_shell ] ; 40UseHeaders [ FDirName $(HAIKU_TOP) src libs uuid ] : true ; 41 42 43local btrfsSources = 44 Attribute.cpp 45 AttributeIterator.cpp 46 BTree.cpp 47 Chunk.cpp 48 CRCTable.cpp 49 DebugSupport.cpp 50 DeviceOpener.cpp 51 DirectoryIterator.cpp 52 ExtentAllocator.cpp 53 Inode.cpp 54 Journal.cpp 55 Volume.cpp 56 btrfs_disk_system.cpp 57 kernel_interface.cpp 58; 59 60local utilitySources = 61 AVLTreeBase.cpp 62; 63 64BuildPlatformMergeObject <build>btrfs.o : $(btrfsSources) $(utilitySources) ; 65 66BuildPlatformMain <build>btrfs_shell 67 : 68 # no extra files 69 : 70 <build>btrfs.o 71 <build>fs_shell.a $(HOST_LIBSUPC++) $(HOST_LIBSTDC++) 72 $(HOST_LIBROOT) $(fsShellCommandLibs) uuid 73; 74 75SEARCH on [ FGristFiles $(utilitySources) ] 76 += [ FDirName $(HAIKU_TOP) src system kernel util ] ; 77SEARCH on [ FGristFiles DebugSupport.cpp ] 78 += [ FDirName $(HAIKU_TOP) src add-ons kernel file_systems shared ] ; 79 80SEARCH on [ FGristFiles DeviceOpener.cpp ] 81 += [ FDirName $(HAIKU_TOP) src add-ons kernel file_systems shared ] ; 82