]> git.cworth.org Git - scherzo/commitdiff
Default to compiling with debugging symbols.
authorCarl Worth <cworth@cworth.org>
Mon, 23 Sep 2013 04:07:21 +0000 (21:07 -0700)
committerCarl Worth <cworth@cworth.org>
Mon, 23 Sep 2013 04:07:21 +0000 (21:07 -0700)
Which is obviously much more convenient for debugging.

The user can still override this with something like:

make CFLAGS=-O2

Makefile

index 08511cc8a05943bbf826e5ae08712f86d6fd3ba4..7d7d6124e44a70b92f650cd9a7ca7f69706dce30 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,7 @@ scherzo_srcs :=         \
 
 scherzo_modules = $(scherzo_srcs:.c=.o)
 
+CFLAGS ?= -g
 WARN_CFLAGS = -Wall -Wextra
 
 SCHERZO_CFLAGS = $(CFLAGS) $(WARN_CFLAGS) $(CONFIGURE_CFLAGS) $(extra_cflags) -I./mnemon `pkg-config --cflags gtk+-2.0 alsa`