home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / programm / 3857 < prev    next >
Encoding:
Internet Message Format  |  1992-07-22  |  1.1 KB

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