Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | From af485c638c61fa883212ea424e676fbf90bee594 Mon Sep 17 00:00:00 2001 |
| 2 | From: Otavio Salvador <otavio@ossystems.com.br> |
| 3 | Date: Tue, 1 Jul 2014 17:37:31 -0300 |
| 4 | Subject: [PATCH] build: Allow CC and prefix to be overriden |
| 5 | |
| 6 | Upstream-Status: Pending |
| 7 | |
| 8 | Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> |
| 9 | --- |
| 10 | makefile | 4 ++-- |
| 11 | 1 file changed, 2 insertions(+), 2 deletions(-) |
| 12 | |
| 13 | diff --git a/makefile b/makefile |
| 14 | index 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 $(EXTRA_LDFLAGS) |
| 26 | @@ -35,7 +35,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 | -- |
| 36 | 1.7.10.4 |
| 37 | |