xref: /haiku/src/system/libroot/posix/Jamfile (revision 6f80a9801fedbe7355c4360bd204ba746ec3ec2d)
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 = threads.c ;
23		if $(HAIKU_CC_IS_LEGACY_GCC_$(architecture)) = 1 {
24			# the threads library is not available on gcc2
25			threadsLib = ;
26		}
27
28		MergeObject <$(architecture)>posix_main.o :
29			assert.cpp
30			dlfcn.c
31			dirent.c
32			errno.c
33			fcntl.cpp
34			fts.c
35			ftw.c
36			glob.c
37			inttypes.c
38			libgen.cpp
39			nftw.c
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_hoard2 ;
62SubInclude HAIKU_TOP src system libroot posix malloc_debug ;
63SubInclude HAIKU_TOP src system libroot posix pthread ;
64SubInclude HAIKU_TOP src system libroot posix signal ;
65SubInclude HAIKU_TOP src system libroot posix stdio ;
66SubInclude HAIKU_TOP src system libroot posix stdlib ;
67SubInclude HAIKU_TOP src system libroot posix string ;
68SubInclude HAIKU_TOP src system libroot posix sys ;
69SubInclude HAIKU_TOP src system libroot posix time ;
70SubInclude HAIKU_TOP src system libroot posix unistd ;
71SubInclude HAIKU_TOP src system libroot posix wchar ;
72
73SubInclude HAIKU_TOP src system libroot posix glibc ;
74SubInclude HAIKU_TOP src system libroot posix musl ;
75