From: Timo Kokkonen Date: Sat, 30 Jul 2011 19:32:21 +0000 (+0300) Subject: Makefile: honour CC variable given by user X-Git-Url: http://git.itanic.dy.fi/?p=sdl-planets;a=commitdiff_plain;h=55b0fafa6451116840c5b6d6a77182d12cc62108 Makefile: honour CC variable given by user If user wants to override the default compiler (for example with clang), the CC variable inherited from the environment should be left as is. Signed-off-by: Timo Kokkonen --- diff --git a/Makefile b/Makefile index 1eab2be..31704d8 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ CFLAGS=$(SDL_CONFIG) -Wall -O2 -g LIBS=$(SDL_LIBS) -lm -lrt -CC=gcc +CC ?= gcc SPARSE=sparse CHECKPATCH=/usr/src/linux/scripts/checkpatch.pl