Re: Makefile: COPTS vs CFLAGS

2005-07-29 Thread Timo Hirvonen
On Fri, 29 Jul 2005 15:40:11 +0200 Petr Baudis <[EMAIL PROTECTED]> wrote: > What I would propose: > > -COPTS=-g -O2 > -CFLAGS=$(COPTS) -Wall > +CFLAGS?=-g -O2 > +CFLAGS+=-Wall Sounds good. I've never heard of anyone using COPTS variable before. And "-g -O2" seems to be

Makefile: COPTS vs CFLAGS

2005-07-29 Thread Petr Baudis
Hello, one more thing - should we keep the $COPTS variable? Most projects (including Cogito) have the C flags controlled by the $CFLAGS variable. What I would propose: -COPTS=-g -O2 -CFLAGS=$(COPTS) -Wall +CFLAGS?=-g -O2 +CFLAGS+=-Wall That is, if user do