git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Makefile: COPTS vs CFLAGS

From
THTimo Hirvonen <tihirvon@ee.oulu.fi>
Date
Jul 29, 2005, 14:03 UTC
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 <pasky@suse.cz> wrote:

Show 6 quoted lines
>   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/
Previous: Petr Baudis
Message 2 of 2 in “Makefile: COPTS vs CFLAGS”
  1. Petr BaudisJul 29, 2005
  2. Timo HirvonenJul 29, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.