From db13a7d502818251e6f531128f7df3f11c775c66 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Sat, 12 Jan 2019 21:21:51 +0100 Subject: [PATCH] automake: add debug symbols in debug mode --- src/Makefile.am | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Makefile.am b/src/Makefile.am index a0781a3..6f58a9a 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,7 +1,11 @@ AUTOMAKE_OPTIONS = subdir-objects if DEBUG -AM_CPPFLAGS = -DDEBUG + AM_CFLAGS = -g3 -O0 -DDEBUG + AM_CXXFLAGS = -g3 -O0 -DDEBUG +else + AM_CFLAGS = -O2 + AM_CXXFLAGS = -O2 endif lib_LTLIBRARIES = libuldaq.la