makefile: allow CC to be replaced

this allows building with clang by doing:
  CC=clang PREFIX=llvm- make
This commit is contained in:
Steffen Jaeckel 2013-10-01 23:08:30 +02:00
parent 61a3206f06
commit 3eae4b42fb

View File

@ -13,7 +13,7 @@ ifndef PREFIX
PREFIX=
endif
CC=$(PREFIX)gcc
CC?=$(PREFIX)gcc
LD=$(PREFIX)ld
AR=$(PREFIX)ar