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.cpp
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			stack_protector.cpp
38			system_info.cpp
39			system_revision.c
40			team.c
41			thread.c
42			time.cpp
43			syscalls.S
44			wait_for_objects.cpp
45
46			# locks
47			init_once.cpp
48			mutex.cpp
49			recursive_lock.cpp
50			rw_lock.cpp
51
52			KMessage.cpp
53			;
54
55		SEARCH on [ FGristFiles KMessage.cpp ]
56			= [ FDirName $(HAIKU_TOP) src system kernel messaging ] ;
57
58		# We need to specify the dependency on the generated syscalls file
59		# explicitly.
60		Depends [ FGristFiles syscalls.o ]
61			: <syscalls!$(architecture)>syscalls.S.inc ;
62	}
63}
64
65local arch ;
66for arch in $(TARGET_ARCHS) {
67	HaikuSubInclude arch $(arch) ;
68}
69