SubDir HAIKU_TOP src tests add-ons kernel file_systems xfs xfs_shell ; SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src add-ons kernel file_systems xfs ] ; SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src add-ons kernel file_systems shared ] ; # prevent inclusion of HaikuBuildCompatibility.h and _BSD_SOURCE headers DEFINES += HAIKU_BUILD_COMPATIBILITY_H __STRICT_ANSI__ ; # set some additional defines { local defines = FS_SHELL ; defines = [ FDefines $(defines) ] ; local c++flags = ; SubDirCcFlags $(defines) -Wno-multichar ; 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 ; UsePrivateHeaders file_systems ; UseHeaders [ FDirName $(HAIKU_TOP) headers private ] : true ; UseHeaders [ FDirName $(HAIKU_TOP) src tools fs_shell ] ; UseHeaders [ FDirName $(HAIKU_TOP) src add-ons kernel file_systems shared ] : true ; local xfsSource = Attribute.cpp BPlusTree.cpp Directory.cpp Extent.cpp Inode.cpp kernel_interface.cpp LeafAttribute.cpp LeafDirectory.cpp Node.cpp NodeAttribute.cpp ShortAttribute.cpp ShortDirectory.cpp Symlink.cpp Volume.cpp xfs.cpp ; local sharedSources = crc32.cpp CRCTable.cpp DeviceOpener.cpp ; BuildPlatformMergeObject xfs_shell.o : $(xfsSource) $(sharedSources) ; BuildPlatformMain xfs_shell : : xfs_shell.o fs_shell.a $(HOST_LIBSUPC++) $(HOST_LIBSTDC++) $(HOST_LIBROOT) $(fsShellCommandLibs) ; BuildPlatformMain xfs_fuse : : xfs_shell.o fuse_module.a $(HOST_LIBSUPC++) $(HOST_LIBSTDC++) $(HOST_STATIC_LIBROOT) $(fsShellCommandLibs) fuse ; SEARCH on [ FGristFiles QueryParserUtils.cpp ] += [ FDirName $(HAIKU_TOP) src add-ons kernel file_systems shared ] ;