[SeaBIOS] [PATCH] Makefile: Allow to override CPP variable
Paul Menzel
paulepanter at users.sourceforge.net
Sat May 23 16:15:47 CEST 2015
Date: Sat, 23 May 2015 16:02:08 +0200
Using the conditional assignment operator `?=` [1] instead of `=` makes
it possible to override the variable `CPP` by using an environment
variable
$ CPP=cpp-5 make
or directly setting it.
$ make CPP=cpp-5
[1] https://www.gnu.org/software/make/manual/make.html#Setting
Signed-off-by: Paul Menzel <paulepanter at users.sourceforge.net>
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 01cadda..63bff49 100644
--- a/Makefile
+++ b/Makefile
@@ -23,7 +23,7 @@ OBJCOPY=$(CROSS_PREFIX)objcopy
OBJDUMP=$(CROSS_PREFIX)objdump
STRIP=$(CROSS_PREFIX)strip
PYTHON=python
-CPP=cpp
+CPP?=cpp
IASL:=iasl
LD32BIT_FLAG:=-melf_i386
--
2.1.4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <http://www.seabios.org/pipermail/seabios/attachments/20150523/b75a6278/attachment.asc>
More information about the SeaBIOS
mailing list