1SubDir HAIKU_TOP src system kernel ; 2 3{ 4 # TODO: Rename the macro OBOS_ARCH to TARGET_ARCH, or something like that. 5 local defines = 6 OBOS_ARCH=\\\"$(TARGET_ARCH)\\\" 7 ; 8 9 defines = [ FDefines $(defines) ] ; 10 SubDirCcFlags $(defines) ; 11 SubDirC++Flags $(defines) ; 12} 13 14KernelMergeObject kernel_core.o : 15 boot_item.cpp 16 cpu.c 17 elf.c 18 heap.c 19 image.c 20 int.c 21 kernel_daemon.c 22 linkhack.c 23 lock.c 24 main.c 25 module.c 26 port.c 27 real_time_clock.c 28 scheduler.c 29 sem.c 30 shutdown.c 31 signal.c 32 system_info.c 33 smp.c 34 syscalls.c 35 sysctl.c 36 team.c 37 thread.c 38 timer.c 39 40 : -fno-pic 41 ; 42 43# We need to specify the dependency on the generated syscalls files explicitly. 44Includes [ FGristFiles syscalls.c ] 45 : <syscalls>syscall_dispatcher.h <syscalls>syscall_table.h ; 46 47KernelLd linkhack.so : 48 <$(SOURCE_GRIST)>linkhack.o 49 : 50 : 51 -shared -Bdynamic 52 ; 53 54SubInclude HAIKU_TOP src system kernel arch ; 55SubInclude HAIKU_TOP src system kernel cache ; 56SubInclude HAIKU_TOP src system kernel device_manager ; 57SubInclude HAIKU_TOP src system kernel debug ; 58SubInclude HAIKU_TOP src system kernel disk_device_manager ; 59SubInclude HAIKU_TOP src system kernel fs ; 60SubInclude HAIKU_TOP src system kernel messaging ; 61SubInclude HAIKU_TOP src system kernel util ; 62SubInclude HAIKU_TOP src system kernel vm ; 63