Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!auspex!guy From: guy@auspex.auspex.com (Guy Harris) Newsgroups: comp.unix.programmer Subject: Re: Makefiles -- .c and .h Message-ID: <4455@auspex.auspex.com> Date: 19 Nov 90 19:57:57 GMT References: <6268@minyos.xx.rmit.oz.au> <1990Nov16.171816.7173@ssd.kodak.com> <1990Nov18.204706.7044@athena.mit.edu> Organization: Auspex Systems, Santa Clara Lines: 13 > How does the SunOs make figure out which files were included by each source >file? Does it do a "cc -E" on the source file, or something similar? "Something similar". Basically, it provokes the compiler into producing a dependency list as it compiles. >If so, isn't that (a) slow since it has to do it again each time the .c >file changes, Well, if the ".c" file changes, it has to compile it in any case. There is some extra overhead in getting the compiler (in particular, the "C preprocessor" phase of the compiler) to produce the dependency list as it compiles.