xref: /haiku/src/system/libroot/os/Jamfile (revision 71452e98334eaac603bf542d159e24788a46bebb)
1SubDir HAIKU_TOP src system libroot os ;
2
3UsePrivateHeaders kernel ;
4	# for util/KMessage.h
5UsePrivateHeaders app 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			launch.cpp
32			memory.cpp
33			parsedate.cpp
34			port.c
35			scheduler.c
36			sem.c
37			system_info.cpp
38			system_revision.c
39			team.c
40			thread.c
41			time.cpp
42			syscalls.S
43			wait_for_objects.cpp
44
45			# locks
46			init_once.cpp
47			mutex.cpp
48			recursive_lock.cpp
49			rw_lock.cpp
50
51			KMessage.cpp
52			;
53
54		SEARCH on [ FGristFiles KMessage.cpp ]
55			= [ FDirName $(HAIKU_TOP) src system kernel messaging ] ;
56
57		# We need to specify the dependency on the generated syscalls file
58		# explicitly.
59		Depends [ FGristFiles syscalls.o ]
60			: <syscalls!$(architecture)>syscalls.S.inc ;
61	}
62}
63
64local arch ;
65for arch in $(TARGET_ARCHS) {
66	HaikuSubInclude arch $(arch) ;
67}
68