xref: /haiku/src/add-ons/kernel/file_systems/bfs/JamCommon (revision 9d010ea47db677131e385b5e7855d38fd0c8103f)
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_PACKAGING_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	FileSystemVisitor.cpp
38	Index.cpp
39	Inode.cpp
40	Journal.cpp
41	Query.cpp
42	QueryParserUtils.cpp
43	Volume.cpp
44
45	kernel_interface.cpp
46	;
47
48KernelAddon $(SUBDIR:B) :
49	$(bfsSources)
50	;
51
52SEARCH on [ FGristFiles $(bfsSources) ]
53	= [ FDirName $(HAIKU_TOP) src add-ons kernel file_systems bfs ] ;
54
55SEARCH on [ FGristFiles kernel_cpp.cpp ]
56	= [ FDirName $(HAIKU_TOP) src system kernel util ] ;
57
58SEARCH on [ FGristFiles QueryParserUtils.cpp ]
59	+= [ FDirName $(HAIKU_TOP) src add-ons kernel file_systems shared ] ;
60