2017-07-11 21:05:01 +02:00
|
|
|
SYSTEM_TYPE := $(shell gcc -dumpmachine)
|
|
|
|
|
2016-08-22 08:16:08 +02:00
|
|
|
CC = gcc
|
2020-01-04 02:21:08 +01:00
|
|
|
OBJCOPY =
|
|
|
|
OBJDUMP =
|
|
|
|
SIZE =
|
|
|
|
AR =
|
|
|
|
NM =
|
|
|
|
HEX =
|
|
|
|
EEP =
|
2016-08-22 08:16:08 +02:00
|
|
|
BIN =
|
|
|
|
|
|
|
|
|
|
|
|
COMPILEFLAGS += -funsigned-char
|
|
|
|
COMPILEFLAGS += -funsigned-bitfields
|
|
|
|
COMPILEFLAGS += -ffunction-sections
|
|
|
|
COMPILEFLAGS += -fdata-sections
|
|
|
|
COMPILEFLAGS += -fshort-enums
|
2017-07-11 21:05:01 +02:00
|
|
|
ifneq ($(findstring mingw, ${SYSTEM_TYPE}),)
|
|
|
|
COMPILEFLAGS += -mno-ms-bitfields
|
|
|
|
endif
|
2016-08-22 08:16:08 +02:00
|
|
|
|
|
|
|
CFLAGS += $(COMPILEFLAGS)
|
|
|
|
CFLAGS += -fno-inline-small-functions
|
|
|
|
CFLAGS += -fno-strict-aliasing
|
|
|
|
|
2020-01-04 02:21:08 +01:00
|
|
|
CXXFLAGS += $(COMPILEFLAGS)
|
|
|
|
CXXFLAGS += -fno-exceptions
|
|
|
|
CXXFLAGS += -std=gnu++11
|