gint's control and diagnostic application.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

86 lines
2.7KB

  1. #---
  2. # fxSDK project configuration file for gintctl
  3. #---
  4. # Project name, should be at most 8 bytes long.
  5. # (You can also specify NAME_G1A or NAME_G3A to override individually.)
  6. NAME := gintctl
  7. NAME_G3A :=
  8. # Internal name, should be '@' followed by at most 7 uppercase letters.
  9. # WARNING: If this convention is not followed, the add-in might not appear in
  10. # the main menu of the calculator!
  11. INTERNAL := @GINTCTL
  12. # Output file name. The default is to take <NAME>, replace spaces with dashes,
  13. # and add .g1a (or .g3a). You can specify a different folder if you want.
  14. TARGET_FX :=
  15. TARGET_CG :=
  16. # fx-9860G icon location
  17. ICON_FX = assets-fx/icon.png
  18. # fx-CG 50 icon locations
  19. ICON_CG_UNS = assets-cg/icon-uns.png
  20. ICON_CG_SEL = assets-cg/icon-sel.png
  21. #---
  22. # Toolchain selection
  23. #---
  24. # Toolchain for fx9860g. Please see also CFLAGS_FX below.
  25. TOOLCHAIN_FX := sh-elf
  26. # Toolchain for fxcg50. Please see also CFLAGS_CG below.
  27. TOOLCHAIN_CG := sh-elf
  28. #---
  29. # Compiler flags
  30. #---
  31. # Base compiler flags for the fxSDK, you usually want to keep these.
  32. CFLAGS := -mb -ffreestanding -nostdlib -fstrict-volatile-bitfields
  33. # Platform-specific compiler flags.
  34. # <> If you are using sh3eb-elf, use -m3. (You can do this on both FX and CG.)
  35. # <> If you are using sh4eb-elf, use -m4-nofpu. (Not ideal on FX but works.)
  36. # <> If you are using sh4eb-nofpu-elf, then your compiler will likely use the
  37. # FPU and cause problems on the calculator. Consider another configuration.
  38. # <> If you are using an sh-elf with several targets, specify whichever you
  39. # support. I recommend -m3 on FX and -m4-nofpu on CG.
  40. # Please see also TOOLCHAIN_FX and TOOLCHAIN_CG above.
  41. CFLAGS_FX := -D FX9860G -m3
  42. CFLAGS_CG := -D FXCG50 -m4-nofpu
  43. # Additional compiler flags, change to your own taste!
  44. CFLAGS += -Wall -Wextra -Os
  45. # Include paths. Add one -I option for each folder from which you want to
  46. # be able to include files with #include<>.
  47. INCLUDE := -I include
  48. # Libraries. Add one -l option for each library you are using, and also
  49. # suitable -L options if you have library files in custom folders. To use
  50. # fxlib, add libfx.a to the project directory and use "-L . -lfx".
  51. LIBS := -lprof
  52. # Base linker flags for the fxSDK, you usually want to keep these.
  53. LDFLAGS_FX := -T fx9860g.ld -lgint-fx $(LIBS) -lgint-fx -lgcc
  54. LDFLAGS_CG := -T fxcg50.ld -lgint-cg $(LIBS) -lgint-cg -lgcc
  55. # Additional linker flags, if you need any.
  56. LDFLAGS :=
  57. # Additional platform-specific linker flags.
  58. LDFLAGS_FX += -Wl,-Map=build-fx/map
  59. LDFLAGS_CG += -Wl,-Map=build-cg/map
  60. #---
  61. # File conversion parameters
  62. #---
  63. # Parameters for the hexadecimal font on fx9860g
  64. FONT.hexa.png = charset:print grid.size:3x5 grid.padding:1
  65. IMG.swift.png = profile:p4
  66. IMG.swords.png = profile:p8