Thread View: gnu.g++
1 messages
1 total messages
Started by Michael Gleicher
Thu, 30 Nov 1989 18:06
generating dependencies
Author: Michael Gleicher
Date: Thu, 30 Nov 1989 18:06
Date: Thu, 30 Nov 1989 18:06
31 lines
1553 bytes
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)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads