Makefile: add an optional compiler wrapper (#2066)
Use as 'make WRAPCC="ccache"', for example.
This commit is contained in:
parent
fe032edd9c
commit
569628789c
4
Makefile
4
Makefile
|
@ -76,9 +76,9 @@ else
|
||||||
endif
|
endif
|
||||||
CCFLAGS += -ffunction-sections -fno-jump-tables -fdata-sections
|
CCFLAGS += -ffunction-sections -fno-jump-tables -fdata-sections
|
||||||
AR = xtensa-lx106-elf-ar
|
AR = xtensa-lx106-elf-ar
|
||||||
CC = xtensa-lx106-elf-gcc
|
CC = $(WRAPCC) xtensa-lx106-elf-gcc
|
||||||
NM = xtensa-lx106-elf-nm
|
NM = xtensa-lx106-elf-nm
|
||||||
CPP = xtensa-lx106-elf-cpp
|
CPP = $(WRAPCC) xtensa-lx106-elf-gcc -E
|
||||||
OBJCOPY = xtensa-lx106-elf-objcopy
|
OBJCOPY = xtensa-lx106-elf-objcopy
|
||||||
FIRMWAREDIR = ../bin/
|
FIRMWAREDIR = ../bin/
|
||||||
UNAME_S := $(shell uname -s)
|
UNAME_S := $(shell uname -s)
|
||||||
|
|
Loading…
Reference in New Issue