xref: /haiku/src/system/runtime_loader/Jamfile (revision b671e9bbdbd10268a042b4f4cc4317ccd03d105e)
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	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.c
24	kernel_cpp.cpp
25	KMessage.cpp
26	:
27	<src!system!libroot!os>syscalls.o
28	<src!system!libroot!os>sem.o
29
30	<src!system!libroot!posix>errno.o
31
32 	<src!system!libroot!posix!glibc!ctype>ctype-info.o
33	<src!system!libroot!posix!glibc!locale>C-ctype.o
34	<src!system!libroot!posix!glibc!locale>C_name.o
35  	<src!system!libroot!posix!unistd>open.o
36
37	<src!system!libroot!posix!string>memchr.o
38	<src!system!libroot!posix!string>memcmp.o
39	<src!system!libroot!posix!string>memmove.o
40	<src!system!libroot!posix!string>strcasecmp.o
41	<src!system!libroot!posix!string>strcat.o
42	<src!system!libroot!posix!string>strchr.o
43	<src!system!libroot!posix!string>strcmp.o
44	<src!system!libroot!posix!string>strcpy.o
45	<src!system!libroot!posix!string>strcspn.o
46	<src!system!libroot!posix!string>strdup.o
47	<src!system!libroot!posix!string>strerror.o
48	<src!system!libroot!posix!string>strlcat.o
49	<src!system!libroot!posix!string>strlcpy.o
50	<src!system!kernel!lib>strlen.o
51	<src!system!libroot!posix!string>strncmp.o
52	<src!system!libroot!posix!string>strnlen.o
53	<src!system!libroot!posix!string>strpbrk.o
54	<src!system!libroot!posix!string>strrchr.o
55	<src!system!libroot!posix!string>strspn.o
56	<src!system!libroot!posix!string>strstr.o
57
58	[ FGristFiles kernel_vsprintf.o ]
59;
60
61SEARCH on [ FGristFiles kernel_cpp.cpp ]
62	= [ FDirName $(HAIKU_TOP) src system kernel util ] ;
63SEARCH on [ FGristFiles kernel_vsprintf.c ]
64	= [ FDirName $(HAIKU_TOP) src system kernel lib ] ;
65SEARCH on [ FGristFiles KMessage.cpp ]
66	= [ FDirName $(HAIKU_TOP) src system kernel messaging ] ;
67
68
69local sources =
70	add_ons.cpp
71	elf.cpp
72	elf_haiku_version.cpp
73	elf_load_image.cpp
74	elf_symbol_lookup.cpp
75	elf_versioning.cpp
76	errors.cpp
77	export.cpp
78	heap.cpp
79	images.cpp
80	runtime_loader.cpp
81	utility.cpp
82;
83
84Objects $(sources) ;
85
86Ld runtime_loader :
87	[ FGristFiles $(sources:S=$(SUFOBJ)) ]
88	libruntime_loader.a
89	libruntime_loader_$(TARGET_ARCH).a
90	$(TARGET_STATIC_LIBSUPC++)
91	$(TARGET_GCC_LIBGCC)
92	: $(HAIKU_TOP)/src/system/ldscripts/$(TARGET_ARCH)/runtime_loader.ld
93;
94
95HaikuSubInclude arch $(TARGET_ARCH) ;
96