diff options
author | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2011-01-18 20:39:51 +0100 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2011-01-18 20:39:51 +0100 |
commit | 5039472d2669707031df7d04e132b434e4d0c8f8 (patch) | |
tree | a8207ba0bdf9ff860c84508040c80deeb11ed494 /Make_global.am | |
parent | 06b188635ecfac9c5ad46cb95845b83e96a17bc7 (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.am | 6 |
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 |