]> git.itanic.dy.fi Git - sdl-planets/commitdiff
Makefile: honour CC variable given by user master
authorTimo Kokkonen <kaapeli@itanic.dy.fi>
Sat, 30 Jul 2011 19:32:21 +0000 (22:32 +0300)
committerTimo Kokkonen <kaapeli@itanic.dy.fi>
Sat, 30 Jul 2011 19:32:21 +0000 (22:32 +0300)
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 <kaapeli@itanic.dy.fi>
Makefile

index 1eab2be6ab3fdb905e50220e2175b29e190fee5e..31704d8a1c8a373024bab55267aeef9ffce581ee 100644 (file)
--- 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