2019-12-30 16:31:03 +01:00
|
|
|
# Global option use in each Makefile
|
|
|
|
|
|
|
|
# Tools
|
2020-03-20 22:47:05 +01:00
|
|
|
COMPILER := sh-elf-
|
2019-12-30 16:31:03 +01:00
|
|
|
CC := $(COMPILER)gcc
|
2020-03-18 17:48:53 +01:00
|
|
|
LD := $(COMPILER)ld
|
2019-12-30 16:31:03 +01:00
|
|
|
OBJCOPY := $(COMPILER)objcopy
|
|
|
|
OBJDUMP := $(COMPILER)objdump
|
|
|
|
WRAPPER := g1a-wrapper
|
|
|
|
|
|
|
|
# Flags
|
|
|
|
CFLAGS := -Werror -Wall -W -Wextra -std=c18 -m3 -mb -mrenesas \
|
|
|
|
-ffreestanding -nostdlib -fstrict-volatile-bitfields \
|
|
|
|
-Wno-unused-const-variable -Wno-unused-function \
|
|
|
|
-Wno-unused-variable -Wno-unused-but-set-variable \
|
2020-03-21 20:02:27 +01:00
|
|
|
-Wno-unused-parameter -Wno-pointer-to-int-cast
|
2019-12-30 16:31:03 +01:00
|
|
|
|
|
|
|
# Colors
|
|
|
|
red := \033[1;31m
|
|
|
|
green := \033[1;32m
|
|
|
|
blue := \033[1;34m
|
|
|
|
white := \033[1;37m
|
|
|
|
nocolor := \033[1;0m
|
|
|
|
|
|
|
|
|
|
|
|
define n
|
|
|
|
# Force newline character
|
|
|
|
|
|
|
|
endef
|