Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!pt.cs.cmu.edu!OREO.GRAPHICS.CS.CMU.EDU!gleicher From: gleicher@CS.CMU.EDU (Michael Gleicher) Newsgroups: gnu.g++ Subject: generating dependencies Message-ID: Date: 30 Nov 89 18:06:06 GMT Sender: gleicher@OREO.GRAPHICS.CS.CMU.EDU Distribution: gnu Organization: School of Computer Science, Carnegie Mellon University Lines: 31 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) Brought to you by Super Global Mega Corp .com