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