[PATCH] makefiles: Disable implicit rules.
Zebediah Figura
z.figura12 at gmail.com
Sun Nov 15 11:12:43 CST 2020
This improves the time of a full-tree build with no out-of-date objects from
~3.7s to ~0.7s on one of my development machines.
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
Makefile.in | 3 +++
tools/makedep.c | 3 +++
2 files changed, 6 insertions(+)
diff --git a/Makefile.in b/Makefile.in
index 307a95b3b1a..3dc76398d85 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -89,6 +89,9 @@ TOP_INSTALL_DEV = @TOP_INSTALL_DEV@
@ALL_VARS_RULES@
@SET_MAKE@
+# Disable implicit rules
+.SUFFIXES:
+
all: wine
@echo "Wine build complete."
diff --git a/tools/makedep.c b/tools/makedep.c
index 90a21ef825c..ab685b1d596 100644
--- a/tools/makedep.c
+++ b/tools/makedep.c
@@ -4069,6 +4069,9 @@ static void output_dependencies( struct makefile *make )
if (!found) output( "\n%s (everything below this line is auto-generated; DO NOT EDIT!!)\n", separator );
+ /* disable implicit rules */
+ output( ".SUFFIXES:\n" );
+
if (make == top_makefile)
{
for (i = 0; i < subdirs.count; i++) output_sources( submakes[i] );
--
2.29.2
More information about the wine-devel
mailing list