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