Path: utzoo!utgpu!watserv1!watmath!att!dptg!ulysses!andante!princeton!udel!wuarchive!zaphod.mps.ohio-state.edu!think.com!paperboy!meissner From: meissner@osf.org (Michael Meissner) Newsgroups: comp.unix.programmer Subject: Re: Makefiles -- .c and .h Message-ID: Date: 20 Nov 90 17:05:55 GMT References: <6268@minyos.xx.rmit.oz.au> <1990Nov16.171816.7173@ssd.kodak.com> <1990Nov18.204706.7044@athena.mit.edu> <4455@auspex.auspex.com> Sender: news@OSF.ORG Organization: Open Software Foundation Lines: 20 In-reply-to: guy@auspex.auspex.com's message of 19 Nov 90 19:57:57 GMT In article <4455@auspex.auspex.com> guy@auspex.auspex.com (Guy Harris) writes: | > 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. I added this type of functionality to GCC's cpp. I added a new switch -MD, which runs the compile as normal, but places the dependency list for foo.c into foo.d in the current directory (CMU had done a similar thing previously). Part of the OSF/1 build process uses this and automatically updates the Makefiles. It was fairly simple to do providing you have source to the compiler (or a tame compiler wizard on hand).... -- Michael Meissner email: meissner@osf.org phone: 617-621-8861 Open Software Foundation, 11 Cambridge Center, Cambridge, MA, 02142 Considering the flames and intolerance, shouldn't USENET be spelled ABUSENET?