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