git » nmdb » commit 24892c5

Split the DEBUG flag into DEBUG and PROFILE in the C library.

author Alberto Bertogli
2007-06-04 02:08:31 UTC
committer Alberto Bertogli
2007-06-04 02:08:31 UTC
parent affed3d8eb042bd007c1f45a1663b07b413d9b98

Split the DEBUG flag into DEBUG and PROFILE in the C library.

Like b4211a7794ee4d265e95a9e00621bd6036a26af4 but for libnmdb.

Signed-off-by: Alberto Bertogli <albertito@gmail.com>

libnmdb/Makefile +4 -0

diff --git a/libnmdb/Makefile b/libnmdb/Makefile
index 22cd048..cdd95b0 100644
--- a/libnmdb/Makefile
+++ b/libnmdb/Makefile
@@ -7,6 +7,10 @@ ALL_CFLAGS = -D_XOPEN_SOURCE=500 -fPIC $(CFLAGS)
 ALL_CFLAGS += -DENABLE_TIPC=$(ENABLE_TIPC) -DENABLE_TCP=$(ENABLE_TCP)
 
 ifdef DEBUG
+ALL_CFLAGS += -g
+endif
+
+ifdef PROFILE
 ALL_CFLAGS += -g -pg -fprofile-arcs -ftest-coverage
 endif