SubDir HAIKU_TOP src tests add-ons kernel file_systems bfs btree ;

SubDirHdrs $(HAIKU_TOP) src add-ons kernel file_systems bfs ;

UsePrivateKernelHeaders ;
UsePrivateHeaders shared ;

rule FPreIncludes { return -include\ $(1:D=$(SUBDIR)) ; }

{
	local defines = [ FDefines USER DEBUG ] ; # _NO_INLINE_ASM
	local preIncludes = [ FPreIncludes Journal.h Inode.h ] ;
	SubDirC++Flags $(defines) $(preIncludes) -fno-exceptions ; #-fcheck-memory-usage
}

SimpleTest btreeTest
	: #test.cpp
	  Volume.cpp
	  Inode.cpp
	  cache.cpp
	  BPlusTree.cpp
	  Utility.cpp
	  Debug.cpp
	: be ;

# Tell Jam where to find these sources
SEARCH on [ FGristFiles BPlusTree.cpp Utility.cpp Debug.cpp ]
	= [ FDirName $(HAIKU_TOP) src add-ons kernel file_systems bfs ] ;
