xref: /haiku/src/tools/bfs_shell/Jamfile (revision d9cebac2b77547b7064f22497514eecd2d047160)
1SubDir HAIKU_TOP src tools bfs_shell ;
2
3SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src add-ons kernel file_systems bfs ] ;
4
5# set some additional defines
6{
7	local defines =
8		#BFS_BIG_ENDIAN_ONLY
9		BFS_SHELL
10		;
11
12	if $(DEBUG) = 0 {
13		# the gcc on BeOS doesn't compile BFS correctly with -O2 or more
14		OPTIM = -O1 ;
15	}
16
17	defines = [ FDefines $(defines) ] ;
18	SubDirCcFlags $(defines) -Wall -Wno-multichar ;
19	SubDirC++Flags $(defines) -Wall -Wno-multichar -fno-rtti ;
20}
21
22local libHaikuCompat ;
23if $(HOST_PLATFORM_BEOS_COMPATIBLE) && ! $(HOST_PLATFORM_HAIKU_COMPATIBLE) {
24	libHaikuCompat = libhaikucompat_build.a ;
25}
26
27UsePrivateHeaders fs_shell ;
28
29BuildPlatformMain <build>bfs_shell
30	:
31	BlockAllocator.cpp
32	BPlusTree.cpp
33	Attribute.cpp
34	Debug.cpp
35	Index.cpp
36	Inode.cpp
37	Journal.cpp
38	Query.cpp
39	Utility.cpp
40	Volume.cpp
41
42	kernel_interface.cpp
43
44	: <build>fs_shell.a $(libHaikuCompat) $(HOST_LIBSUPC++) $(HOST_LIBSTDC++)
45	  $(HOST_LIBROOT)
46;
47