From 637ab36596a6122a4c034d4368d0c98e568bf6de Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Wed, 17 Jun 2020 20:02:26 +0200 Subject: [PATCH] build: Deactivate implicit build make(1) rules. The new comment explains why. --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index a993946..76ab5eb 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,12 @@ +# Implicit rules are implemented in make as suffix rules. The following rule +# empties the suffix list to disable the predefined implicit rules. This +# increases performance and avoids hard-to-debug behaviour. +.SUFFIXES: +MAKEFLAGS += -Rr +ifeq ("$(origin CC)", "default") + CC := cc +endif + # where to install PREFIX ?= /usr/local libdir := $(PREFIX)/lib -- 2.39.2