aboutsummaryrefslogtreecommitdiff
path: root/tmk_core/native.mk
diff options
context:
space:
mode:
Diffstat (limited to 'tmk_core/native.mk')
-rw-r--r--tmk_core/native.mk34
1 files changed, 0 insertions, 34 deletions
diff --git a/tmk_core/native.mk b/tmk_core/native.mk
deleted file mode 100644
index eb2424ec5..000000000
--- a/tmk_core/native.mk
+++ /dev/null
@@ -1,34 +0,0 @@
1SYSTEM_TYPE := $(shell gcc -dumpmachine)
2GCC_VERSION := $(shell gcc --version 2>/dev/null)
3
4CC = $(CC_PREFIX) gcc
5OBJCOPY =
6OBJDUMP =
7SIZE =
8AR =
9NM =
10HEX =
11EEP =
12BIN =
13
14
15COMPILEFLAGS += -funsigned-char
16ifeq ($(findstring clang, ${GCC_VERSION}),)
17COMPILEFLAGS += -funsigned-bitfields
18endif
19COMPILEFLAGS += -ffunction-sections
20COMPILEFLAGS += -fdata-sections
21COMPILEFLAGS += -fshort-enums
22ifneq ($(findstring mingw, ${SYSTEM_TYPE}),)
23COMPILEFLAGS += -mno-ms-bitfields
24endif
25
26CFLAGS += $(COMPILEFLAGS)
27ifeq ($(findstring clang, ${GCC_VERSION}),)
28CFLAGS += -fno-inline-small-functions
29endif
30CFLAGS += -fno-strict-aliasing
31
32CXXFLAGS += $(COMPILEFLAGS)
33CXXFLAGS += -fno-exceptions
34CXXFLAGS += -std=gnu++11