SubDir HAIKU_TOP src system runtime_loader ; UsePrivateHeaders runtime_loader ; UsePrivateHeaders kernel ; # for UsePrivateSystemHeaders ; # 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 ; DEFINES += KMESSAGE_CONTAINER_ONLY _LOADER_MODE ; AddResources runtime_loader : runtime_loader.rdef ; # needed for "runtime_loader" only StaticLibrary libruntime_loader.a : kernel_vsprintf.c kernel_cpp.cpp KMessage.cpp : syscalls.o sem.o errno.o ctype-info.o C-ctype.o C_name.o open.o memchr.o memcmp.o memmove.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 [ FGristFiles kernel_vsprintf.o ] ; SEARCH on [ FGristFiles kernel_cpp.cpp ] = [ FDirName $(HAIKU_TOP) src system kernel util ] ; SEARCH on [ FGristFiles kernel_vsprintf.c ] = [ FDirName $(HAIKU_TOP) src system kernel lib ] ; SEARCH on [ FGristFiles KMessage.cpp ] = [ FDirName $(HAIKU_TOP) src system kernel messaging ] ; Objects runtime_loader.c elf.cpp export.c heap.cpp utility.cpp ; Ld runtime_loader : [ FGristFiles runtime_loader.o elf.o export.o heap.o utility.o ] libruntime_loader.a libruntime_loader_$(TARGET_ARCH).a $(TARGET_GCC_LIBGCC) : $(HAIKU_TOP)/src/system/ldscripts/$(TARGET_ARCH)/runtime_loader.ld ; HaikuSubInclude arch $(TARGET_ARCH) ;