xref: /haiku/src/system/kernel/lib/arch/x86_64/Jamfile (revision 6d70d75a8e4f7c15eee4bc7ef666e62b48297631)
1f76bc433SAlex SmithSubDir HAIKU_TOP src system kernel lib arch x86_64 ;
2f76bc433SAlex Smith
35234e66dSAlex Smith# find the generated asm_offsets.h
4b0944c78SIngo WeinholdSubDirHdrs [ FDirName $(TARGET_COMMON_DEBUG_OBJECT_DIR_$(TARGET_PACKAGING_ARCH))
5b0944c78SIngo Weinhold	system kernel arch $(TARGET_KERNEL_ARCH) ] ;
65234e66dSAlex Smith
7f76bc433SAlex SmithSEARCH_SOURCE += [ FDirName $(SUBDIR) $(DOTDOT) generic ] ;
8f76bc433SAlex Smith
9f76bc433SAlex Smithlocal librootSources = [ FDirName $(HAIKU_TOP) src system libroot ] ;
10f76bc433SAlex Smithlocal posixSources = [ FDirName $(librootSources) posix ] ;
11f76bc433SAlex Smith
12f76bc433SAlex SmithSEARCH_SOURCE += [ FDirName $(librootSources) os arch $(TARGET_ARCH) ] ;
13d3b1caa6SPaweł DziepakSEARCH_SOURCE += [ FDirName $(librootSources) os arch generic ] ;
14f76bc433SAlex Smith
15f76bc433SAlex SmithKernelMergeObject kernel_os_arch_$(TARGET_ARCH).o :
16f76bc433SAlex Smith	byteorder.S
17*6d70d75aSPaweł Dziepak	system_time.cpp
18f76bc433SAlex Smith
19d3b1caa6SPaweł Dziepak	generic_atomic.cpp
20f76bc433SAlex Smith	: $(TARGET_KERNEL_PIC_CCFLAGS)
21f76bc433SAlex Smith;
22f76bc433SAlex Smith
23f76bc433SAlex SmithSEARCH_SOURCE += [ FDirName $(posixSources) arch $(TARGET_ARCH) ] ;
24f76bc433SAlex Smith
25f76bc433SAlex SmithKernelMergeObject kernel_lib_posix_arch_$(TARGET_ARCH).o :
26f76bc433SAlex Smith	siglongjmp.S
27f76bc433SAlex Smith	sigsetjmp.S
28f76bc433SAlex Smith	kernel_longjmp_return.c
29f76bc433SAlex Smith	kernel_setjmp_save_sigs.c
30f76bc433SAlex Smith
315234e66dSAlex Smith	arch_string.S
32f76bc433SAlex Smith
33f76bc433SAlex Smith	: $(TARGET_KERNEL_PIC_CCFLAGS)
34f76bc433SAlex Smith;
355234e66dSAlex Smith
365234e66dSAlex Smith# Explicitly tell the build system that arch_string.S includes the generated
375234e66dSAlex Smith# asm_offsets.h.
385234e66dSAlex SmithIncludes [ FGristFiles arch_string.S ]
395234e66dSAlex Smith	: <src!system!kernel!arch!x86>asm_offsets.h ;
40