xref: /haiku/src/system/kernel/lib/arch/x86_64/Jamfile (revision 002f37b0cca92e4cf72857c72ac95db5a8b09615)
1SubDir HAIKU_TOP src system kernel lib arch x86_64 ;
2
3# find the generated asm_offsets.h
4SubDirHdrs [ FDirName $(TARGET_COMMON_DEBUG_OBJECT_DIR_$(TARGET_PACKAGING_ARCH))
5	system kernel arch $(TARGET_KERNEL_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) ] ;
24
25KernelMergeObject kernel_lib_posix_arch_$(TARGET_ARCH).o :
26	siglongjmp.S
27	sigsetjmp.S
28	kernel_longjmp_return.c
29	kernel_setjmp_save_sigs.c
30
31	arch_string.S
32
33	: $(TARGET_KERNEL_PIC_CCFLAGS)
34;
35
36# Explicitly tell the build system that arch_string.S includes the generated
37# asm_offsets.h.
38Includes [ FGristFiles arch_string.S ]
39	: <src!system!kernel!arch!x86>asm_offsets.h ;
40