home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sources / wanted / 3762 < prev    next >
Encoding:
Internet Message Format  |  1992-07-27  |  1.4 KB

  1. Xref: sparky comp.sources.wanted:3762 alt.sources.d:950 alt.sources.wanted:1283 gnu.misc.discuss:2557
  2. Path: sparky!uunet!cs.utexas.edu!swrinde!mips!sdd.hp.com!uakari.primate.wisc.edu!ames!agate!forney.berkeley.edu!jbuck
  3. From: jbuck@forney.berkeley.edu (Joe Buck)
  4. Newsgroups: comp.sources.wanted,alt.sources.d,alt.sources.wanted,gnu.misc.discuss
  5. Subject: Re: makedepend that works with C++
  6. Message-ID: <152bt1INNrhk@agate.berkeley.edu>
  7. Date: 28 Jul 92 02:37:21 GMT
  8. References: <HUTTAR.92Jul27201337@hp720a.itg.ti.com>
  9. Organization: U. C. Berkeley
  10. Lines: 19
  11. NNTP-Posting-Host: forney.berkeley.edu
  12.  
  13. In article <HUTTAR.92Jul27201337@hp720a.itg.ti.com> huttar@hp720a.itg.ti.com (Lars Huttar) writes:
  14. >Does anyone know of a version of makedepend that works with C++ files?
  15. >I.e. the user should be able to specify filename extensions like cxx, C,
  16. >and cc; and it shouldn't barf on C++ syntax (unlike X makedepend).
  17. >
  18. >Also, it would be nice if it could optionally ignore include files starting
  19. >with a specifiable prefix like /usr/include.
  20.  
  21. gcc/g++'s -M and -MM switches will do the job.  Since it is entirely handled
  22. by the preprocessor, you could just grab the preprocessor if you're using
  23. a different compiler.  Since it's using an ANSI-compatible C/C++
  24. preprocessor to do the job, you can be assured that #ifdef, etc, will
  25. always be handled correctly.
  26.  
  27.  
  28.  
  29.  
  30. --
  31. Joe Buck    jbuck@ohm.berkeley.edu
  32.