1 SubDir HAIKU_TOP src tools btrfs_shell ;
3 SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src add-ons kernel file_systems btrfs ] ;
5 # prevent inclusion of HaikuBuildCompatibility.h
6 DEFINES += HAIKU_BUILD_COMPATIBILITY_H ;
8 # set some additional defines
11 #BTRFS_BIG_ENDIAN_ONLY
13 TRACE_BTRFS # ENABLE DEBUGGING
16 defines = [ FDefines $(defines) ] ;
17 SubDirCcFlags $(defines) -Wno-multichar ;
18 SubDirC++Flags $(defines) -Wno-multichar -fno-rtti ;
19 HOST_LINKFLAGS += -lz ; # zlib link
23 # platform specific libraries
24 local fsShellCommandLibs ;
25 if ! $(HOST_PLATFORM_BEOS_COMPATIBLE) {
26 fsShellCommandLibs = $(HOST_NETWORK_LIBS) ;
29 UseHeaders [ FDirName $(HAIKU_TOP) headers build ] : true ;
30 UseHeaders [ FDirName $(HAIKU_TOP) headers build os ] : true ;
31 UseHeaders [ FDirName $(HAIKU_TOP) headers build os support ] : true ;
33 UsePrivateKernelHeaders ;
34 UsePrivateHeaders shared storage fs_shell ;
35 UseHeaders [ FDirName $(HAIKU_TOP) headers private ] : true ;
36 UseHeaders [ FDirName $(HAIKU_TOP) src tools fs_shell ] ;
52 local utilitySources =
56 BuildPlatformMergeObject <build>btrfs.o : $(btrfsSources) $(utilitySources) ;
58 BuildPlatformMain <build>btrfs_shell
60 additional_commands.cpp
64 <build>fs_shell.a $(HOST_LIBSUPC++) $(HOST_LIBSTDC++)
65 $(HOST_LIBROOT) $(fsShellCommandLibs)
68 SEARCH on [ FGristFiles $(utilitySources) ]
69 += [ FDirName $(HAIKU_TOP) src system kernel util ] ;