honor toolchain setting and default to sh-elf

This commit is contained in:
Lephenixnoir 2023-08-04 11:49:15 +02:00
parent af424d1baa
commit e0b952503b
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
3 changed files with 6 additions and 6 deletions

View File

@ -1,5 +1,5 @@
# Casio fx9860g library
TARGET = libTeX-fx.a
CFLAGS = -m3 -mb -D TEX_PLATFORM_FX9860G -D FX9860G -Os -ffreestanding
CC = sh3eb-elf-gcc
AR = sh3eb-elf-ar
CC = $(TOOLCHAIN)-gcc
AR = $(TOOLCHAIN)-ar

View File

@ -1,5 +1,5 @@
# Casio fxcg50 library
TARGET = libTeX-cg.a
CFLAGS = -m4-nofpu -mb -D TEX_PLATFORM_FXCG50 -D FXCG50 -Os -ffreestanding
CC = sh4eb-elf-gcc
AR = sh4eb-elf-ar
CC = $(TOOLCHAIN)-gcc
AR = $(TOOLCHAIN)-ar

4
configure vendored
View File

@ -60,8 +60,8 @@ fi
# Guess toolchains
[[ $platform == fx9860g && -z $toolchain ]] && toolchain=sh3eb-elf
[[ $platform == fxcg50 && -z $toolchain ]] && toolchain=sh4eb-elf
[[ $platform == fx9860g && -z $toolchain ]] && toolchain=sh-elf
[[ $platform == fxcg50 && -z $toolchain ]] && toolchain=sh-elf
# Guess compiler paths