add support for quick build with GiteaPC

dev
Lephenixnoir 2 years ago
parent 69b3140a0d
commit 22428cc5d2
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
  1. 4
      .gitignore
  2. 10
      README.md
  3. 19
      giteapc.make

4
.gitignore vendored

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

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

@ -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
Loading…
Cancel
Save