forked from mirrors/qmk_userspace
Move tmk_core/common/<plat> (#13918)
This commit is contained in:
parent
43b9e23bae
commit
2728603fe6
107 changed files with 54 additions and 54 deletions
34
platforms/test/platform.mk
Normal file
34
platforms/test/platform.mk
Normal file
|
@ -0,0 +1,34 @@
|
|||
SYSTEM_TYPE := $(shell gcc -dumpmachine)
|
||||
GCC_VERSION := $(shell gcc --version 2>/dev/null)
|
||||
|
||||
CC = $(CC_PREFIX) gcc
|
||||
OBJCOPY =
|
||||
OBJDUMP =
|
||||
SIZE =
|
||||
AR =
|
||||
NM =
|
||||
HEX =
|
||||
EEP =
|
||||
BIN =
|
||||
|
||||
|
||||
COMPILEFLAGS += -funsigned-char
|
||||
ifeq ($(findstring clang, ${GCC_VERSION}),)
|
||||
COMPILEFLAGS += -funsigned-bitfields
|
||||
endif
|
||||
COMPILEFLAGS += -ffunction-sections
|
||||
COMPILEFLAGS += -fdata-sections
|
||||
COMPILEFLAGS += -fshort-enums
|
||||
ifneq ($(findstring mingw, ${SYSTEM_TYPE}),)
|
||||
COMPILEFLAGS += -mno-ms-bitfields
|
||||
endif
|
||||
|
||||
CFLAGS += $(COMPILEFLAGS)
|
||||
ifeq ($(findstring clang, ${GCC_VERSION}),)
|
||||
CFLAGS += -fno-inline-small-functions
|
||||
endif
|
||||
CFLAGS += -fno-strict-aliasing
|
||||
|
||||
CXXFLAGS += $(COMPILEFLAGS)
|
||||
CXXFLAGS += -fno-exceptions
|
||||
CXXFLAGS += -std=gnu++11
|
Loading…
Add table
Add a link
Reference in a new issue