xref: /haiku/src/system/kernel/lib/Jamfile (revision a1163de83ea633463a79de234b8742ee106531b2)
1SubDir HAIKU_TOP src system kernel lib ;
2
3UsePrivateHeaders shared ;
4
5# kernel libroot os files
6
7KernelMergeObject kernel_os_main.o :
8	driver_settings.c
9	find_directory.c
10	fs_info.c
11	wait_for_objects.cpp
12	: $(TARGET_KERNEL_PIC_CCFLAGS)
13;
14
15SEARCH on [ FGristFiles
16	driver_settings.c
17	find_directory.c
18	fs_info.c
19	wait_for_objects.cpp
20	] = [ FDirName $(HAIKU_TOP) src system libroot os ] ;
21
22# kernel libroot posix files
23
24local librootSources = [ FDirName $(HAIKU_TOP) src system libroot ] ;
25local posixSources = [ FDirName $(librootSources) posix ] ;
26
27SEARCH_SOURCE += [ FDirName $(posixSources) ] ;
28SEARCH_SOURCE += [ FDirName $(posixSources) locale ] ;
29SEARCH_SOURCE += [ FDirName $(posixSources) stdio ] ;
30SEARCH_SOURCE += [ FDirName $(posixSources) stdlib ] ;
31SEARCH_SOURCE += [ FDirName $(posixSources) string ] ;
32SEARCH_SOURCE += [ FDirName $(posixSources) sys ] ;
33SEARCH_SOURCE += [ FDirName $(posixSources) time ] ;
34SEARCH_SOURCE += [ FDirName $(posixSources) unistd ] ;
35
36KernelMergeObject kernel_lib_posix.o :
37	# main
38 	kernel_errno.c
39 	dirent.c
40 	poll.c
41 	utime.c
42 	# locale
43	ctype.c
44	localeconv.c
45	# stdio (this subdir)
46	kernel_vsprintf.c
47	# stdlib
48	abs.c
49	atoi.c
50	bsearch.c
51	merge.c
52	qsort.c
53	rand.c
54	random.c
55	strtod.c
56	strtol.c
57	strtoll.c
58	strtoul.c
59	strtoull.c
60	# sys
61	chmod.c
62	stat.c
63	mkdir.c
64	select.c
65	gettimeofday.c
66 	uio.c
67	# time
68	time.c
69	# unistd
70	access.c
71	chown.c
72	close.c
73	#conf.c
74	directory.c
75	dup.c
76	fcntl.c
77	ioctl.c
78	link.c
79	lseek.c
80	mount.c
81	open.c
82	read.c
83	sync.c
84	truncate.c
85	usergroup.cpp
86	write.c
87	# string
88	memchr.c
89	memcmp.c
90	memmove.c
91	strcasecmp.c
92	strcasestr.c
93	strcat.c
94	strchr.c
95	strcmp.c
96	strcpy.c
97	strcspn.c
98	strdup.c
99	strerror.c
100	strlcat.c
101	strlcpy.c
102	strlen.c
103	strncat.c
104	strncmp.c
105	strncpy.c
106	strnlen.c
107	strpbrk.c
108	strrchr.c
109	strspn.c
110	strstr.c
111	strtok.c
112	strupr.c
113
114	: $(TARGET_KERNEL_PIC_CCFLAGS)
115;
116
117# misc
118
119SEARCH_SOURCE = [ FDirName $(HAIKU_TOP) src kits support ] ;
120
121KernelMergeObject kernel_misc.o :
122	Referenceable.cpp
123
124	: $(TARGET_KERNEL_PIC_CCFLAGS)
125;
126
127HaikuSubInclude arch $(TARGET_ARCH) ;
128