From 0e33b8fff391ff8d5c447f55658c1a9a40ea2fd6 Mon Sep 17 00:00:00 2001
From: Ron <ron@debian.org>
Date: Sun, 9 Jun 2013 09:49:48 +0930
Subject: [PATCH 9/9] Enable logging in `make debug` too

And split the defines out, partly for neatness and ease of future tweaking
but it also makes it possible to do `make debug DEBUG_OPTIONS=foo` to
override the extra options used on the fly.
---
 Makefile.am |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 48b757e..3ae1ed3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -515,8 +515,9 @@ dist_doc_DATA = COPYING AUTHORS README.txt
 pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = daala.pc
 
+debug: DEBUG_OPTIONS = -DOD_ENABLE_ASSERTIONS -DOD_LOGGING_ENABLED
 debug:
-	$(MAKE) CFLAGS="${CFLAGS} -O0 -ggdb -DOD_ENABLE_ASSERTIONS" all
+	$(MAKE) CFLAGS="$(CFLAGS) -O0 -ggdb $(DEBUG_OPTIONS)" all
 
 EXTRA_DIST = \
 	daala.pc.in \
-- 
1.7.2.5

