xref: /haiku/src/system/libroot/Jamfile (revision a4e0c1d43dab6a1cc681a55e0430ef4aa3d7eaa8)
1338b8dc3SIngo WeinholdSubDir HAIKU_TOP src system libroot ;
25af32e75SAxel Dörfler
35af32e75SAxel DörflerUsePrivateHeaders libroot ;
438f62644SIngo WeinholdUsePrivateHeaders kernel ;
55af32e75SAxel Dörfler
638f62644SIngo WeinholdUnarchiveObjects $(TARGET_GCC_LIBGCC_OBJECTS) : $(TARGET_GCC_LIBGCC) ;
738f62644SIngo Weinhold	# we need to link against libgcc.a objects and make
838f62644SIngo Weinhold	# it available to other applications as in BeOS
938f62644SIngo Weinhold
1038f62644SIngo Weinholdlocal librootObjects =
1138f62644SIngo Weinhold	os_main.o
1238f62644SIngo Weinhold	os_arch_$(TARGET_ARCH).o
1338f62644SIngo Weinhold
1438f62644SIngo Weinhold	posix_arch_$(TARGET_ARCH).o
1538f62644SIngo Weinhold	posix_crypt.o
1638f62644SIngo Weinhold	posix_locale.o
1738f62644SIngo Weinhold	posix_main.o
1838f62644SIngo Weinhold	posix_malloc.o
1938f62644SIngo Weinhold	posix_pthread.o
2038f62644SIngo Weinhold	posix_signal.o
2138f62644SIngo Weinhold	posix_stdio.o
2238f62644SIngo Weinhold	posix_gnu_arch_$(TARGET_ARCH).o
2338f62644SIngo Weinhold	posix_gnu_ctype.o
2438f62644SIngo Weinhold	posix_gnu_ext.o
2538f62644SIngo Weinhold	posix_gnu_libio.o
2638f62644SIngo Weinhold	posix_gnu_locale.o
2738f62644SIngo Weinhold	posix_gnu_regex.o
2838f62644SIngo Weinhold	posix_gnu_stdio.o
2938f62644SIngo Weinhold	posix_gnu_stdlib.o
30cc87b419SJérôme Duval	posix_gnu_string.o
3138f62644SIngo Weinhold	posix_gnu_wcsmbs.o
3238f62644SIngo Weinhold	posix_gnu_wctype.o
3338f62644SIngo Weinhold	posix_stdlib.o
3438f62644SIngo Weinhold	posix_string.o
3538f62644SIngo Weinhold	posix_sys.o
3638f62644SIngo Weinhold	posix_time.o
3738f62644SIngo Weinhold	posix_unistd.o
385af32e75SAxel Dörfler;
395af32e75SAxel Dörfler
40353d20c0SIngo WeinholdDONT_LINK_AGAINST_LIBROOT on libroot.so = true ;
41353d20c0SIngo Weinhold
4238f62644SIngo WeinholdSharedLibrary libroot.so
4338f62644SIngo Weinhold	:
4438f62644SIngo Weinhold	libroot_init.c
4538f62644SIngo Weinhold	:
4638f62644SIngo Weinhold	$(TARGET_GCC_LIBGCC_OBJECTS)
475af32e75SAxel Dörfler
4838f62644SIngo Weinhold	$(librootObjects:G=nogrist)
495af32e75SAxel Dörfler;
505af32e75SAxel Dörfler
51*a4e0c1d4SIngo Weinhold
52*a4e0c1d4SIngo Weinhold# Copy libroot.so and update the copy's revision section. We link everything
53*a4e0c1d4SIngo Weinhold# against the original, but the copy will end up on the disk image (this way
54*a4e0c1d4SIngo Weinhold# we avoid unnecessary dependencies). The copy will be located in a subdirectory.
55*a4e0c1d4SIngo Weinholdif $(TARGET_PLATFORM) = haiku {
56*a4e0c1d4SIngo Weinhold	MakeLocate <revisioned>libroot.so
57*a4e0c1d4SIngo Weinhold		: [ FDirName $(TARGET_DEBUG_$(DEBUG)_LOCATE_TARGET) revisioned ] ;
58*a4e0c1d4SIngo Weinhold	CopySetHaikuRevision <revisioned>libroot.so : libroot.so ;
59*a4e0c1d4SIngo Weinhold}
60*a4e0c1d4SIngo Weinhold
61*a4e0c1d4SIngo Weinhold
62338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src system libroot os ;
63338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src system libroot posix ;
64