From 1cede92011152402d44bf023f940e66358c0dc77 Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Tue, 4 Oct 2011 17:23:24 +0200 Subject: [PATCH] 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. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3432229..a8437ad 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,7 @@ # VERSION = $(shell awk 'END { print $$1 }' VERSION) -CFLAGS ?= -Wall -Wextra +CFLAGS ?= -Wall -Wextra -g -O2 CFLAGS += -DVERSION=\"$(VERSION)\" # Note: assignments are ignored for variable overriden on command line VAR=value