xref: /haiku/src/tools/bfs_shell/Jamfile (revision 746cac055adc6ac3308c7bc2d29040fb95689cc9)
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
27# platform specific libraries
28local fsShellCommandLibs ;
29if ! $(HOST_PLATFORM_BEOS_COMPATIBLE) {
30	fsShellCommandLibs = $(HOST_NETWORK_LIBS) ;
31}
32
33UsePrivateHeaders fs_shell ;
34
35BuildPlatformMain <build>bfs_shell
36	:
37	bfs_disk_system.cpp
38	BlockAllocator.cpp
39	BPlusTree.cpp
40	Attribute.cpp
41	Debug.cpp
42	Index.cpp
43	Inode.cpp
44	Journal.cpp
45	Query.cpp
46	Utility.cpp
47	Volume.cpp
48
49	kernel_interface.cpp
50
51	: <build>fs_shell.a $(libHaikuCompat) $(HOST_LIBSUPC++) $(HOST_LIBSTDC++)
52	  $(HOST_LIBROOT) $(fsShellCommandLibs)
53;
54