2015-05-27 22:38:38 +02:00
|
|
|
export GDBPREFIX ?= $(PREFIX)
|
2015-04-22 15:41:37 +02:00
|
|
|
export CC = $(PREFIX)gcc
|
|
|
|
export CXX = $(PREFIX)g++
|
2015-07-10 11:57:43 +02:00
|
|
|
ifeq ($(LTO),1)
|
|
|
|
export AR = $(PREFIX)gcc-ar
|
|
|
|
else
|
2015-04-22 15:41:37 +02:00
|
|
|
export AR = $(PREFIX)ar
|
2015-07-10 11:57:43 +02:00
|
|
|
endif
|
2015-04-22 15:41:37 +02:00
|
|
|
export AS = $(PREFIX)as
|
|
|
|
export LINK = $(PREFIX)gcc
|
|
|
|
export SIZE = $(PREFIX)size
|
2016-10-31 22:28:43 +01:00
|
|
|
export OBJCOPY = $(shell command -v $(PREFIX)objcopy gobjcopy objcopy | head -n 1)
|
|
|
|
ifeq ($(OBJCOPY),)
|
|
|
|
$(warning objcopy not found. Hex file will not be created.)
|
|
|
|
export OBJCOPY = true
|
|
|
|
endif
|
2016-02-23 23:55:58 +01:00
|
|
|
export OBJDUMP = $(PREFIX)objdump
|
2015-05-27 22:38:38 +02:00
|
|
|
export DBG = $(GDBPREFIX)gdb
|