mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-11-25 12:46:41 +00:00
30 lines
538 B
Makefile
30 lines
538 B
Makefile
SYSTEM_TYPE := $(shell gcc -dumpmachine)
|
|
|
|
CC = gcc
|
|
OBJCOPY =
|
|
OBJDUMP =
|
|
SIZE =
|
|
AR =
|
|
NM =
|
|
HEX =
|
|
EEP =
|
|
BIN =
|
|
|
|
|
|
COMPILEFLAGS += -funsigned-char
|
|
COMPILEFLAGS += -funsigned-bitfields
|
|
COMPILEFLAGS += -ffunction-sections
|
|
COMPILEFLAGS += -fdata-sections
|
|
COMPILEFLAGS += -fshort-enums
|
|
ifneq ($(findstring mingw, ${SYSTEM_TYPE}),)
|
|
COMPILEFLAGS += -mno-ms-bitfields
|
|
endif
|
|
|
|
CFLAGS += $(COMPILEFLAGS)
|
|
CFLAGS += -fno-inline-small-functions
|
|
CFLAGS += -fno-strict-aliasing
|
|
|
|
CXXFLAGS += $(COMPILEFLAGS)
|
|
CXXFLAGS += -fno-exceptions
|
|
CXXFLAGS += -std=gnu++11
|