🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++
Article #220

generating dependencies

#220
From: Michael Gleicher
Date: Thu, 30 Nov 1989 18:06
31 lines
1553 bytes
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)
Technical Details
Message-ID: <GLEICHER.89Nov30130606@OREO.GRAPHICS.CS.CMU.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!pt.cs.cmu.edu!OREO.GRAPHICS.CS.CMU.EDU!gleicher

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <GLEICHER.89Nov30130606@OREO.GRAPHICS.CS.CMU.EDU>
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