summaryrefslogtreecommitdiffstats
path: root/Make_global.am
diff options
context:
space:
mode:
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2011-01-18 20:39:51 +0100
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2011-01-18 20:39:51 +0100
commit5039472d2669707031df7d04e132b434e4d0c8f8 (patch)
treea8207ba0bdf9ff860c84508040c80deeb11ed494 /Make_global.am
parent06b188635ecfac9c5ad46cb95845b83e96a17bc7 (diff)
Set the non-debug compiling the default
Compiling with debugging can be enabled with the "--enable-debug" option of the configure script.
Diffstat (limited to 'Make_global.am')
-rw-r--r--Make_global.am6
1 files changed, 4 insertions, 2 deletions
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