summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2013-08-15 23:06:26 +0200
committerFlorian Pritz <bluewind@xinu.at>2013-08-15 23:06:26 +0200
commit557565e33167d7fa93d0daa26cb19c182a4a942e (patch)
tree5bb4e17496170ee8c8394080bbf193eaa150031d
parente95ab1e3f2fd5c9ab1f79e1ce5d910b812de395f (diff)
Makefile: use CC from env if set
Allows us to run scan-build Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e33c1a6..3b2c172 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ MANDIR=$(PREFIX)/share/man
BINDIR=$(PREFIX)/bin
LIBDIR=$(PREFIX)/lib
MY_LIBDIR=$(LIBDIR)/fb-client
-CC=cc
+CC?=cc
CFLAGS:=-std=c99 -O2 -Wall -Wextra -pedantic $(CFLAGS)
LIBCURL:=$(shell pkg-config --silence-errors --libs --cflags libcurl)