SubDir HAIKU_TOP src system runtime_loader ; UsePrivateHeaders runtime_loader ; UseHeaders $(TARGET_PRIVATE_KERNEL_HEADERS) : true ; # Don't let gcc inject built-in function code. This will cause dependencies # to libroot, which we don't link against. SubDirCcFlags -fno-builtin ; SubDirC++Flags -fno-builtin -fno-exceptions ; # needed for "runtime_loader" only StaticLibrary libruntime_loader.a : kernel_vsprintf.c : syscalls.o sem.o atomic.o thread.o errno.o ctype-info.o C-ctype.o C_name.o open.o memchr.o memcmp.o memcpy.o memmove.o memset.o strcasecmp.o strcat.o strchr.o strcmp.o strcpy.o strcspn.o strdup.o strerror.o strlcat.o strlcpy.o strlen.o strncmp.o strnlen.o strpbrk.o strrchr.o strspn.o strstr.o arch_string.o [ FGristFiles kernel_vsprintf.o ] ; SEARCH on [ FGristFiles kernel_vsprintf.c ] = [ FDirName $(HAIKU_TOP) src system kernel lib ] ; SEARCH_SOURCE += [ FDirName $(SUBDIR) arch $(TARGET_ARCH) ] ; Objects runtime_loader.c elf.c export.c heap.cpp utility.cpp arch_relocate.c ; Ld runtime_loader : [ FGristFiles runtime_loader.o elf.o export.o heap.o utility.o arch_relocate.o ] libruntime_loader.a $(TARGET_GCC_LIBGCC) : $(HAIKU_TOP)/src/system/ldscripts/$(TARGET_ARCH)/runtime_loader.ld ;