]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - Makefile.real
Deactivate implicit make rules.
[paraslash.git] / Makefile.real
index 59579e27cda64920d50184776eb71143768199f3..ee0bf447b53eb5ae957d63fb8977a0d7a5a85538 100644 (file)
@@ -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
+
 vardir := /var/paraslash
 mandir := $(datarootdir)/man/man1
 STRIP := $(CROSS_COMPILE)strip