1SubDir HAIKU_TOP src system runtime_loader ; 2 3UsePrivateHeaders libroot runtime_loader shared ; 4UsePrivateHeaders kernel ; 5 # for <util/KMessage.h> 6UsePrivateSystemHeaders ; 7 8# Don't let gcc inject built-in function code. This will cause dependencies 9# to libroot, which we don't link against. 10SubDirCcFlags -fno-builtin ; 11SubDirC++Flags -fno-builtin -fno-exceptions ; 12 13DEFINES += 14 KMESSAGE_CONTAINER_ONLY 15 _LOADER_MODE 16 USING_LIBGCC=1 17; 18 19AddResources runtime_loader : runtime_loader.rdef ; 20 21# needed for "runtime_loader" only 22StaticLibrary libruntime_loader.a : 23 kernel_vsprintf.cpp 24 kernel_cpp.cpp 25 KMessage.cpp 26 : 27 <src!system!libroot!os>mutex.o 28 <src!system!libroot!os>recursive_lock.o 29 <src!system!libroot!os>syscalls.o 30 <src!system!libroot!os>sem.o 31 32 <src!system!libroot!posix>errno.o 33 <src!system!libroot!posix>fcntl.o 34 35 <src!system!libroot!posix!locale>ctype.o 36 <src!system!libroot!posix!locale>LocaleData.o 37 38 <src!system!libroot!posix!string>memchr.o 39 <src!system!libroot!posix!string>memcmp.o 40 <src!system!libroot!posix!string>memmove.o 41 <src!system!libroot!posix!string>strcasecmp.o 42 <src!system!libroot!posix!string>strcat.o 43 <src!system!libroot!posix!string>strchr.o 44 <src!system!libroot!posix!string>strcmp.o 45 <src!system!libroot!posix!string>strcpy.o 46 <src!system!libroot!posix!string>strcspn.o 47 <src!system!libroot!posix!string>strdup.o 48 <src!system!libroot!posix!string>strerror.o 49 <src!system!libroot!posix!string>strlcat.o 50 <src!system!libroot!posix!string>strlcpy.o 51 <src!system!kernel!lib>strlen.o 52 <src!system!libroot!posix!string>strncmp.o 53 <src!system!libroot!posix!string>strnlen.o 54 <src!system!libroot!posix!string>strpbrk.o 55 <src!system!libroot!posix!string>strrchr.o 56 <src!system!libroot!posix!string>strspn.o 57 <src!system!libroot!posix!string>strstr.o 58 59 [ FGristFiles kernel_vsprintf.o ] 60; 61 62SEARCH on [ FGristFiles kernel_cpp.cpp ] 63 = [ FDirName $(HAIKU_TOP) src system kernel util ] ; 64SEARCH on [ FGristFiles kernel_vsprintf.cpp ] 65 = [ FDirName $(HAIKU_TOP) src system kernel lib ] ; 66SEARCH on [ FGristFiles KMessage.cpp ] 67 = [ FDirName $(HAIKU_TOP) src system kernel messaging ] ; 68 69 70local sources = 71 add_ons.cpp 72 elf.cpp 73 elf_haiku_version.cpp 74 elf_load_image.cpp 75 elf_symbol_lookup.cpp 76 elf_versioning.cpp 77 errors.cpp 78 export.cpp 79 heap.cpp 80 images.cpp 81 runtime_loader.cpp 82 utility.cpp 83; 84 85Objects $(sources) ; 86 87Ld runtime_loader : 88 [ FGristFiles $(sources:S=$(SUFOBJ)) ] 89 libruntime_loader.a 90 libruntime_loader_$(TARGET_ARCH).a 91 $(TARGET_STATIC_LIBSUPC++) 92 $(TARGET_GCC_LIBGCC) 93 : $(HAIKU_TOP)/src/system/ldscripts/$(TARGET_ARCH)/runtime_loader.ld 94 : --no-undefined 95; 96 97HaikuSubInclude arch $(TARGET_ARCH) ; 98