mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Makefiles are not built using a Fortran compiler
@ 2005-02-08  3:02 Matthew Wilcox
  2005-02-08 12:23 ` Roman Zippel
  0 siblings, 1 reply; 9+ messages in thread
From: Matthew Wilcox @ 2005-02-08  3:02 UTC (permalink / raw)
  To: Sam Ravnborg, Kai Germaschewski; +Cc: linux-kernel, dholland


David Holland pointed out that Make has a lot of implicit suffix rules
built in and you can disable them by setting ".SUFFIXES:".  As an
example, checking the debugging information shows we no longer try to
compile anything from a '.f' suffix.  This turns out to be good for a 15%
speedup on a build with nothing to do; down from 29.1 seconds to 24.7
seconds on my K6.

Signed-off-by: Matthew Wilcox <matthew@wil.cx>

Index: Makefile
===================================================================
RCS file: /var/cvs/linux-2.6/Makefile,v
retrieving revision 1.338
diff -u -p -r1.338 Makefile
--- Makefile	6 Feb 2005 06:43:49 -0000	1.338
+++ Makefile	8 Feb 2005 02:39:28 -0000
@@ -4,6 +4,8 @@ SUBLEVEL = 11
 EXTRAVERSION =-rc3-pa3
 NAME=Woozy Numbat
 
+.SUFFIXES:
+
 # *DOCUMENTATION*
 # To see a list of typical targets execute "make help"
 # More info can be located in ./README
Index: scripts/Makefile.build
===================================================================
RCS file: /var/cvs/linux-2.6/scripts/Makefile.build,v
retrieving revision 1.9
diff -u -p -r1.9 Makefile.build
--- scripts/Makefile.build	12 Jan 2005 20:18:19 -0000	1.9
+++ scripts/Makefile.build	8 Feb 2005 02:39:28 -0000
@@ -4,6 +4,8 @@
 
 src := $(obj)
 
+.SUFFIXES:
+
 .PHONY: __build
 __build:
 

-- 
"Next the statesmen will invent cheap lies, putting the blame upon 
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince 
himself that the war is just, and will thank God for the better sleep 
he enjoys after this process of grotesque self-deception." -- Mark Twain

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-02-09  5:04 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-08  3:02 [PATCH] Makefiles are not built using a Fortran compiler Matthew Wilcox
2005-02-08 12:23 ` Roman Zippel
2005-02-08 15:44   ` Matthew Wilcox
2005-02-08 17:04     ` Ryan Anderson
2005-02-08 19:20     ` Sam Ravnborg
2005-02-08 19:26       ` Kai Germaschewski
2005-02-09  5:04         ` Sam Ravnborg
2005-02-08 21:27       ` Matthew Wilcox
2005-02-08 21:23     ` J.A. Magallon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®