2005-10-29 20:27:43 +04:00
|
|
|
SubDir HAIKU_TOP src system libroot ;
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2008-11-02 06:43:01 +03:00
|
|
|
UsePrivateHeaders libroot runtime_loader ;
|
2008-05-14 07:55:16 +04:00
|
|
|
UsePrivateSystemHeaders ;
|
2005-11-27 03:27:19 +03:00
|
|
|
|
|
|
|
UnarchiveObjects $(TARGET_GCC_LIBGCC_OBJECTS) : $(TARGET_GCC_LIBGCC) ;
|
|
|
|
# we need to link against libgcc.a objects and make
|
|
|
|
# it available to other applications as in BeOS
|
|
|
|
|
2008-11-02 06:43:01 +03:00
|
|
|
local librootObjects =
|
2005-11-27 03:27:19 +03:00
|
|
|
os_main.o
|
|
|
|
os_arch_$(TARGET_ARCH).o
|
|
|
|
|
|
|
|
posix_arch_$(TARGET_ARCH).o
|
|
|
|
posix_crypt.o
|
|
|
|
posix_locale.o
|
|
|
|
posix_main.o
|
|
|
|
posix_pthread.o
|
|
|
|
posix_signal.o
|
|
|
|
posix_stdio.o
|
|
|
|
posix_gnu_arch_$(TARGET_ARCH).o
|
|
|
|
posix_gnu_ctype.o
|
|
|
|
posix_gnu_ext.o
|
2007-10-13 19:34:19 +04:00
|
|
|
posix_gnu_iconv.o
|
2005-11-27 03:27:19 +03:00
|
|
|
posix_gnu_libio.o
|
|
|
|
posix_gnu_locale.o
|
2007-10-13 19:34:19 +04:00
|
|
|
posix_gnu_misc.o
|
2005-11-27 03:27:19 +03:00
|
|
|
posix_gnu_regex.o
|
|
|
|
posix_gnu_stdio.o
|
|
|
|
posix_gnu_stdlib.o
|
2006-03-16 14:10:20 +03:00
|
|
|
posix_gnu_string.o
|
2005-11-27 03:27:19 +03:00
|
|
|
posix_gnu_wcsmbs.o
|
|
|
|
posix_stdlib.o
|
|
|
|
posix_string.o
|
2007-04-16 10:17:14 +04:00
|
|
|
posix_string_arch_$(TARGET_ARCH).o
|
2005-11-27 03:27:19 +03:00
|
|
|
posix_sys.o
|
|
|
|
posix_time.o
|
|
|
|
posix_unistd.o
|
|
|
|
;
|
|
|
|
|
2009-12-28 03:13:17 +03:00
|
|
|
local librootDebugObjects =
|
|
|
|
posix_malloc_debug.o
|
|
|
|
;
|
|
|
|
|
|
|
|
local librootNoDebugObjects =
|
|
|
|
posix_malloc.o
|
|
|
|
;
|
|
|
|
|
2005-11-27 16:31:50 +03:00
|
|
|
DONT_LINK_AGAINST_LIBROOT on libroot.so = true ;
|
2009-12-28 03:13:17 +03:00
|
|
|
DONT_LINK_AGAINST_LIBROOT on libroot_debug.so = true ;
|
2005-11-27 16:31:50 +03:00
|
|
|
|
2009-05-22 18:53:31 +04:00
|
|
|
SetVersionScript libroot.so : libroot_versions ;
|
2009-12-28 03:13:17 +03:00
|
|
|
SetVersionScript libroot_debug.so : libroot_versions ;
|
2009-05-22 18:53:31 +04:00
|
|
|
|
2005-11-27 03:27:19 +03:00
|
|
|
SharedLibrary libroot.so
|
|
|
|
:
|
|
|
|
libroot_init.c
|
|
|
|
:
|
|
|
|
$(TARGET_GCC_LIBGCC_OBJECTS)
|
|
|
|
$(librootObjects:G=nogrist)
|
2009-12-28 03:13:17 +03:00
|
|
|
$(librootNoDebugObjects:G=nogrist)
|
|
|
|
$(TARGET_STATIC_LIBSUPC++)
|
|
|
|
;
|
|
|
|
|
|
|
|
# Use the standard libroot.so soname, so when the debug version is pre-loaded
|
|
|
|
# it prevents the standard version to be loaded as well.
|
|
|
|
HAIKU_SONAME on libroot_debug.so = libroot.so ;
|
|
|
|
|
|
|
|
SharedLibrary libroot_debug.so
|
|
|
|
:
|
|
|
|
libroot_init.c
|
|
|
|
:
|
|
|
|
$(TARGET_GCC_LIBGCC_OBJECTS)
|
|
|
|
$(librootObjects:G=nogrist)
|
|
|
|
$(librootDebugObjects:G=nogrist)
|
2009-07-07 14:30:09 +04:00
|
|
|
$(TARGET_STATIC_LIBSUPC++)
|
2005-11-27 03:27:19 +03:00
|
|
|
;
|
2002-10-05 21:04:37 +04:00
|
|
|
|
2007-02-06 19:51:29 +03:00
|
|
|
|
|
|
|
# Copy libroot.so and update the copy's revision section. We link everything
|
|
|
|
# against the original, but the copy will end up on the disk image (this way
|
|
|
|
# we avoid unnecessary dependencies). The copy will be located in a subdirectory.
|
|
|
|
if $(TARGET_PLATFORM) = haiku {
|
|
|
|
MakeLocate <revisioned>libroot.so
|
|
|
|
: [ FDirName $(TARGET_DEBUG_$(DEBUG)_LOCATE_TARGET) revisioned ] ;
|
|
|
|
CopySetHaikuRevision <revisioned>libroot.so : libroot.so ;
|
2009-12-28 03:13:17 +03:00
|
|
|
|
|
|
|
MakeLocate <revisioned>libroot_debug.so
|
|
|
|
: [ FDirName $(TARGET_DEBUG_$(DEBUG)_LOCATE_TARGET) revisioned ] ;
|
|
|
|
CopySetHaikuRevision <revisioned>libroot_debug.so : libroot_debug.so ;
|
2007-02-06 19:51:29 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2010-07-24 03:13:00 +04:00
|
|
|
SubInclude HAIKU_TOP src system libroot add-ons ;
|
2005-10-29 20:27:43 +04:00
|
|
|
SubInclude HAIKU_TOP src system libroot os ;
|
|
|
|
SubInclude HAIKU_TOP src system libroot posix ;
|