From 5039472d2669707031df7d04e132b434e4d0c8f8 Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Tue, 18 Jan 2011 20:39:51 +0100 Subject: Set the non-debug compiling the default Compiling with debugging can be enabled with the "--enable-debug" option of the configure script. --- Make_global.am | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Make_global.am') diff --git a/Make_global.am b/Make_global.am index 05a053c..e178fe5 100644 --- a/Make_global.am +++ b/Make_global.am @@ -7,10 +7,12 @@ LIBVERSION = 1:0:0 AM_CPPFLAGS = $(kinclude_CFLAGS) $(all_includes) -I$(top_srcdir)/include \ -I/usr/local/include -AM_CFLAGS = -std=gnu99 -Wall +AM_CFLAGS = -std=gnu99 if ENABLE_DEBUG -AM_CFLAGS += -g -ggdb -gdwarf-2 -g3 -DIPSET_DEBUG +AM_CFLAGS += -g -g3 -ggdb -gdwarf-2 -DIPSET_DEBUG -Wall -Werror +else +AM_CFLAGS += -O2 -DNDEBUG endif if ! ENABLE_VERBOSE -- cgit v1.2.1