mirror of
https://git.planet-casio.com/Lephenixnoir/OpenLibm.git
synced 2024-12-26 19:43:40 +01:00
65aaba96e1
This is because all of these headers are included in direct style with no subfolder so we need them to be in a quite public `include/` folder. The Makefile installs in `include/openlibm/` but this only works with extra `-I` flags that are quite annoying to enforce. With this change, the only OpenLibm headers that are installed are named `openlibm_*.h`, which is sufficient in terms of namespacing. Also add a symlink libm.a -> libopenlibm.a.
24 lines
601 B
Makefile
24 lines
601 B
Makefile
# giteapc: version=1 depends=Lephenixnoir/fxsdk,Lephenixnoir/sh-elf-gcc
|
|
|
|
-include giteapc-config.make
|
|
|
|
# Use the fxSDK's default paths unless specified otherwise on the command line
|
|
LIBDIR ?= $(shell fxsdk path lib)
|
|
INCDIR ?= $(shell fxsdk path include)
|
|
|
|
FLAGS := USEGCC=1 TOOLPREFIX=sh-elf- CC=sh-elf-gcc AR=sh-elf-ar \
|
|
libdir="$(LIBDIR)" includedir="$(INCDIR)"
|
|
|
|
configure:
|
|
@ true
|
|
|
|
build:
|
|
@ make $(FLAGS)
|
|
|
|
install:
|
|
@ make $(FLAGS) install-static-superh install-headers-superh
|
|
|
|
uninstall:
|
|
@ echo "uninstall not supported for OpenLibm, skipping"
|
|
|
|
.PHONY: configure build install uninstall
|