1SubDir HAIKU_TOP src tools fs_shell ; 2 3UseHeaders [ FDirName $(HAIKU_TOP) headers build ] : true ; 4 5if ! $(HOST_PLATFORM_BEOS_COMPATIBLE) { 6 UseHeaders [ FDirName $(HAIKU_TOP) headers build os ] : true ; 7 #UseHeaders [ FDirName $(HAIKU_TOP) headers build os app ] : true ; 8 UseHeaders [ FDirName $(HAIKU_TOP) headers build os kernel ] : true ; 9 #UseHeaders [ FDirName $(HAIKU_TOP) headers build os interface ] : true ; 10 UseHeaders [ FDirName $(HAIKU_TOP) headers build os storage ] : true ; 11 UseHeaders [ FDirName $(HAIKU_TOP) headers build os support ] : true ; 12} 13 14UsePrivateHeaders fs_shell ; 15UsePrivateHeaders shared ; 16 17DEFINES += FS_SHELL=1 ; 18 19# prevent inclusion of HaikuBuildCompatibility.h 20DEFINES += HAIKU_BUILD_COMPATIBILITY_H ; 21 22# platform specific sources/libraries 23local fsShellCommandSources ; 24local externalCommandsSources ; 25local fsShellCommandLibs ; 26if $(HOST_PLATFORM_BEOS_COMPATIBLE) { 27 fsShellCommandSources = fs_shell_command_beos.cpp ; 28 externalCommandsSources = external_commands_beos.cpp ; 29} else { 30 fsShellCommandSources = fs_shell_command_unix.cpp ; 31 externalCommandsSources = external_commands_unix.cpp ; 32 fsShellCommandLibs = $(HOST_NETWORK_LIBS) ; 33} 34 35local kernelEmulationSources = 36 atomic.cpp 37 block_cache.cpp 38 byte_order.cpp 39 command_cp.cpp 40 disk_device_manager.cpp 41 driver_settings.cpp 42 errno.cpp 43 fcntl.cpp 44 fd.cpp 45 file_cache.cpp 46 file_map.cpp 47 kernel_export.cpp 48 KPath.cpp 49 hash.cpp 50 list.cpp 51 lock.cpp 52 module.cpp 53 node_monitor.cpp 54 partition_support.cpp 55 path_util.cpp 56 rootfs.cpp 57 sem.cpp 58 stat.cpp 59 stat_util.cpp 60 stdio.cpp 61 string.cpp 62 thread.cpp 63 time.cpp 64 uio.cpp 65 unistd.cpp 66 vfs.cpp 67; 68 69BuildPlatformMergeObject <build>fs_shell_kernel.o : $(kernelEmulationSources) ; 70 71BuildPlatformStaticLibrary <build>fuse_module.a : 72 $(externalCommandsSources) 73 74 fuse.cpp 75 : <build>fs_shell_kernel.o 76; 77 78BuildPlatformStaticLibrary <build>fs_shell.a : 79 $(externalCommandsSources) 80 81 fssh.cpp 82 : <build>fs_shell_kernel.o 83; 84 85SEARCH on [ FGristFiles rootfs.cpp ] 86 = [ FDirName $(HAIKU_TOP) src system kernel fs ] ; 87 88BuildPlatformMain <build>fs_shell_command 89 : fs_shell_command.cpp $(fsShellCommandSources) 90 : $(HOST_LIBSTDC++) $(HOST_LIBSUPC++) $(fsShellCommandLibs) ; 91 92