mirror of
https://git.planet-casio.com/Lephenixnoir/fxsdk.git
synced 2025-01-04 07:53:35 +01:00
70ff9ba6b8
The older FX9860G and FXCG50 are still supported for backwards compatibility, but are deprecated.
88 lines
3 KiB
INI
88 lines
3 KiB
INI
#---
|
|
# fxSDK project configuration file for @NAME@
|
|
#---
|
|
|
|
# Project name, should be at most 8 bytes long.
|
|
# (You can also specify NAME_G1A or NAME_G3A to override individually.)
|
|
NAME := @NAME@
|
|
|
|
# Internal name, should be '@' followed by at most 7 uppercase letters.
|
|
# WARNING: If this convention is not followed, the add-in might not appear in
|
|
# the main menu of the calculator!
|
|
INTERNAL := @INTERNAL@
|
|
|
|
# Output file name. The default is to take <NAME>, replace spaces with dashes,
|
|
# and add .g1a (or .g3a). You can specify a different folder if you want.
|
|
TARGET_FX :=
|
|
TARGET_CG :=
|
|
|
|
# fx-9860G icon location
|
|
ICON_FX = assets-fx/icon.png
|
|
# fx-CG 50 icon locations
|
|
ICON_CG_UNS = assets-cg/icon-uns.png
|
|
ICON_CG_SEL = assets-cg/icon-sel.png
|
|
|
|
#---
|
|
# Toolchain selection
|
|
#---
|
|
|
|
# Toolchain for fx9860g. Please see also CFLAGS_FX below.
|
|
TOOLCHAIN_FX := sh-elf
|
|
|
|
# Toolchain for fxcg50. Please see also CFLAGS_CG below.
|
|
TOOLCHAIN_CG := sh-elf
|
|
|
|
#---
|
|
# Compiler flags
|
|
#---
|
|
|
|
# Base compiler flags for the fxSDK, you usually want to keep these.
|
|
CFLAGS := -mb -ffreestanding -nostdlib -fstrict-volatile-bitfields
|
|
|
|
# Platform-specific compiler flags.
|
|
# <> If you are using sh3eb-elf, use -m3. (You can do this on both FX and CG.)
|
|
# <> If you are using sh4eb-elf, use -m4-nofpu. (Not ideal on FX but works.)
|
|
# <> If you are using sh4eb-nofpu-elf, then your compiler will likely use the
|
|
# FPU and cause problems on the calculator. Consider another configuration.
|
|
# <> If you are using an sh-elf with several targets, specify whichever you
|
|
# support. I recommend -m3 on FX and -m4-nofpu on CG.
|
|
# Please see also TOOLCHAIN_FX and TOOLCHAIN_CG above.
|
|
CFLAGS_FX := -D FX9860G -D TARGET_FX9860G -m3
|
|
CFLAGS_CG := -D FXCG50 -D TARGET_FXCG50 -m4-nofpu
|
|
|
|
# Additional compiler flags, change to your own taste!
|
|
CFLAGS += -Wall -Wextra -Wno-missing-field-initializers -Os
|
|
|
|
# Include paths. Add one -I option for each folder from which you want to
|
|
# be able to include files with #include<>. The Makefile provides a variable
|
|
# GCC_INCLUDE_FX/GCC_INCLUDE_CG that represents the default include folder,
|
|
# which is useful for some libraries such as OpenLibm.
|
|
INCLUDE_FX = -I include
|
|
INCLUDE_CG = -I include
|
|
|
|
# Libraries. Add one -l option for each library you are using, and also
|
|
# suitable -L options if you have library files in custom folders. To use
|
|
# fxlib, add libfx.a to the project directory and use "-L . -lfx".
|
|
LIBS_FX :=
|
|
LIBS_CG :=
|
|
|
|
# Base linker flags for the fxSDK, you usually want to keep these.
|
|
LDFLAGS_FX := -T fx9860g.ld -lgint-fx $(LIBS_FX) -lgint-fx -lgcc
|
|
LDFLAGS_CG := -T fxcg50.ld -lgint-cg $(LIBS_CG) -lgint-cg -lgcc
|
|
|
|
# Additional linker flags, if you need any.
|
|
LDFLAGS :=
|
|
|
|
# Additional platform-specific linker flags.
|
|
LDFLAGS_FX += -Wl,-Map=build-fx/map
|
|
LDFLAGS_CG += -Wl,-Map=build-cg/map
|
|
|
|
#---
|
|
# File conversion parameters
|
|
#---
|
|
|
|
# Here you can add fxconv options for each converted file, individually.
|
|
# The syntax is "<type>.<file>". For example, to specify the parameters for a
|
|
# font named "hexa.png", you might write:
|
|
#
|
|
# FONT.hexa.png = charset:print grid.size:3x5 grid.padding:1
|