Chip 8 emulator made using gint
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.
 
 
 

85 lines
2.8 KiB

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