xref: /haiku/src/system/libroot/os/Jamfile (revision 4a3268e14fff4dd5a456d824b48ce6503368e4c1)
1SubDir HAIKU_TOP src system libroot os ;
2
3UsePrivateHeaders kernel ;
4	# for util/KMessage.h
5UsePrivateHeaders libroot runtime_loader shared ;
6
7local architectureObject ;
8for architectureObject in [ MultiArchSubDirSetup ] {
9	on $(architectureObject) {
10		local architecture = $(TARGET_PACKAGING_ARCH) ;
11
12		UsePrivateSystemHeaders ;
13
14		SEARCH_SOURCE += [ FDirName $(SUBDIR) locks ] ;
15
16		MergeObject <$(architecture)>os_main.o :
17			Architecture.cpp
18			area.c
19			atomic.c
20			debug.c
21			driver_settings.cpp
22			extended_system_info.cpp
23			find_directory.cpp
24			find_paths.cpp
25			fs_attr.cpp
26			fs_index.c
27			fs_info.c
28			fs_query.cpp
29			fs_volume.c
30			image.cpp
31			memory.cpp
32			parsedate.cpp
33			port.c
34			scheduler.c
35			sem.c
36			system_info.c
37			system_revision.c
38			team.c
39			thread.c
40			time.cpp
41			syscalls.S
42			wait_for_objects.cpp
43
44			# locks
45			init_once.cpp
46			mutex.cpp
47			recursive_lock.cpp
48			rw_lock.cpp
49
50			KMessage.cpp
51			;
52
53		SEARCH on [ FGristFiles KMessage.cpp ]
54			= [ FDirName $(HAIKU_TOP) src system kernel messaging ] ;
55
56		# We need to specify the dependency on the generated syscalls file
57		# explicitly.
58		Depends [ FGristFiles syscalls.o ]
59			: <syscalls!$(architecture)>syscalls.S.inc ;
60	}
61}
62
63local arch ;
64for arch in $(TARGET_ARCHS) {
65	HaikuSubInclude arch $(arch) ;
66}
67