xref: /haiku/src/system/libroot/posix/Jamfile (revision 344ded80d400028c8f561b4b876257b94c12db4a)
1SubDir HAIKU_TOP src system libroot posix ;
2
3UsePrivateHeaders app shared [ FDirName syslog_daemon ] ;
4UsePrivateHeaders kernel ;
5	# For util/KMessage.h
6UsePrivateHeaders libroot runtime_loader shared ;
7
8local architectureObject ;
9for architectureObject in [ MultiArchSubDirSetup ] {
10	on $(architectureObject) {
11		local architecture = $(TARGET_PACKAGING_ARCH) ;
12
13		UsePrivateSystemHeaders ;
14
15		if $(HAIKU_MULTIUSER_QUERY) = 1 {
16			PWD_BACKEND = pwd_query.c ;
17		} else {
18			PWD_BACKEND = pwd.cpp grp.cpp shadow.cpp user_group_common.cpp ;
19		}
20
21
22		local threadsLib = call_once.c cnd.c mtx.c thrd.c tss.c ;
23		SEARCH_SOURCE += [ FDirName $(SUBDIR) libstdthreads ] ;
24		if $(HAIKU_CC_IS_LEGACY_GCC_$(architecture)) = 1 {
25			# the threads library is not available on gcc2
26			threadsLib = ;
27		}
28
29		MergeObject <$(architecture)>posix_main.o :
30			assert.cpp
31			cat.cpp
32			devctl.c
33			dlfcn.c
34			dirent.cpp
35			errno.c
36			fcntl.cpp
37			glob.c
38			inttypes.c
39			libgen.cpp
40			poll.cpp
41			$(PWD_BACKEND)
42			scheduler.cpp
43			semaphore.cpp
44			spawn.cpp
45			syslog.cpp
46			termios.c
47			$(threadsLib)
48			utime.c
49			utmpx.cpp
50			;
51	}
52}
53
54local arch ;
55for arch in $(TARGET_ARCHS) {
56	HaikuSubInclude arch $(arch) ;
57}
58
59SubInclude HAIKU_TOP src system libroot posix crypt ;
60SubInclude HAIKU_TOP src system libroot posix locale ;
61SubInclude HAIKU_TOP src system libroot posix malloc ;
62SubInclude HAIKU_TOP src system libroot posix pthread ;
63SubInclude HAIKU_TOP src system libroot posix signal ;
64SubInclude HAIKU_TOP src system libroot posix stdio ;
65SubInclude HAIKU_TOP src system libroot posix stdlib ;
66SubInclude HAIKU_TOP src system libroot posix string ;
67SubInclude HAIKU_TOP src system libroot posix sys ;
68SubInclude HAIKU_TOP src system libroot posix time ;
69SubInclude HAIKU_TOP src system libroot posix unistd ;
70SubInclude HAIKU_TOP src system libroot posix wchar ;
71
72SubInclude HAIKU_TOP src system libroot posix glibc ;
73SubInclude HAIKU_TOP src system libroot posix musl ;
74