xref: /haiku/src/tools/bfs_shell/Jamfile (revision 981f1b1135291a4fca290fbdf69910dc2f24abdd)
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
35local bfsSource =
36	bfs_disk_system.cpp
37	BlockAllocator.cpp
38	BPlusTree.cpp
39	Attribute.cpp
40	Debug.cpp
41	Index.cpp
42	Inode.cpp
43	Journal.cpp
44	Query.cpp
45	Utility.cpp
46	Volume.cpp
47
48	kernel_interface.cpp
49;
50
51BuildPlatformMain <build>bfs_shell
52	:
53	$(bfsSource)
54
55	: <build>fs_shell.a $(libHaikuCompat) $(HOST_LIBSUPC++) $(HOST_LIBSTDC++)
56	  $(HOST_LIBROOT) $(fsShellCommandLibs)
57;
58
59BuildPlatformMain <build>bfs_fuse
60	:
61	$(bfsSource)
62
63	: <build>fuse_module.a $(libHaikuCompat) $(HOST_LIBSUPC++) $(HOST_LIBSTDC++)
64	  $(HOST_STATIC_LIBROOT) $(fsShellCommandLibs) fuse
65;
66