add support for quick build with GiteaPC

This commit is contained in:
Lephenixnoir 2021-01-25 17:57:54 +01:00
parent 69b3140a0d
commit 22428cc5d2
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495
3 changed files with 32 additions and 1 deletions

4
.gitignore vendored
View file

@ -5,3 +5,7 @@
*.so*
*.dylib*
*.pc
# GiteaPC config files
giteapc-config-*.make
giteapc-config.make

View file

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

19
giteapc.make Normal file
View file

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