btrfs: Attempt to fix GCC2 build.
[haiku.git] / src / system / kernel / arch / x86 / Jamfile
blobc56cc50eec97d2c3cd709893e373d566d3588619
1 SubDir HAIKU_TOP src system kernel arch x86 ;
3 SubDirHdrs [ FDirName $(TARGET_COMMON_DEBUG_OBJECT_DIR_$(TARGET_PACKAGING_ARCH))
4         system kernel ] ;
5         # for syscall_numbers.h
6 SubDirHdrs $(HAIKU_TOP) src add-ons kernel bus_managers ps2 ;
7 SubDirHdrs $(HAIKU_TOP) src add-ons kernel bus_managers acpi acpica include ;
8 SubDirHdrs $(HAIKU_TOP) src add-ons kernel bus_managers acpi acpica include
9         platform ;
10 SubDirHdrs $(SUBDIR) timers ;
12 UsePrivateKernelHeaders ;
13 UsePrivateHeaders shared ;
15 SEARCH_SOURCE += [ FDirName $(SUBDIR) paging ] ;
16 SEARCH_SOURCE += [ FDirName $(SUBDIR) timers ] ;
18 local archSpecificSources ;
19 if $(TARGET_ARCH) = x86_64 {
20         SEARCH_SOURCE += [ FDirName $(SUBDIR) 64 ] ;
21         SEARCH_SOURCE += [ FDirName $(SUBDIR) paging 64bit ] ;
23         archSpecificSources =
24                 arch.S
25                 cpuid.cpp
26                 descriptors.cpp
27                 interrupts.S
28                 signals.cpp
29                 signals_asm.S
30                 syscalls.cpp
31                 thread.cpp
33                 # paging
34                 x86_physical_page_mapper_mapped.cpp
36                 # paging/64bit
37                 X86PagingMethod64Bit.cpp
38                 X86PagingStructures64Bit.cpp
39                 X86VMTranslationMap64Bit.cpp
40         ;
41 } else {
42         SEARCH_SOURCE += [ FDirName $(SUBDIR) 32 ] ;
43         SEARCH_SOURCE += [ FDirName $(SUBDIR) paging 32bit ] ;
44         SEARCH_SOURCE += [ FDirName $(SUBDIR) paging pae ] ;
46         archSpecificSources =
47                 apm.cpp
48                 arch.S
49                 bios.cpp
50                 cpuid.S
51                 descriptors.cpp
52                 interrupts.S
53                 signals.cpp
54                 signals_asm.S
55                 syscalls.cpp
56                 syscalls_asm.S
57                 thread.cpp
59                 # paging
60                 x86_physical_page_mapper_large_memory.cpp
62                 # paging/32bit
63                 X86PagingMethod32Bit.cpp
64                 X86PagingStructures32Bit.cpp
65                 X86VMTranslationMap32Bit.cpp
67                 # paging/pae
68                 X86PagingMethodPAE.cpp
69                 X86PagingStructuresPAE.cpp
70                 X86VMTranslationMapPAE.cpp
71         ;
74 local archGenericSources =
75         arch_cpu.cpp
76         arch_commpage.cpp
77         arch_debug.cpp
78         arch_debug_console.cpp
79         arch_elf.cpp
80         arch_int.cpp
81         arch_platform.cpp
82         arch_real_time_clock.cpp
83         arch_smp.cpp
84         arch_system_info.cpp
85         arch_thread.cpp
86         arch_timer.cpp
87         arch_user_debugger.cpp
88         arch_vm.cpp
89         arch_vm_translation_map.cpp
90         apic.cpp
91         ioapic.cpp
92         irq_routing_table.cpp
93         msi.cpp
94         pic.cpp
96         # paging
97         X86PagingMethod.cpp
98         X86PagingStructures.cpp
99         X86VMTranslationMap.cpp
101         # timers
102         x86_apic.cpp
103         x86_hpet.cpp
104         x86_pit.cpp
107 KernelMergeObject kernel_arch_x86.o :
108         $(archSpecificSources)
109         $(archGenericSources)
110         :
111         $(TARGET_KERNEL_PIC_CCFLAGS)
114 CreateAsmStructOffsetsHeader asm_offsets.h : asm_offsets.cpp ;
116 # We need to specify the dependency on the generated syscalls file explicitly.
117 Includes [ FGristFiles interrupts.S arch.S signals.cpp signals_asm.S ]
118         : <syscalls!$(TARGET_PACKAGING_ARCH)>syscall_numbers.h ;
119 Includes [ FGristFiles interrupts.S ]
120         : <syscalls!$(TARGET_PACKAGING_ARCH)>syscall_table.h ;