~ruther/qmk_firmware

ref: c27d96b4c1ed8aa5bf9cad20380b8f723b149a83 qmk_firmware/tmk_core/native.mk -rw-r--r-- 544 bytes
c27d96b4 — Drashna Jaelre Fix ATSAM's USB HID descriptor to support higher heycodes 7 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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

CPPFLAGS += $(COMPILEFLAGS)
CPPFLAGS += -fno-exceptions
CPPFLAGS += -std=gnu++11