mirror of
https://git.planet-casio.com/Lephenixnoir/OpenLibm.git
synced 2024-12-26 19:43:40 +01:00
add support for quick build with GiteaPC
This commit is contained in:
parent
69b3140a0d
commit
22428cc5d2
3 changed files with 32 additions and 1 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -5,3 +5,7 @@
|
|||
*.so*
|
||||
*.dylib*
|
||||
*.pc
|
||||
|
||||
# GiteaPC config files
|
||||
giteapc-config-*.make
|
||||
giteapc-config.make
|
||||
|
|
10
README.md
10
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.
|
||||
|
|
19
giteapc.make
Normal file
19
giteapc.make
Normal 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
|
Loading…
Reference in a new issue