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 17local defines = [ FDefines FS_SHELL=1 ] ; 18SubDirCcFlags $(defines) ; 19SubDirC++Flags $(defines) ; 20 21# platform specific sources 22local fsShellCommandSources ; 23local externalCommandsSources ; 24if $(HOST_PLATFORM_BEOS_COMPATIBLE) { 25 fsShellCommandSources = fs_shell_command_beos.cpp ; 26 externalCommandsSources = external_commands_beos.cpp ; 27} else { 28 fsShellCommandSources = fs_shell_command_unix.cpp ; 29 externalCommandsSources = external_commands_unix.cpp ; 30} 31 32BuildPlatformStaticLibrary <build>fs_shell.a : 33 atomic.cpp 34 block_cache.cpp 35 command_cp.cpp 36 disk_device_manager.cpp 37 driver_settings.cpp 38 errno.cpp 39 fcntl.cpp 40 fd.cpp 41 file_cache.cpp 42 file_map.cpp 43 kernel_export.cpp 44 KPath.cpp 45 hash.cpp 46 list.cpp 47 lock.cpp 48 module.cpp 49 node_monitor.cpp 50 partition_support.cpp 51 path_util.cpp 52 rootfs.cpp 53 sem.cpp 54 stat.cpp 55 stat_util.cpp 56 stdio.cpp 57 string.cpp 58 thread.cpp 59 time.cpp 60 uio.cpp 61 unistd.cpp 62 vfs.cpp 63 64 $(externalCommandsSources) 65 66 fssh.cpp 67; 68 69SEARCH on [ FGristFiles rootfs.cpp ] 70 = [ FDirName $(HAIKU_TOP) src system kernel fs ] ; 71 72BuildPlatformMain <build>fs_shell_command 73 : fs_shell_command.cpp $(fsShellCommandSources) 74 : $(HOST_LIBSTDC++) $(HOST_LIBSUPC++) ; 75