On Thu, Feb 17, 2005 at 07:52:44PM -0800, keeme xu wrote: > Hi all: > Recently, I am reading the Makefile under linux > and encountered some problem. > Can anybody explain these code to me? > //================================================ > dep-files: scripts/mkdep archdep > include/linux/version.h > scripts/mkdep -- init/*.c > .depend > scripts/mkdep -- `find $(FINDHPATH) -name SCCS -prune > -o -follow -name \*.h ! -name modversions.h -print` > > .hdepend > $(MAKE) $(patsubst %,_sfdep_%,$(SUBDIRS)) > _FASTDEP_ALL_SUB_DIRS="$(SUBDIRS)" > //================================================ > > what do the scripts/mkdep do? It is part of the 2.5 kernle's way to find dependencies for a given file. mkdep parse the file and avoid comments etc. to find what CONFIG_ symbols ar used. ee the code in scripts/mkdep.c for more details.
This part has been made radically different in the 2.6 kernel. Sam ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ kbuild-devel mailing list kbuild-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kbuild-devel