git » nmdb » commit b4211a7

Split the DEBUG make flag into DEBUG and PROFILE.

author Alberto Bertogli
2007-06-01 00:23:00 UTC
committer Alberto Bertogli
2007-06-01 00:23:00 UTC
parent 8ffdb4db0ce61d41858bcd1ca4ccaa01e33040c5

Split the DEBUG make flag into DEBUG and PROFILE.

This avoids compiling with profile information where only debugging
is needed.

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

nmdb/Makefile +4 -0

diff --git a/nmdb/Makefile b/nmdb/Makefile
index 6a6952c..8754802 100644
--- a/nmdb/Makefile
+++ b/nmdb/Makefile
@@ -3,6 +3,10 @@ CFLAGS += -std=c99 -Wall -O3
 ALL_CFLAGS = -D_XOPEN_SOURCE=500 $(CFLAGS)
 
 ifdef DEBUG
+ALL_CFLAGS += -g
+endif
+
+ifdef PROFILE
 ALL_CFLAGS += -g -pg -fprofile-arcs -ftest-coverage
 endif