summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Werner <jwerner@chromium.org>2015-03-13 11:05:07 -0700
committerPatrick Georgi <pgeorgi@google.com>2015-04-22 08:41:54 +0200
commit808a429881b8615e6c1270f2a5a04db300c3a508 (patch)
tree072090fba4b2e7d9e9dfb80d3528169e025e6372
parent8eb99d052429b139ec328c7418fbe9c5070064fb (diff)
downloadcoreboot-808a429881b8615e6c1270f2a5a04db300c3a508.tar.xz
Makefile: Disable implicit rules
This patch disables implicit make rules (like %.o: %.c) from our build system, since we don't use them and they can cause unexpected results when there's a mistake in the Makefiles. BRANCH=None BUG=chromium:466469 TEST=emerge-falco coreboot fails with only this patch and succeeds with this and the $(src-to-obj) fix. Change-Id: I7478adaddbbeaa2226fd941ffacfce2577ba59ba Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Commit-Id: c2543f25f7db61f93be96784eca3f4f65e3ffaa0 Original-Change-Id: Ia6a91f040ad4ef556cf7912cd82a73173dfec8cb Original-Signed-off-by: Julius Werner <jwerner@chromium.org> Original-Reviewed-on: https://chromium-review.googlesource.com/259947 Original-Reviewed-by: Mike Frysinger <vapier@chromium.org> Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org> Original-Reviewed-by: Patrick Georgi <pgeorgi@chromium.org> Reviewed-on: http://review.coreboot.org/9865 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e5255f80ac..14e159898c 100644
--- a/Makefile
+++ b/Makefile
@@ -74,6 +74,9 @@ ifneq ($(Q),)
endif
endif
+# Disable implicit/built-in rules to make Makefile errors fail fast.
+.SUFFIXES:
+
HOSTCC := gcc
HOSTCXX = g++
HOSTCFLAGS := -g