1SubDir HAIKU_TOP src system kernel lib ; 2 3# kernel libroot os files 4 5KernelMergeObject kernel_os_main.o : 6 driver_settings.c 7 find_directory.c 8 fs_info.c 9 wait_for_objects.cpp 10 : $(TARGET_KERNEL_PIC_CCFLAGS) 11; 12 13SEARCH on [ FGristFiles 14 driver_settings.c 15 find_directory.c 16 fs_info.c 17 wait_for_objects.cpp 18 ] = [ FDirName $(HAIKU_TOP) src system libroot os ] ; 19 20# kernel libroot posix files 21 22local librootSources = [ FDirName $(HAIKU_TOP) src system libroot ] ; 23local posixSources = [ FDirName $(librootSources) posix ] ; 24 25SEARCH_SOURCE += [ FDirName $(posixSources) ] ; 26SEARCH_SOURCE += [ FDirName $(posixSources) locale ] ; 27SEARCH_SOURCE += [ FDirName $(posixSources) stdio ] ; 28SEARCH_SOURCE += [ FDirName $(posixSources) stdlib ] ; 29SEARCH_SOURCE += [ FDirName $(posixSources) string ] ; 30SEARCH_SOURCE += [ FDirName $(posixSources) sys ] ; 31SEARCH_SOURCE += [ FDirName $(posixSources) time ] ; 32SEARCH_SOURCE += [ FDirName $(posixSources) unistd ] ; 33 34KernelMergeObject kernel_posix.o : 35 # main 36 kernel_errno.c 37 dirent.c 38 poll.c 39 utime.c 40 # locale 41 ctype.c 42 localeconv.c 43 # stdio (this subdir) 44 kernel_vsprintf.c 45 # stdlib 46 abs.c 47 atoi.c 48 bsearch.c 49 merge.c 50 qsort.c 51 rand.c 52 random.c 53 strtod.c 54 strtol.c 55 strtoll.c 56 strtoul.c 57 strtoull.c 58 # sys 59 chmod.c 60 stat.c 61 mkdir.c 62 select.c 63 gettimeofday.c 64 uio.c 65 # time 66 time.c 67 # unistd 68 access.c 69 chown.c 70 close.c 71 conf.c 72 directory.c 73 dup.c 74 fcntl.c 75 ioctl.c 76 link.c 77 lseek.c 78 mount.c 79 open.c 80 read.c 81 sync.c 82 truncate.c 83 usergroup.c 84 write.c 85 # string 86 memchr.c 87 memcmp.c 88 memcpy.c 89 memmove.c 90 memset.c 91 strcasecmp.c 92 strcasestr.c 93 strcat.c 94 strchr.c 95 strcmp.c 96 strcpy.c 97 strcspn.c 98 strdup.c 99 strerror.c 100 strlcat.c 101 strlcpy.c 102 strlen.c 103 strncat.c 104 strncmp.c 105 strncpy.c 106 strnlen.c 107 strpbrk.c 108 strrchr.c 109 strspn.c 110 strstr.c 111 strtok.c 112 113 : $(TARGET_KERNEL_PIC_CCFLAGS) 114; 115 116# TODO: Move the following arch specific part into arch/$(TARGET_ARCH) subdirs! 117 118SEARCH_SOURCE += [ FDirName $(librootSources) os arch $(TARGET_ARCH) ] ; 119 120KernelMergeObject kernel_os_arch_$(TARGET_ARCH).o : 121 atomic.S 122 byteorder.S 123 system_time_asm.S 124 system_time.c 125 126 : $(TARGET_KERNEL_PIC_CCFLAGS) 127; 128 129SEARCH_SOURCE += [ FDirName $(posixSources) arch $(TARGET_ARCH) ] ; 130SEARCH_SOURCE += [ FDirName $(posixSources) string arch $(TARGET_ARCH) ] ; 131 132KernelMergeObject kernel_posix_arch_$(TARGET_ARCH).o : 133 setjmp.S 134 siglongjmp.S 135 sigsetjmp.S 136 kernel_setjmp_save_sigs.c 137 arch_string.S # TODO: Not needed for X86! 138 139 : $(TARGET_KERNEL_PIC_CCFLAGS) 140; 141 142UsePrivateHeaders shared ; 143 144SEARCH_SOURCE = [ FDirName $(HAIKU_TOP) src kits support ] ; 145 146KernelMergeObject kernel_misc.o : 147 Referenceable.cpp 148 149 : $(TARGET_KERNEL_PIC_CCFLAGS) 150; 151