SubDir HAIKU_TOP src tests add-ons kernel file_systems btrfs btrfs_shell ; SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src add-ons kernel file_systems btrfs ] ; # prevent inclusion of HaikuBuildCompatibility.h DEFINES += HAIKU_BUILD_COMPATIBILITY_H ; # set some additional defines { local defines = FS_SHELL TRACE_BTRFS # ENABLE DEBUGGING ; defines = [ FDefines $(defines) ] ; SubDirCcFlags $(defines) -Wno-multichar ; SubDirC++Flags $(defines) -Wno-multichar -fno-rtti ; HOST_LINKFLAGS += -lz ; # zlib link } # platform specific libraries local fsShellCommandLibs ; if ! $(HOST_PLATFORM_BEOS_COMPATIBLE) { fsShellCommandLibs = $(HOST_NETWORK_LIBS) ; } UseHeaders [ FDirName $(HAIKU_TOP) headers build ] : true ; UseHeaders [ FDirName $(HAIKU_TOP) headers build os ] : true ; UseHeaders [ FDirName $(HAIKU_TOP) headers build os support ] : true ; UsePrivateKernelHeaders ; UsePrivateHeaders shared storage fs_shell ; UseHeaders [ FDirName $(HAIKU_TOP) headers private ] : true ; UseHeaders [ FDirName $(HAIKU_TOP) src tools fs_shell ] ; local btrfsSources = Attribute.cpp AttributeIterator.cpp BTree.cpp Chunk.cpp CRCTable.cpp DirectoryIterator.cpp ExtentAllocator.cpp Inode.cpp Journal.cpp Volume.cpp kernel_interface.cpp ; local utilitySources = AVLTreeBase.cpp ; BuildPlatformMergeObject btrfs.o : $(btrfsSources) $(utilitySources) ; BuildPlatformMain btrfs_shell : # no extra files : btrfs.o fs_shell.a $(HOST_LIBSUPC++) $(HOST_LIBSTDC++) $(HOST_LIBROOT) $(fsShellCommandLibs) ; SEARCH on [ FGristFiles $(utilitySources) ] += [ FDirName $(HAIKU_TOP) src system kernel util ] ;