From: Timo Hirvonen Date: Fri, 29 Jul 2005 14:03:27 GMT Subject: Re: Makefile: COPTS vs CFLAGS Message-ID: <20050729170327.5f8f3d5a.tihirvon@ee.oulu.fi> In-Reply-To: <20050729134011.GD21909@pasky.ji.cz> On Fri, 29 Jul 2005 15:40:11 +0200 Petr Baudis 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 a good default value. Using $DESTDIR instead of $dest would be nice too because DESTDIR is used by Autotools. -- http://onion.dynserv.net/~timo/