From 91bb658d6c3c6b5ac2db927ccd4f226a2c2b4c5c Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Wed, 27 Jan 2021 15:20:55 +0100 Subject: [PATCH] update README --- README.md | 32 ++++++++++---------------------- 1 file changed, 10 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 6ef7937..4287387 100644 --- a/README.md +++ b/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 `` header file and call