1SubDir HAIKU_TOP src build libroot ; 2 3UseHeaders [ FDirName $(HAIKU_TOP) headers build ] : true ; 4UseHeaders [ FDirName $(HAIKU_TOP) headers build os ] : true ; 5UseHeaders [ FDirName $(HAIKU_TOP) headers build os app ] : true ; 6UseHeaders [ FDirName $(HAIKU_TOP) headers build os kernel ] : true ; 7UseHeaders [ FDirName $(HAIKU_TOP) headers build os interface ] : true ; 8UseHeaders [ FDirName $(HAIKU_TOP) headers build os storage ] : true ; 9UseHeaders [ FDirName $(HAIKU_TOP) headers build os support ] : true ; 10 11UseHeaders [ FDirName $(HAIKU_TOP) headers build private kernel ] : true ; 12 13{ 14 local defines = [ FDefines 15 HAIKU_BUILD_ATTRIBUTES_DIR="\\\"$(HAIKU_BUILD_ATTRIBUTES_DIR)\\\"" 16 ] ; 17 SubDirCcFlags $(defines) ; 18 SubDirC++Flags $(defines) ; 19} 20 21# locate the library 22MakeLocate libroot_build.so : $(HOST_BUILD_COMPATIBILITY_LIB_DIR) ; 23 24# darwin already has strlcpy and strlcat in libSystem 25if $(HOST_PLATFORM) != darwin { 26STRLSRC = strlcpy.c strlcat.c ; 27} 28 29BuildPlatformSharedLibrary libroot_build.so : 30 atomic.cpp 31 byteorder.cpp 32 errors.cpp 33 fs.cpp 34 fs_attr.cpp 35 fs_descriptors.cpp 36 misc.cpp 37 sem.cpp 38 thread.cpp 39 40 $(STRLSRC) 41 strnlen.c 42 43 : 44 $(HOST_LIBSTDC++) 45; 46 47SEARCH on [ FGristFiles strlcat.c strlcpy.c strnlen.c ] 48 = [ FDirName $(HAIKU_TOP) src system libroot posix string ] ; 49