aboutsummaryrefslogtreecommitdiffstats
path: root/tmk_core/native.mk
diff options
context:
space:
mode:
authorGravatar Fred Sundvik <fsundvik@gmail.com>2016-08-22 09:16:08 +0300
committerGravatar Fred Sundvik <fsundvik@gmail.com>2016-08-27 21:57:49 +0300
commit8a9aac6e3237a505682cc7249a8dfff6cb964343 (patch)
treeae1882bcf8e8f9a9f81e792d3ffcb9bd4dfb49f3 /tmk_core/native.mk
parent27a673f5cf75747fe73641059aae60e9b53a1c78 (diff)
downloadqmk_firmware-8a9aac6e3237a505682cc7249a8dfff6cb964343.tar.gz
Rules for compiling and linking google test
Diffstat (limited to 'tmk_core/native.mk')
-rw-r--r--tmk_core/native.mk24
1 files changed, 24 insertions, 0 deletions
diff --git a/tmk_core/native.mk b/tmk_core/native.mk
new file mode 100644
index 000000000..50232ee9b
--- /dev/null
+++ b/tmk_core/native.mk
@@ -0,0 +1,24 @@
+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
+
+CFLAGS += $(COMPILEFLAGS)
+CFLAGS += -fno-inline-small-functions
+CFLAGS += -fno-strict-aliasing
+
+CPPFLAGS += $(COMPILEFLAGS)
+CPPFLAGS += -fno-exceptions
+CPPFLAGS += -std=gnu++11 \ No newline at end of file