
Add some gcc parameters to debugging CFLAGS and clean debug files in the
Makefiles, in order to support better profiling.


 Make.conf    |    2 +-
 Makefile     |    5 ++++-
 lib/Makefile |    5 ++++-
 3 files changed, 9 insertions(+), 3 deletions(-)

diff -puN Make.conf~profile-params Make.conf
--- cur/Make.conf~profile-params	2004-01-17 21:09:26.000000000 -0300
+++ cur-root/Make.conf	2004-01-17 21:09:26.000000000 -0300
@@ -7,7 +7,7 @@ LIBS += -lpthread
 INCLUDES += -I$(PWD)/include
 
 ifdef DEBUG
-CFLAGS += -g -pg
+CFLAGS += -g -pg -fprofile-arcs -ftest-coverage
 endif
 
 
diff -puN Makefile~profile-params Makefile
--- cur/Makefile~profile-params	2004-01-17 21:09:26.000000000 -0300
+++ cur-root/Makefile	2004-01-17 21:09:26.000000000 -0300
@@ -42,7 +42,10 @@ man_install:
 cleanobj:
 	rm -f $(OBJS) lib/libold.o
 
-clean: cleanobj
+cleandebug:
+	rm -f *.bb *.bbg *.da *.gcov gmon.out
+
+clean: cleanobj cleandebug
 	rm -rf $(BUILD)
 	$(MAKE) -C lib/ clean
 
diff -puN lib/Makefile~profile-params lib/Makefile
--- cur/lib/Makefile~profile-params	2004-01-17 21:09:26.000000000 -0300
+++ cur-root/lib/Makefile	2004-01-17 21:09:26.000000000 -0300
@@ -32,7 +32,10 @@ cleanobj:
 	rm -f oldtest.o
 	rm -f oldtest2.o
 
-clean: cleanobj
+cleandebug:
+	rm -f *.bb *.bbg *.da *.gcov gmon.out
+
+clean: cleanobj cleandebug
 	rm -f $(BUILD)/oldtest
 	rm -f $(BUILD)/oldtest2
 	rm -f $(BUILD)/libold.so

_
