home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.programmer:3857 comp.unix.questions:9320 comp.lang.c:11492
- Path: sparky!uunet!wupost!waikato.ac.nz!aukuni.ac.nz!ecmtwhk
- Newsgroups: comp.unix.programmer,comp.unix.questions,comp.lang.c
- Subject: Re: #include file dependancies
- Message-ID: <1992Jul23.013154.22987@ccu1.aukuni.ac.nz>
- From: ecmtwhk@ccu1.aukuni.ac.nz (Thomas Koenig)
- Date: Thu, 23 Jul 1992 01:31:54 GMT
- References: <AJG.92Jul22114544@sp1.ccd.harris.com>
- Distribution: comp
- Organization: University of Auckland, New Zealand.
- Lines: 14
-
- ajg@controls.ccd.harris.com (Arnold Goldberg) writes:
-
- >We here have a very large source tree.
-
- >What I'm looking for is a script or utility that will somehow tell
- >me which #include files are not actually needed for a source file.
-
- Gcc (or rather, gcc's preprocessor) has the -M flag which will generate
- makefile dependencies for the specified source files; check out the manpage
- for your C compiler to see wether it also supports it.
- --
- Thomas Koenig, ecmtwhk@ccu1.aukuni.ac.nz, ib09@rz.uni-karlsruhe.de
- The joy of engineering is to find a straight line on a double logarithmic
- diagram.
-