xref: /haiku/src/system/libroot/posix/Jamfile (revision 04171cfc5c10c98b9ba3c7233a271f6165cdd36f)
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			cat.cpp
31			dlfcn.c
32			dirent.c
33			errno.c
34			fcntl.cpp
35			fts.c
36			ftw.c
37			glob.c
38			inttypes.c
39			libgen.cpp
40			nftw.c
41			poll.cpp
42			$(PWD_BACKEND)
43			scheduler.cpp
44			semaphore.cpp
45			spawn.cpp
46			syslog.cpp
47			termios.c
48			$(threadsLib)
49			utime.c
50			utmpx.cpp
51			;
52	}
53}
54
55local arch ;
56for arch in $(TARGET_ARCHS) {
57	HaikuSubInclude arch $(arch) ;
58}
59
60SubInclude HAIKU_TOP src system libroot posix crypt ;
61SubInclude HAIKU_TOP src system libroot posix locale ;
62SubInclude HAIKU_TOP src system libroot posix malloc_hoard2 ;
63SubInclude HAIKU_TOP src system libroot posix malloc_debug ;
64SubInclude HAIKU_TOP src system libroot posix pthread ;
65SubInclude HAIKU_TOP src system libroot posix signal ;
66SubInclude HAIKU_TOP src system libroot posix stdio ;
67SubInclude HAIKU_TOP src system libroot posix stdlib ;
68SubInclude HAIKU_TOP src system libroot posix string ;
69SubInclude HAIKU_TOP src system libroot posix sys ;
70SubInclude HAIKU_TOP src system libroot posix time ;
71SubInclude HAIKU_TOP src system libroot posix unistd ;
72SubInclude HAIKU_TOP src system libroot posix wchar ;
73
74SubInclude HAIKU_TOP src system libroot posix glibc ;
75SubInclude HAIKU_TOP src system libroot posix musl ;
76