2017-03-01 11:24:11 +01:00
|
|
|
export CC = $(PREFIX)gcc
|
|
|
|
export CXX = $(PREFIX)g++
|
|
|
|
export CCAS ?= $(CC)
|
2015-07-10 11:57:43 +02:00
|
|
|
ifeq ($(LTO),1)
|
2017-03-01 11:24:11 +01:00
|
|
|
export AR = $(PREFIX)gcc-ar
|
2015-07-10 11:57:43 +02:00
|
|
|
else
|
2017-03-01 11:24:11 +01:00
|
|
|
export AR = $(PREFIX)ar
|
2015-07-10 11:57:43 +02:00
|
|
|
endif
|
2017-03-01 11:24:11 +01:00
|
|
|
export AS = $(PREFIX)as
|
|
|
|
export LINK = $(PREFIX)gcc
|
|
|
|
export SIZE = $(PREFIX)size
|
|
|
|
export OBJCOPY ?= $(shell command -v $(PREFIX)objcopy gobjcopy objcopy | head -n 1)
|
2016-10-31 22:28:43 +01:00
|
|
|
ifeq ($(OBJCOPY),)
|
|
|
|
$(warning objcopy not found. Hex file will not be created.)
|
2017-03-01 11:24:11 +01:00
|
|
|
export OBJCOPY = true
|
2016-10-31 22:28:43 +01:00
|
|
|
endif
|
2017-03-01 11:24:11 +01:00
|
|
|
export OBJDUMP = $(PREFIX)objdump
|
2017-10-06 13:51:47 +02:00
|
|
|
# We use GDB for debugging
|
|
|
|
include $(RIOTMAKE)/tools/gdb.inc.mk
|