diff --git a/.gitignore b/.gitignore index e7e0c44..04cb85f 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,7 @@ *.so* *.dylib* *.pc + +# GiteaPC config files +giteapc-config-*.make +giteapc-config.make diff --git a/README.md b/README.md index be8f9b3..a19deea 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,15 @@ This is a fork of [OpenLibm](https://github.com/JuliaMath/openlibm) with support for the sh3eb architecture, intended for add-in programming on fx-9860G and fx-CG 50. -## Building +## Installing with GiteaPC + +This library can be installed automatically with [GiteaPC](https://gitea.planet-casio.com/Lephenixnoir/GiteaPC). + +``` +% giteapc install Lephenixnoir/OpenLibm +``` + +## Building manually You will need a GCC toolchain built with `--target=sh3eb-elf`, such as the `sh-elf-gcc` commonly used on Planète Casio. diff --git a/giteapc.make b/giteapc.make new file mode 100644 index 0000000..5539c9e --- /dev/null +++ b/giteapc.make @@ -0,0 +1,19 @@ +# giteapc: version=1 depends=Lephenixnoir/sh-elf-gcc + +-include giteapc-config.make + +PREFIX ?= $(shell sh-elf-gcc --print-search-dirs | grep install | sed 's/install: //') + +configure: + @ true + +build: + @ make USEGCC=1 TOOLPREFIX=sh-elf- libdir="$(PREFIX)" includedir="$(PREFIX)/include" + +install: + @ make USEGCC=1 TOOLPREFIX=sh-elf- libdir="$(PREFIX)" includedir="$(PREFIX)/include" install-static install-headers + +uninstall: + @ echo "uninstall not supported for OpenLibm, skipping" + +.PHONY: configure build install uninstall