Re: About g++ option -MM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux