xref: /haiku/src/system/kernel/lib/arch/x86/Jamfile (revision b55a57da7173b9af0432bd3e148d03f06161d036)
1SubDir HAIKU_TOP src system kernel lib arch x86 ;
2
3# find the generated asm_offsets.h
4SubDirHdrs [ FDirName $(TARGET_COMMON_DEBUG_OBJECT_DIR) system kernel arch
5	$(TARGET_ARCH) ] ;
6
7SEARCH_SOURCE += [ FDirName $(SUBDIR) $(DOTDOT) generic ] ;
8
9local librootSources = [ FDirName $(HAIKU_TOP) src system libroot ] ;
10local posixSources = [ FDirName $(librootSources) posix ] ;
11
12SEARCH_SOURCE += [ FDirName $(librootSources) os arch $(TARGET_ARCH) ] ;
13
14KernelMergeObject kernel_os_arch_$(TARGET_ARCH).o :
15	atomic.S
16	byteorder.S
17	system_time_asm.S
18	system_time.c
19
20	: $(TARGET_KERNEL_PIC_CCFLAGS)
21;
22
23SEARCH_SOURCE += [ FDirName $(posixSources) arch $(TARGET_ARCH) ] ;
24SEARCH_SOURCE += [ FDirName $(posixSources) string arch generic ] ;
25
26KernelMergeObject kernel_lib_posix_arch_$(TARGET_ARCH).o :
27	siglongjmp.S
28	sigsetjmp.S
29	kernel_longjmp_return.c
30	kernel_setjmp_save_sigs.c
31
32	arch_string.S
33
34	: $(TARGET_KERNEL_PIC_CCFLAGS)
35;
36
37# Explicitly tell the build system that arch_string.S includes the generated
38# asm_offsets.h.
39Includes [ FGristFiles arch_string.S ]
40	: <src!system!kernel!arch!x86>asm_offsets.h ;
41