update README

This commit is contained in:
Lephenixnoir 2021-01-27 15:20:55 +01:00
parent 02774004a2
commit 91bb658d6c
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495

View file

@ -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