1SubDir HAIKU_TOP src system libroot ; 2 3UsePrivateHeaders libroot ; 4UsePrivateHeaders kernel ; 5 6UnarchiveObjects $(TARGET_GCC_LIBGCC_OBJECTS) : $(TARGET_GCC_LIBGCC) ; 7 # we need to link against libgcc.a objects and make 8 # it available to other applications as in BeOS 9 10local librootObjects = 11 os_main.o 12 os_arch_$(TARGET_ARCH).o 13 14 posix_arch_$(TARGET_ARCH).o 15 posix_crypt.o 16 posix_locale.o 17 posix_main.o 18 posix_malloc.o 19 posix_pthread.o 20 posix_signal.o 21 posix_stdio.o 22 posix_gnu_arch_$(TARGET_ARCH).o 23 posix_gnu_ctype.o 24 posix_gnu_ext.o 25 posix_gnu_iconv.o 26 posix_gnu_libio.o 27 posix_gnu_locale.o 28 posix_gnu_misc.o 29 posix_gnu_regex.o 30 posix_gnu_stdio.o 31 posix_gnu_stdlib.o 32 posix_gnu_string.o 33 posix_gnu_wcsmbs.o 34 posix_gnu_wctype.o 35 posix_stdlib.o 36 posix_string.o 37 posix_string_arch_$(TARGET_ARCH).o 38 posix_sys.o 39 posix_time.o 40 posix_unistd.o 41; 42 43DONT_LINK_AGAINST_LIBROOT on libroot.so = true ; 44 45SharedLibrary libroot.so 46 : 47 libroot_init.c 48 : 49 $(TARGET_GCC_LIBGCC_OBJECTS) 50 51 $(librootObjects:G=nogrist) 52; 53 54 55# Copy libroot.so and update the copy's revision section. We link everything 56# against the original, but the copy will end up on the disk image (this way 57# we avoid unnecessary dependencies). The copy will be located in a subdirectory. 58if $(TARGET_PLATFORM) = haiku { 59 MakeLocate <revisioned>libroot.so 60 : [ FDirName $(TARGET_DEBUG_$(DEBUG)_LOCATE_TARGET) revisioned ] ; 61 CopySetHaikuRevision <revisioned>libroot.so : libroot.so ; 62} 63 64 65SubInclude HAIKU_TOP src system libroot os ; 66SubInclude HAIKU_TOP src system libroot posix ; 67