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.
|
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
|
% 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
|
## Building and installing manually
|
||||||
dependencies are:
|
|
||||||
|
|
||||||
* A GCC cross-compiler for a SuperH architecture
|
libprof should be built with the [fxSDK](/Lephenixnoir/fxsdk), which provides
|
||||||
* The [gint kernel](/Lephenixnoir/gint)
|
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
|
```bash
|
||||||
% make
|
% fxsdk build-fx install
|
||||||
% make 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
|
## Basic use
|
||||||
|
|
||||||
To access the library, include the `<libprof.h>` header file and call
|
To access the library, include the `<libprof.h>` header file and call
|
||||||
|
|
Loading…
Add table
Reference in a new issue