Compile with -g -O2 by default
Change default CFLAGS (CFLAGS not overriden and no CFLAGS in environment) to add debugging symbol and optimize the generated code.
This commit is contained in:
parent
c86ed77fb2
commit
1cede92011
2
Makefile
2
Makefile
|
@ -15,7 +15,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
VERSION = $(shell awk 'END { print $$1 }' VERSION)
|
VERSION = $(shell awk 'END { print $$1 }' VERSION)
|
||||||
CFLAGS ?= -Wall -Wextra
|
CFLAGS ?= -Wall -Wextra -g -O2
|
||||||
CFLAGS += -DVERSION=\"$(VERSION)\"
|
CFLAGS += -DVERSION=\"$(VERSION)\"
|
||||||
|
|
||||||
# Note: assignments are ignored for variable overriden on command line VAR=value
|
# Note: assignments are ignored for variable overriden on command line VAR=value
|
||||||
|
|
Loading…
Reference in New Issue