1SubDir OBOS_TOP src add-ons kernel file_systems bfs ; 2 3# save original optimization level 4oldOPTIM = $(OPTIM) ; 5 6# set some additional defines 7{ 8 local defines = 9 KEEP_WRONG_DIRENT_RECLEN 10 UNSAFE_GET_VNODE 11 #BFS_BIG_ENDIAN_ONLY 12 ; 13 14 if $(COMPILE_FOR_R5) { 15 defines += COMPILE_FOR_R5 ; 16 } 17 18 if $(DEBUG) = 0 { 19 # the gcc on BeOS doesn't compile BFS correctly with -O2 or more 20 OPTIM = -O1 ; 21 } 22 23 defines = [ FDefines $(defines) ] ; 24 SubDirCcFlags $(defines) -Wall -Wno-multichar ; 25 SubDirC++Flags $(defines) -Wall -Wno-multichar ; 26} 27 28UsePrivateHeaders [ FDirName kernel util ] ; # For kernel_cpp.cpp 29 30R5KernelAddon obfs : [ FDirName kernel file_systems bfs ] : 31 BlockAllocator.cpp 32 BPlusTree.cpp 33 kernel_cpp.cpp 34 Debug.cpp 35 Index.cpp 36 Inode.cpp 37 Journal.cpp 38 kernel_interface.cpp 39 Query.cpp 40 Utility.cpp 41 Volume.cpp 42 BufferPool.cpp 43 ; 44 45SEARCH on [ FGristFiles 46 kernel_cpp.cpp 47 ] = [ FDirName $(OBOS_TOP) src kernel core util ] ; 48 49#----------------------------------------------------- 50 51rule InstallBFS 52{ 53 Depends $(<) : $(>) ; 54} 55 56actions ignore InstallBFS 57{ 58 cp $(>) /boot/home/config/add-ons/kernel/file_systems/ 59} 60 61InstallBFS install : obfs ; 62 63# restore original optimization level 64OPTIM = $(oldOPTIM) ; 65