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