This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: About g++ option -MM


On 1/28/06, Peng Yu  wrote:
> What if I want to keep both versions like main-g.o and main-o.o?

This can be a litle tricky: implicit rules may be used, something like this:
%-g.o : %.cc
  $(COMPILE.c) -o $@ -c $<
%-o.o : %.cc
   ....

Dima.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]