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

Makefile: COPTS vs CFLAGS

From
Petr Baudis <pasky@suse.cz>
Date
Jul 29, 2005, 13:40 UTC
Message-ID
<20050729134011.GD21909@pasky.ji.cz>
  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 does not specify custom $CFLAGS, default to "-g -O2",
and always append -Wall (and more after I'll send my Makefile patches).
  Opinions?
-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
If you want the holes in your knowledge showing up try teaching
someone.  -- Alan Cox
Next: Timo Hirvonen
Message 1 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.