Non-recursive make for linux kernel

Up: Martijn's Homepage  
Prev: Australia Post Barcode Perl Module   Next: The towers of Hanoi  

This is just an example of the a non-recursive makefile for the Linux kernel. It only requires replacing the Rules.Make and Makefile in the top level directory.

It's not perfect and in some subdirectories it needs some work to work perfectly, but here you can look at it.

When not much has changed it is quite noticeably faster, since after the first time all the inodes are cached and make simply scans them and does what is necessary. No spawned processes.

On Nelson Minar's suggestion, I'm including this link to Recursive Make Considered Harmful. Good stuff there.

These files are modified 2.2.13-pre13 Makefiles.

Rules.make

Makefile


Up: Martijn's Homepage  
Prev: Australia Post Barcode Perl Module   Next: The towers of Hanoi  
By Martijn van Oosterhout (kleptog (at) svana.org)
Copyright © 2000-2006 - Last modified 30/03/2000