Re: [PATCH] Makefile: do not optimize when DEBUG=1
- From
Johannes Sixt <j.sixt@eudaptics.com>
- Date
- Mar 7, 2007, 09:26 UTC
- Message-ID
- <45EE854E.210EDAFF@eudaptics.com>
- In-Reply-To
- <Pine.LNX.4.63.0703062249540.22628@wbgn013.biozentrum.uni-wuerzburg.de>
Johannes Schindelin wrote:
Show 8 quoted lines
> You can do that now by removing just the object files containing the > code you want to debug, and saying "make DEBUG=1". > [...] > -CFLAGS = -g -O2 -Wall > +CFLAGS = -g -Wall > +ifndef DEBUG > + CFLAGS += -O2 > +endif
I think the shortcut to remove just the interesting object file does not work because Makefile notices (the GIT-CFLAGS rule) that there are "new flags or prefix", and so recompiles everything.
-- Hannes