1# Since we also build a big-endian version of BFS,
2# this file is also included by the Jamfile in ../bfs_big/.
3
4# set some additional defines
5{
6	local defines =
7		BFS_DEBUGGER_COMMANDS
8		;
9
10	if $(SUBDIR:B) = bfs_big {
11		defines += BFS_BIG_ENDIAN_ONLY ;
12		SubDirHdrs $(HAIKU_TOP) src add-ons kernel file_systems bfs ;
13	}
14
15	if $(TARGET_KERNEL_ARCH) = x86_gcc2 {
16		# GCC2 doesn't compile BFS correctly with -O2 or more
17		OPTIM = -O1 ;
18	}
19
20	defines = [ FDefines $(defines) ] ;
21	SubDirCcFlags $(defines) ;
22	SubDirC++Flags $(defines) ;
23}
24
25UsePrivateKernelHeaders ;
26UsePrivateHeaders [ FDirName kernel disk_device_manager ] ;
27UsePrivateHeaders shared storage ;
28
29local bfsSources =
30	bfs_disk_system.cpp
31	BlockAllocator.cpp
32	BPlusTree.cpp
33	kernel_cpp.cpp
34	Attribute.cpp
35	CheckVisitor.cpp
36	Debug.cpp
37	DeviceOpener.cpp
38	FileSystemVisitor.cpp
39	Index.cpp
40	Inode.cpp
41	Journal.cpp
42	Query.cpp
43	QueryParserUtils.cpp
44	ResizeVisitor.cpp
45	Volume.cpp
46
47	kernel_interface.cpp
48	;
49
50KernelAddon $(SUBDIR:B) :
51	$(bfsSources)
52	;
53
54SEARCH on [ FGristFiles $(bfsSources) ]
55	= [ FDirName $(HAIKU_TOP) src add-ons kernel file_systems bfs ] ;
56
57SEARCH on [ FGristFiles kernel_cpp.cpp ]
58	= [ FDirName $(HAIKU_TOP) src system kernel util ] ;
59
60SEARCH on [ FGristFiles QueryParserUtils.cpp DeviceOpener.cpp ]
61	+= [ FDirName $(HAIKU_TOP) src add-ons kernel file_systems shared ] ;
62