xref: /haiku/src/tools/fs_shell/Jamfile (revision 4d121ec0678890dc6c2b19bdf11a7b9e02785462)
1a38a92c9SIngo WeinholdSubDir HAIKU_TOP src tools fs_shell ;
2a38a92c9SIngo Weinhold
3a38a92c9SIngo WeinholdUseHeaders [ FDirName $(HAIKU_TOP) headers build ] : true ;
4655195feSIngo Weinhold
5655195feSIngo Weinholdif ! $(HOST_PLATFORM_BEOS_COMPATIBLE) {
6a38a92c9SIngo Weinhold	UseHeaders [ FDirName $(HAIKU_TOP) headers build os ] : true ;
7a38a92c9SIngo Weinhold	#UseHeaders [ FDirName $(HAIKU_TOP) headers build os app ] : true ;
8a38a92c9SIngo Weinhold	UseHeaders [ FDirName $(HAIKU_TOP) headers build os kernel ] : true ;
9a38a92c9SIngo Weinhold	#UseHeaders [ FDirName $(HAIKU_TOP) headers build os interface ] : true ;
10a38a92c9SIngo Weinhold	UseHeaders [ FDirName $(HAIKU_TOP) headers build os storage ] : true ;
11a38a92c9SIngo Weinhold	UseHeaders [ FDirName $(HAIKU_TOP) headers build os support ] : true ;
12655195feSIngo Weinhold}
13a38a92c9SIngo Weinhold
14a38a92c9SIngo WeinholdUsePrivateHeaders fs_shell ;
15fd62d01fSIngo WeinholdUsePrivateHeaders shared ;
16a38a92c9SIngo Weinhold
176f057874SIngo Weinholdlocal defines = [ FDefines FS_SHELL=1 ] ;
186f057874SIngo WeinholdSubDirCcFlags $(defines) ;
196f057874SIngo WeinholdSubDirC++Flags $(defines) ;
206f057874SIngo Weinhold
21*4d121ec0SIngo Weinhold# platform specific sources/libraries
22f6233d23SIngo Weinholdlocal fsShellCommandSources ;
23f6233d23SIngo Weinholdlocal externalCommandsSources ;
24*4d121ec0SIngo Weinholdlocal fsShellCommandLibs ;
25f6233d23SIngo Weinholdif $(HOST_PLATFORM_BEOS_COMPATIBLE) {
26f6233d23SIngo Weinhold	fsShellCommandSources = fs_shell_command_beos.cpp ;
27f6233d23SIngo Weinhold	externalCommandsSources = external_commands_beos.cpp ;
28f6233d23SIngo Weinhold} else {
29f6233d23SIngo Weinhold	fsShellCommandSources = fs_shell_command_unix.cpp ;
30f6233d23SIngo Weinhold	externalCommandsSources = external_commands_unix.cpp ;
31*4d121ec0SIngo Weinhold	fsShellCommandLibs = $(HOST_NETWORK_LIBS) ;
32f6233d23SIngo Weinhold}
33f6233d23SIngo Weinhold
34ca6586d9SIngo WeinholdBuildPlatformStaticLibrary <build>fs_shell.a :
35a38a92c9SIngo Weinhold	atomic.cpp
36a38a92c9SIngo Weinhold	block_cache.cpp
3742d3fc04SIngo Weinhold	byte_order.cpp
38fd62d01fSIngo Weinhold	command_cp.cpp
398c8f8c84SIngo Weinhold	disk_device_manager.cpp
40eedc1553SIngo Weinhold	driver_settings.cpp
41a38a92c9SIngo Weinhold	errno.cpp
42a38a92c9SIngo Weinhold	fcntl.cpp
43a38a92c9SIngo Weinhold	fd.cpp
44a38a92c9SIngo Weinhold	file_cache.cpp
453d268edaSAxel Dörfler	file_map.cpp
46a38a92c9SIngo Weinhold	kernel_export.cpp
47a38a92c9SIngo Weinhold	KPath.cpp
48a38a92c9SIngo Weinhold	hash.cpp
49a38a92c9SIngo Weinhold	list.cpp
50a38a92c9SIngo Weinhold	lock.cpp
5190c08768SIngo Weinhold	module.cpp
52a38a92c9SIngo Weinhold	node_monitor.cpp
533e617040SIngo Weinhold	partition_support.cpp
544f7504e3SIngo Weinhold	path_util.cpp
5590c08768SIngo Weinhold	rootfs.cpp
56a38a92c9SIngo Weinhold	sem.cpp
57a38a92c9SIngo Weinhold	stat.cpp
58a38a92c9SIngo Weinhold	stat_util.cpp
59a38a92c9SIngo Weinhold	stdio.cpp
60a38a92c9SIngo Weinhold	string.cpp
61a38a92c9SIngo Weinhold	thread.cpp
62a38a92c9SIngo Weinhold	time.cpp
63a38a92c9SIngo Weinhold	uio.cpp
64a38a92c9SIngo Weinhold	unistd.cpp
65a38a92c9SIngo Weinhold	vfs.cpp
66a38a92c9SIngo Weinhold
67f6233d23SIngo Weinhold	$(externalCommandsSources)
68f6233d23SIngo Weinhold
69a38a92c9SIngo Weinhold	fssh.cpp
70a38a92c9SIngo Weinhold;
71f6233d23SIngo Weinhold
726f057874SIngo WeinholdSEARCH on [ FGristFiles rootfs.cpp ]
736f057874SIngo Weinhold	= [ FDirName $(HAIKU_TOP) src system kernel fs ] ;
746f057874SIngo Weinhold
75ca6586d9SIngo WeinholdBuildPlatformMain <build>fs_shell_command
76f6233d23SIngo Weinhold	: fs_shell_command.cpp $(fsShellCommandSources)
77*4d121ec0SIngo Weinhold	: $(HOST_LIBSTDC++) $(HOST_LIBSUPC++) $(fsShellCommandLibs) ;
78*4d121ec0SIngo Weinhold
79