mirror of
https://git.planet-casio.com/Lephenixnoir/libprof.git
synced 2025-05-09 11:29:20 +02:00
update README
This commit is contained in:
parent
02774004a2
commit
91bb658d6c
1 changed files with 10 additions and 22 deletions
32
README.md
32
README.md
|
@ -12,37 +12,25 @@ code.
|
|||
|
||||
libprof can be built and installed with [GiteaPC](https://gitea.planet-casio.com/Lephenixnoir/GiteaPC), an automation tool for the fxSDK.
|
||||
|
||||
```
|
||||
```bash
|
||||
% giteapc install Lephenixnoir/libprof
|
||||
```
|
||||
|
||||
## Building
|
||||
Link with `-lprof-fx` on fx-9860G and `-lprof-cg` on fx-CG 50.
|
||||
|
||||
libprof is built and installed only once for both fx-9860G and fx-CG 50. The
|
||||
dependencies are:
|
||||
## Building and installing manually
|
||||
|
||||
* A GCC cross-compiler for a SuperH architecture
|
||||
* The [gint kernel](/Lephenixnoir/gint)
|
||||
libprof should be built with the [fxSDK](/Lephenixnoir/fxsdk), which provides
|
||||
compiler settings and library interfaces to build on the calculator.
|
||||
|
||||
The Makefile will build and install the library without further instructions.
|
||||
Simply run `fxsdk build-fx` or `fxsdk build-cg`. The fxSDK will invoke CMake
|
||||
with a suitable toolchain file while exposing CMake modules for the calculator.
|
||||
|
||||
```sh
|
||||
% make
|
||||
% make install
|
||||
```bash
|
||||
% fxsdk build-fx install
|
||||
% fxsdk build-cg install
|
||||
```
|
||||
|
||||
By default `sh-elf` is used to build; you can override this by setting the
|
||||
`target` variable.
|
||||
|
||||
```sh
|
||||
% make target=sh4eb-elf
|
||||
% make install target=sh4eb-elf
|
||||
```
|
||||
|
||||
If you have the older setup with two toolchains (`sh3eb-elf` and `sh4eb-elf`),
|
||||
instead of the new one with two targets on the same toolchain (`sh-elf`), you
|
||||
will need to make and install twice.
|
||||
|
||||
## Basic use
|
||||
|
||||
To access the library, include the `<libprof.h>` header file and call
|
||||
|
|
Loading…
Add table
Reference in a new issue