[gnu.g++] generating dependencies

gleicher@CS.CMU.EDU (Michael Gleicher) (12/01/89)

HELP!

I want to use g++ to help me generate dependencies for a makefile. 
I'm using the -M option, and all is great if my source files end in .c.

Unfortunately, I like to use .C for c++ source files. -M ends up calling the
objects "file.C.o" instead of "file.o", so I get rules that look like:

file.C.o : file.C file.H anotherFile.H

g++ will call the object produced by compiling file.C file.o, so it's tacking
the .C.o ending seems inconsistent.

Any help would be greatly appeciated. This isn't a big deal, but it would make
things easier for me.

Also, is there a way to tell g++ to accept something besides .c and .C (and I
think there's one more it will accept) as c++ source?

Thanks,

	Mike

Michael Lee Gleicher					gleicher@cs.cmu.edu
	    ski bum, graphics hacker, and SCS PhD student
Carnegie Mellon University, Pittsburgh, PA 15213-3890	(412) CMU-STYX (school)
--
Michael Lee Gleicher					gleicher@cs.cmu.edu
	    ski bum, graphics hacker, and SCS PhD student
Carnegie Mellon University, Pittsburgh, PA 15213-3890	(412) CMU-STYX (school)