1From af485c638c61fa883212ea424e676fbf90bee594 Mon Sep 17 00:00:00 2001
2From: Otavio Salvador <otavio@ossystems.com.br>
3Date: Tue, 1 Jul 2014 17:37:31 -0300
4Subject: [PATCH] build: Allow CC and prefix to be overriden
5
6Upstream-Status: Pending
7
8Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
9---
10 makefile |    4 ++--
11 1 file changed, 2 insertions(+), 2 deletions(-)
12
13diff --git a/makefile b/makefile
14index 22e7d0d..809cc8f 100644
15--- a/makefile
16+++ b/makefile
17@@ -18,7 +18,7 @@
18 KBUILD_OUTPUT =
19
20 DEBUG	=
21-CC	= $(CROSS_COMPILE)gcc
22+CC	?= $(CROSS_COMPILE)gcc
23 VER     = -DVER=$(version)
24 CFLAGS	= -Wall $(VER) $(incdefs) $(DEBUG) $(EXTRA_CFLAGS)
25 LDLIBS	= -lm -lrt -pthread $(EXTRA_LDFLAGS)
26@@ -43,7 +43,7 @@ incdefs := $(shell $(srcdir)/incdefs.sh)
27 version := $(shell $(srcdir)/version.sh $(srcdir))
28 VPATH	= $(srcdir)
29
30-prefix	= /usr/local
31+prefix	?= /usr/local
32 sbindir	= $(prefix)/sbin
33 mandir	= $(prefix)/man
34 man8dir	= $(mandir)/man8
35--
361.7.10.4
37
38