SubDir HAIKU_TOP src system runtime_loader ; UsePrivateHeaders runtime_loader shared ; 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 USING_LIBGCC=1 ; AddResources runtime_loader : runtime_loader.rdef ; # needed for "runtime_loader" only StaticLibrary libruntime_loader.a : kernel_vsprintf.cpp kernel_cpp.cpp KMessage.cpp : mutex.o recursive_lock.o syscalls.o sem.o errno.o fcntl.o ctype.o LocaleData.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.cpp ] = [ FDirName $(HAIKU_TOP) src system kernel lib ] ; SEARCH on [ FGristFiles KMessage.cpp ] = [ FDirName $(HAIKU_TOP) src system kernel messaging ] ; local sources = add_ons.cpp elf.cpp elf_haiku_version.cpp elf_load_image.cpp elf_symbol_lookup.cpp elf_versioning.cpp errors.cpp export.cpp heap.cpp images.cpp runtime_loader.cpp utility.cpp ; Objects $(sources) ; Ld runtime_loader : [ FGristFiles $(sources:S=$(SUFOBJ)) ] libruntime_loader.a libruntime_loader_$(TARGET_ARCH).a $(TARGET_STATIC_LIBSUPC++) $(TARGET_GCC_LIBGCC) : $(HAIKU_TOP)/src/system/ldscripts/$(TARGET_ARCH)/runtime_loader.ld : --no-undefined ; HaikuSubInclude arch $(TARGET_ARCH) ;