xref: /haiku/src/tools/fat_shell/Jamfile (revision 342a1b221b5bb385410f758df2c625b70cafdd03)
1SubDir HAIKU_TOP src tools fat_shell ;
2
3# prevent inclusion of HaikuBuildCompatibility.h and BSD headers
4DEFINES += HAIKU_BUILD_COMPATIBILITY_H __STRICT_ANSI__ ;
5
6# set some additional defines
7{
8	local defines =
9		FS_SHELL
10		;
11	defines = [ FDefines $(defines) ] ;
12
13	local c++flags =
14		-fno-rtti
15		;
16	if $(HOST_CC_IS_LEGACY_GCC) != 1 {
17		c++flags += -std=c++11 ;
18	}
19
20	SubDirCcFlags $(defines) [ FDefines _FSSH_AUTO_LOCKER_H=1 _FSSH_STACK_H=1 ] ;
21		# prevent inclusion of C++ headers
22	SubDirC++Flags $(defines) $(c++flags) ;
23}
24
25UsePrivateHeaders shared storage file_systems ;
26UsePrivateHeaders fs_shell ;
27UseHeaders [ FDirName $(HAIKU_TOP) src tools fs_shell ] ;
28
29local commonSource ;
30
31include [ FDirName $(HAIKU_TOP) src add-ons kernel file_systems fat JamCommon ] ;
32
33BuildPlatformMergeObject <build>fatfs.o
34	:
35	$(commonSource)
36;
37
38BuildPlatformMain <build>fat_shell
39	: :
40	<build>fatfs.o
41	<build>fs_shell.a
42	$(HOST_LIBSUPC++) $(HOST_LIBSTDC++)
43	$(HOST_LIBROOT)
44	$(fsShellCommandLibs)
45;
46
47BuildPlatformMain <build>fat_fuse
48	: :
49	<build>fatfs.o
50	<build>fuse_module.a
51	$(HOST_LIBSUPC++) $(HOST_LIBSTDC++)
52	$(HOST_STATIC_LIBROOT)
53	$(fsShellCommandLibs) fuse
54;
55