1338b8dc3SIngo WeinholdSubDir HAIKU_TOP src system libroot os arch x86 ;
2712ec3d7SAxel Dörfler
3b0944c78SIngo Weinholdlocal architectureObject ;
4b0944c78SIngo Weinholdfor architectureObject in [ MultiArchSubDirSetup x86 x86_gcc2 ] {
5b0944c78SIngo Weinhold	on $(architectureObject) {
6b0944c78SIngo Weinhold		local architecture = $(TARGET_PACKAGING_ARCH) ;
7353d20c0SIngo Weinhold
8b0944c78SIngo Weinhold		UsePrivateKernelHeaders ;
9b0944c78SIngo Weinhold			# TODO: Replace by "UsePrivateHeaders libroot" after resolving the
10b0944c78SIngo Weinhold			# TODO in time.c!
11b0944c78SIngo Weinhold		UsePrivateSystemHeaders ;
12b0944c78SIngo Weinhold
13936e89e1SAugustin Cavalier		SEARCH_SOURCE += [ FDirName $(SUBDIR) $(DOTDOT) generic ] ;
14936e89e1SAugustin Cavalier
15b0944c78SIngo Weinhold		local compatibilitySources ;
16b0944c78SIngo Weinhold		if $(TARGET_GCC_VERSION_$(architecture)[1]) = 2 {
17b0944c78SIngo Weinhold			compatibilitySources =
18b0944c78SIngo Weinhold				compatibility.c
19b0944c78SIngo Weinhold			;
20b0944c78SIngo Weinhold		}
2158e784dfSIngo Weinhold
22b0944c78SIngo Weinhold		MergeObject <$(architecture)>os_arch_$(TARGET_ARCH).o :
23b0944c78SIngo Weinhold			atomic.S
24b0944c78SIngo Weinhold			byteorder.S
25b0944c78SIngo Weinhold			get_stack_frame.S
26b0944c78SIngo Weinhold			system_info.c
27b0944c78SIngo Weinhold			system_time_asm.S
28b0944c78SIngo Weinhold			thread.c
29b0944c78SIngo Weinhold			time.cpp
30b0944c78SIngo Weinhold			tls.c
3158e784dfSIngo Weinhold
32b0944c78SIngo Weinhold			$(compatibilitySources)
33c012e7e9SMichael Lotz
34936e89e1SAugustin Cavalier			# sources from generic
35936e89e1SAugustin Cavalier			generic_stack_trace.cpp
36b0944c78SIngo Weinhold			;
37b0944c78SIngo Weinhold	}
38b0944c78SIngo Weinhold}
39