Go to file
2016-06-14 23:59:44 +02:00
data Re-generate the Makefiles 2016-02-14 21:57:13 +01:00
doc Re-generate the Makefiles 2016-04-21 00:26:06 +02:00
include Introduce a clearer API for looking up exports 2016-06-14 23:59:44 +02:00
src Re-generate the Makefiles 2016-06-14 23:55:07 +02:00
tests Re-generate the Makefiles 2016-06-14 23:54:29 +02:00
tools Re-generate the Makefiles 2016-06-14 23:54:29 +02:00
.gitignore Add a few .gitignore files 2015-05-21 01:55:58 +02:00
config.h Re-generate the Makefiles 2016-01-19 00:50:25 +01:00
config.sh Re-generate the Makefiles 2016-01-19 00:50:25 +01:00
COPYING Switched the license to the GPL LGPL version 3 2012-11-03 00:28:23 +01:00
Makefile Re-generate the Makefiles 2016-05-16 17:22:49 +02:00
project.conf About to release DeforaOS libSystem 0.3.0 2016-01-19 00:50:12 +01:00
README.md Add a note about generating the Makefiles 2016-02-01 10:14:20 +01:00

DeforaOS libSystem

About libSystem

libSystem is the most essential library within DeforaOS, with the aim to become a complete C runtime (thus obsoleting the libc and replacing its API). Regardless of its progress in this regard, libSystem is intended to be portable and work on any system, using any POSIX-compliant runtime as fallback if available.

Compiling libSystem

With GCC, this should be enough:

$ make

To install libSystem in a dedicated directory, like /path/to/libSystem:

$ make PREFIX="/path/to/libSystem" install

Platform-specific notes

On some GNU/Linux distributions, it may be necessary to link libSystem to libdl explicitly:

$ make LDFLAGS="-ldl"

Generating Makefiles

Alternatively, it is possible to re-generate the Makefiles for the current platform with configure(1) from the DeforaOS configure project, found at http://www.defora.org/os/project/16/configure. The procedure is then as follows:

$ configure
$ make

Please refer to the documentation of DeforaOS configure for further instructions.

A default set of Makefiles is provided with this project in order to avoid a circular dependency, as DeforaOS configure depends on libSystem itself. The Makefiles provided target the NetBSD Operating System http://www.netbsd.org/ by default.

Python bindings

Part of libSystem's API can also be accessed from within the Python programming language. This binding is not compiled or installed by default though. After installing libSystem as documented above, the Python interface can be built and installed as follows:

$ (cd src/python && make install)

Likewise, an alternate installation directory may be specified:

$ (cd src/python && make PREFIX="/path/to/libSystem" install)

Makefiles can be re-generated for the bindings as well:

$ configure src/python