xref: /haiku/src/system/runtime_loader/Jamfile (revision 4f2fd49bdc6078128b1391191e4edac647044c3d)
1SubDir HAIKU_TOP src system runtime_loader ;
2
3UsePrivateHeaders runtime_loader ;
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;
17
18AddResources runtime_loader : runtime_loader.rdef ;
19
20# needed for "runtime_loader" only
21StaticLibrary libruntime_loader.a :
22	kernel_vsprintf.c
23	kernel_cpp.cpp
24	KMessage.cpp
25	:
26	<src!system!libroot!os>syscalls.o
27	<src!system!libroot!os>sem.o
28
29	<src!system!libroot!posix>errno.o
30
31 	<src!system!libroot!posix!glibc!ctype>ctype-info.o
32	<src!system!libroot!posix!glibc!locale>C-ctype.o
33	<src!system!libroot!posix!glibc!locale>C_name.o
34  	<src!system!libroot!posix!unistd>open.o
35
36	<src!system!libroot!posix!string>memchr.o
37	<src!system!libroot!posix!string>memcmp.o
38	<src!system!libroot!posix!string>memmove.o
39	<src!system!libroot!posix!string>strcasecmp.o
40	<src!system!libroot!posix!string>strcat.o
41	<src!system!libroot!posix!string>strchr.o
42	<src!system!libroot!posix!string>strcmp.o
43	<src!system!libroot!posix!string>strcpy.o
44	<src!system!libroot!posix!string>strcspn.o
45	<src!system!libroot!posix!string>strdup.o
46	<src!system!libroot!posix!string>strerror.o
47	<src!system!libroot!posix!string>strlcat.o
48	<src!system!libroot!posix!string>strlcpy.o
49	<src!system!kernel!lib>strlen.o
50	<src!system!libroot!posix!string>strncmp.o
51	<src!system!libroot!posix!string>strnlen.o
52	<src!system!libroot!posix!string>strpbrk.o
53	<src!system!libroot!posix!string>strrchr.o
54	<src!system!libroot!posix!string>strspn.o
55	<src!system!libroot!posix!string>strstr.o
56
57	[ FGristFiles kernel_vsprintf.o ]
58;
59
60SEARCH on [ FGristFiles kernel_cpp.cpp ]
61	= [ FDirName $(HAIKU_TOP) src system kernel util ] ;
62SEARCH on [ FGristFiles kernel_vsprintf.c ]
63	= [ FDirName $(HAIKU_TOP) src system kernel lib ] ;
64SEARCH on [ FGristFiles KMessage.cpp ]
65	= [ FDirName $(HAIKU_TOP) src system kernel messaging ] ;
66
67Objects
68	runtime_loader.c
69	elf.cpp
70	export.c
71	heap.cpp
72	utility.cpp
73;
74
75Ld runtime_loader :
76	[ FGristFiles runtime_loader.o elf.o export.o heap.o utility.o ]
77	libruntime_loader.a
78	libruntime_loader_$(TARGET_ARCH).a
79	$(TARGET_GCC_LIBGCC)
80	: $(HAIKU_TOP)/src/system/ldscripts/$(TARGET_ARCH)/runtime_loader.ld
81;
82
83HaikuSubInclude arch $(TARGET_ARCH) ;
84