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