From 808a429881b8615e6c1270f2a5a04db300c3a508 Mon Sep 17 00:00:00 2001 From: Julius Werner Date: Fri, 13 Mar 2015 11:05:07 -0700 Subject: 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 Original-Commit-Id: c2543f25f7db61f93be96784eca3f4f65e3ffaa0 Original-Change-Id: Ia6a91f040ad4ef556cf7912cd82a73173dfec8cb Original-Signed-off-by: Julius Werner Original-Reviewed-on: https://chromium-review.googlesource.com/259947 Original-Reviewed-by: Mike Frysinger Original-Reviewed-by: Aaron Durbin Original-Reviewed-by: Patrick Georgi Reviewed-on: http://review.coreboot.org/9865 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- Makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Makefile') 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 -- cgit v1.2.3