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