1SubDir HAIKU_TOP src add-ons kernel file_systems bfs ; 2 3# save original optimization level 4oldOPTIM = $(OPTIM) ; 5 6# R5 support is currently disabled! 7# 8# Have a look in src/tests/add-ons/kernel/file_systems/bfs/r5/ 9# for an R5 compatible version. 10# In order to make the current BFS version R5 compatible again, 11# we would need to port over the Haiku cache API to R5. 12 13# set some additional defines 14{ 15 local defines = 16 UNSAFE_GET_VNODE 17 #BFS_BIG_ENDIAN_ONLY 18 ; 19 20 if $(DEBUG) = 0 { 21 # the gcc on BeOS doesn't compile BFS correctly with -O2 or more 22 OPTIM = -O1 ; 23 } 24 25 defines = [ FDefines $(defines) ] ; 26 SubDirCcFlags $(defines) -Wall -Wno-multichar ; 27 SubDirC++Flags $(defines) -Wall -Wno-multichar -fno-rtti ; 28} 29 30UsePrivateHeaders [ FDirName kernel ] ; # For kernel_cpp.cpp 31UsePrivateHeaders [ FDirName kernel disk_device_manager ] ; 32UsePrivateHeaders [ FDirName storage ] ; 33 34KernelAddon bfs : kernel file_systems : 35 BlockAllocator.cpp 36 BPlusTree.cpp 37 kernel_cpp.cpp 38 Attribute.cpp 39 Debug.cpp 40 Index.cpp 41 Inode.cpp 42 Journal.cpp 43 Query.cpp 44 Utility.cpp 45 Volume.cpp 46 47 kernel_interface.cpp 48 ; 49 50SEARCH on [ FGristFiles 51 kernel_cpp.cpp 52 ] = [ FDirName $(HAIKU_TOP) src system kernel util ] ; 53 54# restore original optimization level 55OPTIM = $(oldOPTIM) ; 56