From: Andre Noll Date: Wed, 17 Jun 2020 18:02:26 +0000 (+0200) Subject: build: Deactivate implicit build make(1) rules. X-Git-Tag: v0.2.0~5^2 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=637ab36596a6122a4c034d4368d0c98e568bf6de;p=osl.git build: Deactivate implicit build make(1) rules. The new comment explains why. --- 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