1SubDir HAIKU_TOP src system libroot os arch x86 ;
2
3local architectureObject ;
4for architectureObject in [ MultiArchSubDirSetup x86 x86_gcc2 ] {
5	on $(architectureObject) {
6		local architecture = $(TARGET_PACKAGING_ARCH) ;
7
8		UsePrivateKernelHeaders ;
9			# TODO: Replace by "UsePrivateHeaders libroot" after resolving the
10			# TODO in time.c!
11		UsePrivateSystemHeaders ;
12
13		SEARCH_SOURCE += [ FDirName $(SUBDIR) $(DOTDOT) generic ] ;
14
15		local compatibilitySources ;
16		if $(TARGET_GCC_VERSION_$(architecture)[1]) = 2 {
17			compatibilitySources =
18				compatibility.c
19			;
20		}
21
22		MergeObject <$(architecture)>os_arch_$(TARGET_ARCH).o :
23			atomic.S
24			byteorder.S
25			get_stack_frame.S
26			system_info.c
27			system_time_asm.S
28			thread.c
29			time.cpp
30			tls.c
31
32			$(compatibilitySources)
33
34			# sources from generic
35			generic_stack_trace.cpp
36			;
37	}
38}
39